Triangulate POP
Summary
The Triangulate POP converts each closed line strip into a set of triangles that fill the interior of the line strip.
The default assumes that all line strips are convex. Set Mode to Convex and Concave if you are not certain all line strips are convex.
Open line strips and other primitive types are passed through unmodified. It supports inputs with a combination of primitive types and open and close line strips, and everything that is not a closed line strip passes through. Quads pass through by default, however an option triangulates quads.
If the Mode menu is Convex Only it runs highly parallel (fast). If it is Convex and Concave - it can get very slow for longer line strips. Max Verts per Input Line Strip need to be set accordingly, Max iterations can be set to limit number of iterations (leaving some closed line strips partially triangulated)
Note: A line strip is concave if you can draw a line from one point to another point and cross the line strip. Otherwise it is a convex line strip, for example a circle.
See also Polygonize POP, Trace POP
Parameters - Triangulate Page
mode - ⊞ - Sets the mode to use to triangulate closed line strips.
- Convex Only
convex-
- Convex and Concave (Slower)
concave-
triangulatequads - Whether to turn quad primitives into triangles.
lsmaxverts - In convex and concave mode, the maximum number of vertices per closed input line strip. Closed line Strips with more vertices will currently be removed from the output.
maxiter - In convex and concave mode, the maximum number of iterations to try to triangulate each closed line strip in input. Currently optional parameter to limit the cook time for very long line strips. If the number is too low, closed line strips will be partially triangulated. Knwown issue: If not set closed line strips self intersecting can cause an infinite loop and freeze TouchDesigner.
Parameters - Common Page
bypass - Pass through the first input to the output unchanged.
freeextragpumem - Free memory that has accumulated when output memory has grown and shrunk.
delinputattrs - Only output which attributes you specify in this POP - helps isolate attributes into a separate branch.
Operator Inputs
- Input 0: -
Info CHOP Channels
Extra Information for the Triangulate POP can be accessed via an Info CHOP.
Common POP Info Channels
Common Operator Info Channels
- total_cooks - Number of times the operator has cooked since the process started.
- cook_time - Duration of the last cook in milliseconds.
- cook_frame - Frame number when this operator was last cooked relative to the component timeline.
- cook_abs_frame - Frame number when this operator was last cooked relative to the absolute time.
- cook_start_time - Time in milliseconds at which the operator started cooking in the frame it was cooked.
- cook_end_time - Time in milliseconds at which the operator finished cooking in the frame it was cooked.
- cooked_this_frame - 1 if operator was cooked this frame.
- warnings - Number of warnings in this operator if any.
- errors - Number of errors in this operator if any.
TouchDesigner Build: