MCPcopy Create free account
hub / github.com/comaps/comaps / SpliceRegions

Function SpliceRegions

libs/geometry/region2d/binary_operators.cpp:6–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4namespace m2
5{
6void SpliceRegions(std::vector<RegionI> & src, std::vector<RegionI> & res)
7{
8 for (size_t i = 0; i < src.size(); ++i)
9 {
10 res.push_back(RegionI());
11 res.back().Swap(src[i]);
12 }
13}
14
15void IntersectRegions(RegionI const & r1, RegionI const & r2, MultiRegionI & res)
16{

Callers 2

IntersectRegionsFunction · 0.85
DiffRegionsFunction · 0.85

Calls 4

backMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45
SwapMethod · 0.45

Tested by

no test coverage detected