Triangulate 2d path
Converts 2D curves into a triangulated mesh in a chosen workplane.
Inputs
-
geometry
- Accepts a single geometry connection (unless the SHIFT key is held).
-
work plane
- The work plane in which the triangulation will be performed in. This can be
X=0
,Y=0
, orZ=0
.
- The work plane in which the triangulation will be performed in. This can be
-
pre-flatten
- Flattens the input curves into the work plane defined by the work plane input before triangulation.
-
library
- Sets the triangulation library to triangulate input curves. This can be
Poly2Tri
(quicker) orTriangle
(slower, but offers triangle refinement and smoothing).
- Sets the triangulation library to triangulate input curves. This can be
-
input handling
- Sets how the input curves are handled within the triangulation. This can be
first curve is outline, others are holes
(the first input curve is the outline and following input curves are holes within the resulting mesh) orall curves are outlines
(all input curves are outlines and no holes are made).
- Sets how the input curves are handled within the triangulation. This can be
-
make convex hull
- Sets whether the resulting triangulation is a convex hull of the input curves or not.
-
algorithm
- Sets the algorithm to use for triangulation while the library input is set to
Triangle
. This can besweepline
,Dwyer
, orincremental
.
- Sets the algorithm to use for triangulation while the library input is set to
-
refine
- Sets whether or not to manually refine the triangles in the resulting triangulation when the library input is set to
Triangle
.
- Sets whether or not to manually refine the triangles in the resulting triangulation when the library input is set to
-
max area
- The maximum area of triangles in the resulting triangulation when the library input is set to
Triangle
and the refine input is set totrue
.
- The maximum area of triangles in the resulting triangulation when the library input is set to
-
min angle
- The minimum angle of triangles in the resulting triangulation when the library input is set to
Triangle
and the refine input is set totrue
.
- The minimum angle of triangles in the resulting triangulation when the library input is set to
-
max angle
- The maximum angle of triangles in the resulting triangulation when the library input is set to
Triangle
and the refine input is set totrue
.
- The maximum angle of triangles in the resulting triangulation when the library input is set to
-
smoothing
- The amount of smoothing of triangle layout after triangulation defined between
0
and100
.
- The amount of smoothing of triangle layout after triangulation defined between
-
inner points
- A list of extra internal points that will force the creation of vertices at these points.
Outputs
-
geometry
- Output primitives.
-
points
- The list of points of the output primitives.
-
points.x
- The list of x values of the points of the output primitives.
-
points.y
- The list of y values of the points of the output primitives.
-
points.z
- The list of z values of the points of the output primitives.
Notes
-
The
first curve is outline, others are holes
setting of the input handling input results in a single primitive whereas theall curves are outlines
setting results in a primitive for each input curve. -
If the input curve is irregular and the resulting triangulate mesh results in “zero area triangles”, it is recommended to use the Clean mesh node to fix the mesh.
-
Other names for this node include: TriangulateCurve, Triangulate curve, Tessellate, Mesh, and Path to mesh.