TETGENLINK PACKAGE SYMBOL
TetGenConvexHull
TetGenConvexHull[points]
generates a convex hull for a 3D point set.
- To use
, you first need to load it using Needs["TetGenLink`"].
will return a list of points and facets that encloses all points.
First, some random points are generated and displayed:
| Out[2]= |  |
Now you can compute the convex hull of the 3D points.
will return a list of points and surface triangles:
Each surface triangle is a list of three integers. These integers refer to the coordinates. You can plot them by using GraphicsComplex:
| Out[4]= |  |
Load geometry data:
To compute the convex hull of the data, use
:
| Out[3]= |  |
Note that the points returned need not be the same as the original input data:
| Out[4]= |  |
Duplicate coordinates are deleted:
| Out[5]= |  |