Class ConstraintVertex
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.
Implements
Inherited Members
Namespace: NetTopologySuite.Triangulate
Assembly: NetTopologySuite.dll
Syntax
public class ConstraintVertex : Vertex, IEquatable<Vertex>
Constructors
| Edit this page View SourceConstraintVertex(Coordinate)
Creates a new constraint vertex
Declaration
public ConstraintVertex(Coordinate p)
Parameters
Type | Name | Description |
---|---|---|
Coordinate | p | the location of the vertex |
Properties
| Edit this page View SourceConstraint
Gets or sets the external constraint object
Declaration
public object Constraint { get; set; }
Property Value
Type | Description |
---|---|
object |
Remarks
object which carries information about the constraint this vertex lies on
IsOnConstraint
Gets or sets whether this vertex lies on a constraint.
Declaration
public bool IsOnConstraint { get; set; }
Property Value
Type | Description |
---|---|
bool |
Remarks
true if the vertex lies on a constraint
Methods
| Edit this page View SourceMerge(ConstraintVertex)
Merges the constraint data in the vertex other into this vertex. This method is called when an inserted vertex is very close to an existing vertex in the triangulation.
Declaration
protected void Merge(ConstraintVertex other)
Parameters
Type | Name | Description |
---|---|---|
ConstraintVertex | other | the constraint vertex to merge |