TriangleLink`
TriangleLink`
TriangleGetElements
TriangleGetElements[expr]
gets the elements in a Triangle expression.
Details and Options
- To use TriangleGetElements, you first need to load it using Needs["TriangleLink`"].
- TriangleGetElements returns a list of a list of integers that specify which parts of the coordinates make up the triangle.
Examples
Basic Examples (1)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0d35zbtqm5d6oxeusxv3-cbf55e
This creates an instance of a Triangle expression:
In[2]:=2

✖
https://wolfram.com/xid/0d35zbtqm5d6oxeusxv3-c6p5a4
Out[2]=2

This sets up points and facets to use:
In[3]:=3

✖
https://wolfram.com/xid/0d35zbtqm5d6oxeusxv3-0kep9
This sets the points and facets in the Triangle instance:
In[4]:=4

✖
https://wolfram.com/xid/0d35zbtqm5d6oxeusxv3-hk1sfz
This carries out the triangulation, returning a new Triangle instance:
In[5]:=5

✖
https://wolfram.com/xid/0d35zbtqm5d6oxeusxv3-bvezjn
Out[5]=5

This extracts the points and elements from the triangulation:
In[6]:=6

✖
https://wolfram.com/xid/0d35zbtqm5d6oxeusxv3-fw39wj
You can visualize the triangles:
In[7]:=7

✖
https://wolfram.com/xid/0d35zbtqm5d6oxeusxv3-n7nyh6
Out[7]=7
