Models a triangle formed from
QuadEdges in a
QuadEdgeSubdivision which forms a triangulation. The class provides methods to access the topological and geometric properties of the triangle and its neighbours in the triangulation. Triangle vertices are ordered in CCW orientation in the structure.
QuadEdgeTriangles support having an external data attribute attached to them. Alternatively, this class can be subclassed and attributes can be defined in the subclass. Subclasses will need to define their own BuilderVisitor class and createOn method.
Authors:
Martin Davis
Other
version: 1.0
public QuadEdgeTriangle(QuadEdge[] edge)
Creates a new triangle from the given edges.
Parameters:
edge - edge an array of the edges of the triangle in CCW order
Creates
QuadEdgeTriangles for all facets of a
QuadEdgeSubdivision representing a triangulation. The
data attributes of the
QuadEdges in the subdivision will be set to point to the triangle which contains that edge. This allows tracing the neighbour triangles of any given triangle.
Parameters:
subdiv - subdiv the QuadEdgeSubdivision to create the triangles on.