WOLFRAM

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

First, load the package:

This creates an instance of a Triangle expression:

Out[2]=2

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:

Out[5]=5

This extracts the points and elements from the triangulation:

You can visualize the triangles:

Out[7]=7