TetGenLink`
TetGenLink`

TetGenGetElements

TetGenGetElements[expr]

gets the elements in a TetGen expression.

Details

  • To use TetGenGetElements, you first need to load it using Needs["TetGenLink`"].
  • TetGenGetElements returns a list of a list of integers that specify which parts of the coordinates make up the tetrahedra.

Examples

Basic Examples  (1)

First, load the package:

This creates an instance of a TetGen expression:

This sets up points and facets to use:

This sets the points and facets in the TetGen instance:

This carries out the tetrahedralization, returning a new TetGen instance:

This extracts the points and elements from the tetrahedralization:

With the following support function, you can visualize the tetrahedra: