plottools
triangulate
triangulate plot data
Calling Sequence
Parameters
Description
Examples
Compatibility
triangulate(p, opts)
p
-
a POLYGONS or POINTS structure
opts
zero or more options as described below.
The triangulate command takes a POLYGONS or POINTS structure and returns a POLYGONS structure containing a set of triangles which cover the region defined by p.
If p is a POLYGONS structure, the result is a POLYGONS structure consisting only of triangles which covers the region defined by p. Note the polygons in the input p are not required to be convex.
If p is a POINTS structure, the result is a POLYGONS structure consisting only of triangles in which every point in p appears as a corner of some triangle.
The options opts should consist of options supported by plottools[polygon].
with⁡plottools:
pts≔391,374,240,431,252,340,374,320,289,214,134,390,68,186,154,259,161,107,435,108,208,148,295,160,421,212,441,303
P≔plottools:-polygon⁡pts
Q≔triangulate⁡P,style=line
Q≔POLYGONS⁡391.374.240.431.252.340.,161.107.435.108.208.148.,208.148.295.160.421.212.,421.212.441.303.391.374.,154.259.161.107.208.148.,391.374.252.340.374.320.,134.390.68.186.154.259.,134.390.154.259.208.148.,289.214.134.390.208.148.,421.212.391.374.374.320.,289.214.208.148.421.212.,421.212.374.320.289.214.,STYLE⁡LINE
The plottools[triangulate] command was introduced in Maple 2020.
For more information on Maple 2020 changes, see Updates in Maple 2020.
See Also
ComputationalGeometry[DelaunayTriangulation]
ComputationalGeometry[PolygonTriangulation]
Download Help Document