MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / rewind

Method rewind

dep/agg/src/agg_vcgen_contour.cpp:77–98  ·  view source on GitHub ↗

------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

75
76 //------------------------------------------------------------------------
77 void vcgen_contour::rewind(unsigned)
78 {
79 if(m_status == initial)
80 {
81 m_src_vertices.close(true);
82 if(m_auto_detect)
83 {
84 if(!is_oriented(m_orientation))
85 {
86 m_orientation = (calc_polygon_area(m_src_vertices) > 0.0) ?
87 path_flags_ccw :
88 path_flags_cw;
89 }
90 }
91 if(is_oriented(m_orientation))
92 {
93 m_stroker.width(is_ccw(m_orientation) ? m_width : -m_width);
94 }
95 }
96 m_status = ready;
97 m_src_vertex = 0;
98 }
99
100 //------------------------------------------------------------------------
101 unsigned vcgen_contour::vertex(double* x, double* y)

Callers

nothing calls this directly

Calls 5

is_orientedFunction · 0.85
calc_polygon_areaFunction · 0.85
is_ccwFunction · 0.85
closeMethod · 0.45
widthMethod · 0.45

Tested by

no test coverage detected