TriangleGetPoints
TriangleGetPoints[expr]
returns the points in a Triangle expression.
Details and Options
Examples
Basic Examples
See Also
Tech Notes
Related Guides
TriangleLink`
TriangleLink`
TriangleGetPoints
TriangleGetPoints[expr]
returns the points in a Triangle expression.
Details and Options
- To use TriangleGetPoints, you first need to load it using Needs["TriangleLink`"].
- The points returned from a Triangle expression are a list of
coordinates. - A Triangle expression can have points loaded by TriangleSetPoints or created by TriangleTriangulate.
- The memory used by a Triangle expression to hold points and other resources is cleared when you use TriangleDelete.
Examples
Basic Examples (1)
Needs["TriangleLink`"]This creates an instance of a Triangle expression:
inst = TriangleCreate[]These are points to load to the instance:
pts = {{0., 0.}, {2., 0.}, {2., 2.}, {0., 2.}};This loads the points to the instance:
TriangleSetPoints[inst, pts]This retrieves the points from the instance:
TriangleGetPoints[inst]