36 _strips(copy._strips),
37 _opposite(copy._opposite)
49 return (_vi_a == vi || _vi_b == vi);
60 return ((_vi_a == other._vi_a && _vi_b == other._vi_b) ||
61 (_vi_b == other._vi_a && _vi_a == other._vi_b));
74 return min(
this, _opposite);
82 INLINE
bool EggMesherEdge::
84 return _vi_a == other._vi_a && _vi_b == other._vi_b;
92 INLINE
bool EggMesherEdge::
94 return !operator == (other);
105 if (_vi_a != other._vi_a) {
106 return _vi_a < other._vi_a;
108 return _vi_b < other._vi_b;
136 return LVecBase3d(fabs(v[0]), fabs(v[1]), fabs(v[2]));
EggVertex * get_vertex(int index) const
Returns the vertex in the pool with the indicated index number, or NULL if no vertices have that inde...
EggMesherEdge(int vi_a, int vi_b)
Defines an edge as a pair of vertices.
LVertexd get_pos3() const
Valid if get_num_dimensions() returns 3 or 4.
double compute_length(const EggVertexPool *vertex_pool) const
Returns the length of the edge in model units.
bool contains_vertex(int vi) const
Returns true if the edge contains the indicated vertex index, false otherwise.
bool matches(const EggMesherEdge &other) const
Returns true if this edge represents the same line segment as the other edge, in either direction...
double length() const
Returns the length of the vector, by the Pythagorean theorem.
EggMesherEdge * common_ptr()
Returns an arbitrary pointer that is used to represent both this edge and its opposite.
This is the base class for all three-component vectors and points.
Represents one edge of a triangle, as used by the EggMesher to discover connected triangles...
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
bool operator<(const EggMesherEdge &other) const
Defines an arbitrary ordering for edges, used for putting edges in a sorted container.
A collection of vertices.
LVecBase3d compute_box(const EggVertexPool *vertex_pool) const
Returns a 3-component vector that represents the lengths of the sides of the smalled axis-aligned box...