com.jmex.font3d.math
Class TriangulationVertex

java.lang.Object
  extended by com.jmex.font3d.math.PlanarVertex
      extended by com.jmex.font3d.math.TriangulationVertex

public class TriangulationVertex
extends PlanarVertex

Used to do a triangulation of a complex polygon. Please note that you should make sure all of these vertices are two-manifold, if they are not the triangulation will fail with nullpointers.

Author:
emanuel

Nested Class Summary
static class TriangulationVertex.VertexType
           
 
Field Summary
 boolean is_left_chain
           
(package private)  TriangulationVertex.VertexType vert_type
           
 
Fields inherited from class com.jmex.font3d.math.PlanarVertex
index, point
 
Constructor Summary
TriangulationVertex(int i, Vector3f p)
           
 
Method Summary
 boolean checkAllEdges()
           
 TriangulationEdge getInGoingEdge()
          This method returns the first and best real edge going in to this vertex, there should be only one before the triangulation.
 TriangulationEdge getOutGoingEdge()
          This method returns the first and best real edge going out of this vertex, there should be only one before the triangulation.
(package private)  TriangulationVertex.VertexType getType()
           
 void initializeType()
           
 java.lang.String toString()
           
(package private)  boolean yLessThan(PlanarVertex vertex)
           
 
Methods inherited from class com.jmex.font3d.math.PlanarVertex
addOutgoingEdge, getEdge, getFirstEdge, getIndex, getPoint, printEdges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

vert_type

TriangulationVertex.VertexType vert_type

is_left_chain

public boolean is_left_chain
Constructor Detail

TriangulationVertex

TriangulationVertex(int i,
                    Vector3f p)
Method Detail

yLessThan

boolean yLessThan(PlanarVertex vertex)

getType

TriangulationVertex.VertexType getType()

toString

public java.lang.String toString()
Overrides:
toString in class PlanarVertex

initializeType

public void initializeType()

checkAllEdges

public boolean checkAllEdges()

getOutGoingEdge

public TriangulationEdge getOutGoingEdge()
This method returns the first and best real edge going out of this vertex, there should be only one before the triangulation.

Returns:

getInGoingEdge

public TriangulationEdge getInGoingEdge()
This method returns the first and best real edge going in to this vertex, there should be only one before the triangulation.

Returns: