21 INLINE EggMesherStrip::
28 _status(copy._status),
29 _planar(copy._planar),
30 _plane_normal(copy._plane_normal),
31 _plane_offset(copy._plane_offset),
32 _row_id(copy._row_id),
33 _flat_shaded(copy._flat_shaded)
60 if (_planar && other._planar) {
61 return 1.0 - dot(_plane_normal, other._plane_normal);
100 _verts.push_back(_verts.front());
112 _verts.push_front(_verts.back());
127 Verts::const_iterator vi = _verts.begin();
143 Verts::const_reverse_iterator vi = _verts.rbegin();
158 return this == &other;
166 INLINE
bool EggMesherStrip::
bool operator==(const EggMesherStrip &other) const
Defines equality for strips.
void rotate_forward()
Rotates a triangle or quad by bringing its first vertex to the back.
void rotate_back()
Rotates a triangle or quad by bringing its last vertex to the front.
EggMesherEdge get_tail_edge() const
Returns an EggMesherEdge which represents the trailing edge in the quadstrip or tristrip.
Represents one edge of a triangle, as used by the EggMesher to discover connected triangles...
bool is_coplanar_with(const EggMesherStrip &other, PN_stdfloat threshold) const
Returns true if the strip and the other strip are coplanar, within the indicated threshold.
Represents a triangle strip or quad strip in progress, as assembled by the mesher.
EggMesherEdge get_head_edge() const
Returns an EggMesherEdge which represents the leading edge in the quadstrip or tristrip.
PN_stdfloat coplanarity(const EggMesherStrip &other) const
Returns the degree to which the two strips are coplanar.
int type_category() const
Returns an integer which gives a heuristic about the similarity of different strip types...