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
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
POLYGONS⁡391.0374.0240.0431.0252.0340.0,161.0107.0435.0108.0208.0148.0,208.0148.0295.0160.0421.0212.0,421.0212.0441.0303.0391.0374.0,154.0259.0161.0107.0208.0148.0,391.0374.0252.0340.0374.0320.0,134.0390.068.0186.0154.0259.0,134.0390.0154.0259.0208.0148.0,289.0214.0134.0390.0208.0148.0,421.0212.0391.0374.0374.0320.0,289.0214.0208.0148.0421.0212.0,421.0212.0374.0320.0289.0214.0,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