MCPcopy Create free account
hub / github.com/MapServer/MapServer / end_contour

Method end_contour

renderers/agg/include/agg_conv_clipper.h:200–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

198
199 template<class VSA, class VSB>
200 void conv_clipper<VSA, VSB>::end_contour( clipper::Polygons &p)
201 {
202 unsigned i, len;
203
204 if( m_vertex_accumulator.size() < 3 ) return;
205 len = p.size();
206 p.resize(len+1);
207 p[len].resize(m_vertex_accumulator.size());
208 for( i = 0 ; i < m_vertex_accumulator.size() ; i++ )
209 p[len][i] = m_vertex_accumulator[i];
210 m_vertex_accumulator.remove_all();
211 }
212 //------------------------------------------------------------------------------
213
214 template<class VSA, class VSB>

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
resizeMethod · 0.45
remove_allMethod · 0.45

Tested by

no test coverage detected