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, or Z=0.
  • 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) or Triangle (slower, but offers triangle refinement and smoothing).
  • 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) or all curves are outlines (all input curves are outlines and no holes are made).
  • 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 be sweepline, Dwyer, or incremental.
  • refine

    • Sets whether or not to manually refine the triangles in the resulting triangulation when the library input is set to Triangle.
  • 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 to true.
  • 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 to true.
  • 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 to true.
  • smoothing

    • The amount of smoothing of triangle layout after triangulation defined between 0 and 100.
  • 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 the all 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.

Examples