TriangleSetSegments[expr]
sets the segments for a Triangle expression.
Details and Options
Examples
Basic Examples
See Also
Tech Notes
Related Guides
TriangleLink`
TriangleLink`
TriangleSetSegments
TriangleSetSegments[expr]
sets the segments for a Triangle expression.
Details and Options
- To use TriangleSetSegments, you first need to load it using Needs["TriangleLink`"].
- TriangleSetSegments indicates to Triangle where a segment located in a mesh.
Examples
Basic Examples (1)
Needs["TriangleLink`"]This creates an instance of a Triangle expression:
inst = TriangleCreate[]This sets up points and facets to use:
pts = {{0., 0.}, {2., 0.}, {2., 2.}, {0., 1.}};
segments = {{1, 2}, {2, 3}, {3, 4}, {4, 1}};This sets the points and facets in the Triangle instance:
TriangleSetPoints[inst, pts];
TriangleSetSegments[inst, segments];This extracts the segments again:
TriangleGetSegments[inst]