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

Method AddPolygon

generator/feature_builder.cpp:135–147  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133}
134
135void FeatureBuilder::AddPolygon(PointSeq && poly)
136{
137 // check for closing
138 if (poly.size() < 3)
139 return;
140
141 if (poly.front() != poly.back())
142 poly.push_back(poly.front());
143
144 CalcRect(poly, m_limitRect);
145
146 m_polygons.push_back(std::move(poly));
147}
148
149void FeatureBuilder::ResetGeometry()
150{

Callers 4

AssignGeometryMethod · 0.80
MakeAreaFeatureBuilderFunction · 0.80
MakeTestSet1Function · 0.80
UNIT_CLASS_TESTFunction · 0.80

Calls 5

CalcRectFunction · 0.85
frontMethod · 0.80
backMethod · 0.80
sizeMethod · 0.45
push_backMethod · 0.45

Tested by 3

MakeAreaFeatureBuilderFunction · 0.64
MakeTestSet1Function · 0.64
UNIT_CLASS_TESTFunction · 0.64