TriangleLink`
TriangleLink`

TriangleGetElements

TriangleGetElements[expr]

gets the elements in a Triangle expression.

更多信息和选项

  • 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.

范例

基本范例  (1)

First, load the package:

This creates an instance of a Triangle expression:

This sets up points and facets to use:

This sets the points and facets in the Triangle instance:

This carries out the triangulation, returning a new Triangle instance:

This extracts the points and elements from the triangulation:

You can visualize the triangles: