Experimental:Line Metrics POP
Summary
You can add metrics attributes to Line Strips. They can be created as point attribute or the vertex attributes.
This gives good information about the points and the context they are in. For each point you can get the direction to the next and previous points, or the distance back to the start of the line strip, or the line strip number it is in… things useful for Math POPs or Lookup POPs.
A convenience of the Line Metrics POP is to give nice values to awkward situations like co-incident points (two or more consecutive points in the same location), especially direction vectors. That’s what the Continuous Direction parameter does. It would work with Direction to Next, Direction to Previous, and do nice things to the Tangent vectors by keeping them in line.
Parameters - Neighbor Page
attrclass
- ⊞ -
- Point
point
-
- Vertex
vertex
-
dispnext
-
dispnextname
-
dispprev
-
dispprevname
-
distnext
-
distnextname
-
distprev
-
distprevname
-
dirnext
-
dirnextname
-
dirprev
-
dirprevname
-
tangent
-
tangentname
-
curvature
-
curvaturename
-
angleperdist
-
angleperdistname
-
continuousdir
-
maxneighbors
-
Parameters - Line Strip Page
diststart
-
diststartname
-
distend
-
distendname
-
diststartnorm
-
diststartnormname
-
distendnorm
-
distendnormname
-
primlen
-
primlenname
-
primlenprim
-
Parameters - Index Page
pointindex
-
pointindexname
-
numverts
-
numvertsname
-
vertindexnorm
-
vertindexnormname
-
linestripindex
-
linestripindexname
-
lsindexnorm
-
lsindexnormname
-
Parameters - Common Page
bypass
-
delinputattrs
-
Operator Inputs
- Input 0: -
Info CHOP Channels
Extra Information for the Line Metrics 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: