Adds a point to the existing triangulation.

Namespace:  ceometric.ComputationalGeometry
Assembly:  ceometric.ComputationalGeometry (in ceometric.ComputationalGeometry.dll) Version: 2.4.0.0 (2.4.0.0)

Syntax

C#
public bool AddPointToCurrentTriangulation(
	Point vertexToInsert
)
Visual Basic (Declaration)
Public Function AddPointToCurrentTriangulation ( _
	vertexToInsert As Point _
) As Boolean
Visual C++
public:
bool AddPointToCurrentTriangulation(
	Point^ vertexToInsert
)

Parameters

vertexToInsert
Type: ceometric.VectorGeometry..::.Point
A point to add to the current triangulation.

Return Value

Returns true if the vertex could be inserted into the existing triangulation, false otherwise.

Remarks

This method inserts a point into the current triangulation in O(log(n)) time. Due to the internal data structure of the triangulation, it is not possible to insert a point that lies outside a certain boundary. A conservative boundary is the convex hull of the current triangulation.

Exceptions

ExceptionCondition
System..::.InvalidOperationExceptionA valid triangulation does not exist. Compute a triangulation first.

See Also