Experimental:Field POP
Summary
The Field POP adds a Weight attribute that represents, for each point, how much a shape defined by the Field POP overlaps with each point. It is often used to cut out sections of points in point clouds. Its shapes include spheres (ellipsoids), cylinders, planes, paraboloids, etc, where all points within the shape (or on one side of the shape) are given a Weight of 1 and all other points are 0.
It also can output a Dist attribute, which is a distance to the surface for points that are outside the shape.
There are parameters that soften the transition from 0 to 1: The Transition range is the distance over which the weight goes from 1 to 0, Transition Align which determines if the transition from 1 to 0 starts at the surface, or ends at the surface (default half-way). The Transition Type allows for linear, ease-in ease-out, or smooth step transitions.
Multiple fields in one Field POP: A parameter called Spec POP is a pointer to a POP where each point of the spec POP defines a separate field. The attributes of the spec POP are named the same as parameters tokens in the Field POP, and override the parameters for each field. Menus and toggles are represented as integers. You need only to create a Point POP with attributes named as the Field POP parameters, and then add points and set their values. Or generate points procedurally with attributes that match the Field POP parameter name. The workflow is the same as multiple strings defined in a spec DAT of the Geo Text POP and the Text TOP.
Parameters - Field Page
attrclass
- ⊞ -
- Point
point
-
- Vertex
vertex
-
- Primitive
primitive
-
fieldattrscope
-
specpop
-
mode
- ⊞ -
- Sphere
sphere
-
- Box
box
-
- Torus
torus
-
- Cylinder Infinite
cylinderinfinite
-
- Cylinder Capped
cylindercapped
-
- Cylinder Rounded
cylinderrounded
-
- Capsule
capsule
-
- X-Plane
xplane
-
- Y-Plane
yplane
-
- Z-Plane
zplane
-
- Parabola
parabola
-
- Line Projection
lineprojection
-
size
- ⊞ -
- Size
sizex
-
- Size
sizey
-
- Size
sizez
-
rad
- ⊞ -
- Radius
radx
-
- Radius
rady
-
- Radius
radz
-
height
-
roundness
-
pointa
- ⊞ -
- Point A
pointa1
-
- Point A
pointa2
-
- Point A
pointa3
-
pointb
- ⊞ -
- Point B
pointb1
-
- Point B
pointb2
-
- Point B
pointb3
-
strength
- ⊞ -
- Strength
strengthx
-
- Strength
strengthy
-
exponent
-
weight
-
transitionrange
-
transitionalign
-
transitiontype
- ⊞ -
- Linear
linear
-
- Smooth Step
smoothstep
-
- Ease In Ease Out
easeinout
-
absvalue
-
invert
-
torange
- ⊞ -
- To Range
torange1
-
- To Range
torange2
-
deletezeros
-
outputattrscope
- ⊞ -
- P
P
-
- N
N
-
- Color
Color
-
- Color.i012
Color.i012
-
- Tex
Tex
-
- PointScale
PointScale
-
- LineWidth
LineWidth
-
overrideautoattr
-
newattrtype
- ⊞ -
- float
float
-
- double
double
-
- int
int
-
- uint
uint
-
- dir
dir
-
- dbl dir
ddir
-
attrnumcomps
- ⊞ -
- 1
1
-
- 2
2
-
- 3
3
-
- 4
4
-
newattrdefaultval
- ⊞ -
- New Attribute Default Value
newattrdefaultval1
-
- New Attribute Default Value
newattrdefaultval2
-
- New Attribute Default Value
newattrdefaultval3
-
- New Attribute Default Value
newattrdefaultval4
-
signeddistance
-
sdoutputattrscope
- ⊞ -
- P
P
-
- N
N
-
- Color
Color
-
- Color.i012
Color.i012
-
- Tex
Tex
-
- PointScale
PointScale
-
- LineWidth
LineWidth
-
sdoverrideautoattrib
-
sdnewattrtype
- ⊞ -
- float
float
-
- double
double
-
- int
int
-
- uint
uint
-
- dir
dir
-
- dbl dir
ddir
-
sdattrnumcomps
- ⊞ -
- 1
1
-
- 2
2
-
- 3
3
-
- 4
4
-
sdnewattrdefaultval
- ⊞ -
- New Attribute Default Value
sdnewattrdefaultval1
-
- New Attribute Default Value
sdnewattrdefaultval2
-
- New Attribute Default Value
sdnewattrdefaultval3
-
- New Attribute Default Value
sdnewattrdefaultval4
-
Parameters - Transform Page
xord
- ⊞ -
- Scale Rotate Translate
srt
-
- Scale Translate Rotate
str
-
- Rotate Scale Translate
rst
-
- Rotate Translate Scale
rts
-
- Translate Scale Rotate
tsr
-
- Translate Rotate Scale
trs
-
rord
- ⊞ -
- Rx Ry Rz
xyz
-
- Rx Rz Ry
xzy
-
- Ry Rx Rz
yxz
-
- Ry Rz Rx
yzx
-
- Rz Rx Ry
zxy
-
- Rz Ry Rx
zyx
-
t
- ⊞ -
- Translate
tx
-
- Translate
ty
-
- Translate
tz
-
r
- ⊞ -
- Rotate
rx
-
- Rotate
ry
-
- Rotate
rz
-
s
- ⊞ -
- Scale
sx
-
- Scale
sy
-
- Scale
sz
-
p
- ⊞ -
- Pivot
px
-
- Pivot
py
-
- Pivot
pz
-
Parameters - Common Page
bypass
-
delinputattrs
-
Operator Inputs
- Input 0: -
Info CHOP Channels
Extra Information for the Field 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: