Class ConstraintVertex

java.lang.Object
org.locationtech.jts.triangulate.quadedge.Vertex
org.locationtech.jts.triangulate.ConstraintVertex

public class ConstraintVertex extends Vertex
A vertex in a Constrained Delaunay Triangulation. The vertex may or may not lie on a constraint. If it does it may carry extra information about the original constraint.
Author:
Martin Davis
  • Constructor Details

    • ConstraintVertex

      public ConstraintVertex(Coordinate p)
      Creates a new constraint vertex
      Parameters:
      p - the location of the vertex
  • Method Details

    • setOnConstraint

      public void setOnConstraint(boolean isOnConstraint)
      Sets whether this vertex lies on a constraint.
      Parameters:
      isOnConstraint - true if this vertex lies on a constraint
    • isOnConstraint

      public boolean isOnConstraint()
      Tests whether this vertex lies on a constraint.
      Returns:
      true if the vertex lies on a constraint
    • setConstraint

      public void setConstraint(Object constraint)
      Sets the external constraint information
      Parameters:
      constraint - an object which carries information about the constraint this vertex lies on
    • getConstraint

      public Object getConstraint()
      Gets the external constraint object
      Returns:
      the external constraint object