Close

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.

PythonIcon.pngfieldPOP_Class


Parameters - Field Page

Attribute Class attrclass - -
  • Point point -
  • Vertex vertex -
  • Primitive primitive -

Field Attribute Scope fieldattrscope -

Spec POP specpop -

Mode 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 - -
  • Size sizex -
  • Size sizey -
  • Size sizez -

Radius rad - -
  • Radius radx -
  • Radius rady -
  • Radius radz -

Height height -

Roundness roundness -

Point A pointa - -
  • Point A pointa1 -
  • Point A pointa2 -
  • Point A pointa3 -

Point B pointb - -
  • Point B pointb1 -
  • Point B pointb2 -
  • Point B pointb3 -

Strength strength - -
  • Strength strengthx -
  • Strength strengthy -

Exponent exponent -

Weight weight -

Transition Range transitionrange -

Transition Align transitionalign -

Transition Type transitiontype - -
  • Linear linear -
  • Smooth Step smoothstep -
  • Ease In Ease Out easeinout -

Absolute Value absvalue -

Invert invert -

To Range torange - -
  • To Range torange1 -
  • To Range torange2 -

Delete Zeros deletezeros -

Output Attribute Scope outputattrscope - -
  • P P -
  • N N -
  • Color Color -
  • Color.i012 Color.i012 -
  • Tex Tex -
  • PointScale PointScale -
  • LineWidth LineWidth -


Override Automatic Attribute overrideautoattr -

New Attribute Type newattrtype - -
  • float float -
  • double double -
  • int int -
  • uint uint -
  • dir dir -
  • dbl dir ddir -

New Attribute Number of Components attrnumcomps - -
  • 1 1 -
  • 2 2 -
  • 3 3 -
  • 4 4 -

New Attribute Default Value newattrdefaultval - -
  • New Attribute Default Value newattrdefaultval1 -
  • New Attribute Default Value newattrdefaultval2 -
  • New Attribute Default Value newattrdefaultval3 -
  • New Attribute Default Value newattrdefaultval4 -

Signed Distance signeddistance -

Signed Distance Output Attribute Scope sdoutputattrscope - -
  • P P -
  • N N -
  • Color Color -
  • Color.i012 Color.i012 -
  • Tex Tex -
  • PointScale PointScale -
  • LineWidth LineWidth -


Override Automatic Attribute sdoverrideautoattrib -

New Attribute Type sdnewattrtype - -
  • float float -
  • double double -
  • int int -
  • uint uint -
  • dir dir -
  • dbl dir ddir -

New Attribute Number of Components sdattrnumcomps - -
  • 1 1 -
  • 2 2 -
  • 3 3 -
  • 4 4 -

New Attribute Default Value sdnewattrdefaultval - -
  • New Attribute Default Value sdnewattrdefaultval1 -
  • New Attribute Default Value sdnewattrdefaultval2 -
  • New Attribute Default Value sdnewattrdefaultval3 -
  • New Attribute Default Value sdnewattrdefaultval4 -


Parameters - Transform Page

Transform Order 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 -

Rotate Order 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 -

Translate t - -
  • Translate tx -
  • Translate ty -
  • Translate tz -

Rotate r - -
  • Rotate rx -
  • Rotate ry -
  • Rotate rz -

Scale s - -
  • Scale sx -
  • Scale sy -
  • Scale sz -

Pivot p - -
  • Pivot px -
  • Pivot py -
  • Pivot pz -


Parameters - Common Page

Bypass bypass -

Delete Input Attributes 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: