Line Resample POP
Summary[edit]
The Line Resample POP will take a set of line strips, and for each one, resample the line strip in one of four methods: number of Divisions per Line Strip, a specified Distance between Points, point separation based on the curvature of the line strip at each of the original points (By Curvature), and lastly, dividing based on stepping uniformly along another attribute of the line strip (Points as Keyframes) using an "Independent Variable Attribute".
Using a ControlPoint attribute you can make the resampled curve pass through (include) the control points exactly.
Resampling By Curvature has two distance parameters - the Minimum Distance where the curvature is high, and the Maximum Distance where the curvature is low (straight sections). Min Max Bias will create more or less minimum-distance points.
Line Resample POP doe not change the shape of the lines, unlike Line Smooth POP.
See also Line Divide POP, Line Smooth POP.
Parameters - Resample Page
resamplemethod - ⊞ - Line strip resample method.
- None
none-
- Divisions per Line Strip
linestrip-
- Distance between Points
dist-
- By Curvature
curvature-
- Points as Keyframes
keyframes-
resampledivs - The number of divisions.
resamplemindist - The minimum distance between points in the output line strips.
resamplemaxdist - Maximum Distance between Points
resampleminmaxbias - Bias of point creation - more near the minimum or more near the maximum distance.
usectrlpoints - ⊞ - One attribute will contain 0 or 1 values in points to signify which ones are control points.
- Control Points Attribute
usectrlpoints-
- Control Points Attribute Name
ctrlpointsattr- Sets the attribute scope when outputting a control point attribute
indvarattr - Attribute to use as the independent variable.
indvarstep - Step size to use for the independent variable, usually a fraction of the independent variable range.
maxverts - Sets the number of vertices to be allocated. It should be bigger than the actual number of vertices created (visible in info popup). More vertices allocated use more GPU memory.
maxtries - Max number of iterations for binary search when linearly resampling.
rmvunusedpts - Removes unused points not referenced by primitives.
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 Line Resample 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:
| POPs |
|---|
| • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • • |