Divide SOP

From TouchDesigner 088 Wiki


The Divide SOP divides incoming polygonal geometry. It will smooth input polygons, dividing polygons, as well as sub-divide input polygons using the Bricker option. Bricker is also useful for polygon faces with more than four edges to chop them up into quads and triangles allowing for proper shading when using deformation tools.

PythonIcon.png divideSOP_Class


Group /group - If there are input groups, specifying a group name in this field will cause this SOP to act only upon the group specified. Accepts patterns, as described in Pattern Matching.

Convex Polygons /convex - When checked, this option will convex all incoming polygons to the maximum number of sides as specified in the field below. This is useful for reducing the number of sides of polygons that are concave and not shading properly, e.g. to generate triangles from all incoming geometry, check this option and change the Maximum Edges field below to 3. You will see that all of the polygons are reduced to three sides maximum (triangles).

Maximum Edges /numsides - Input value determines the maximum number of edges that all of the input polygons will be reduced to if they exceed this number. Sets the maximum number of sides for convexed polygons. There must be at least three sides. Using small numbers in the range of 3-6 gives the best results; the resulting polygons are not so long and thin. If input polygons have fewer edges than specified, no change will be executed on those polygons.

Triangulate Non-Planar /planar - Triangulates any non-planar polygons.

Smooth Polygons /smooth - If checked, this feature will divide the polygons which are adjacent to each other and are not flat, as in the corners of a box. The threshold of the smoothing and the amount of polygon divisions that are added are controlled by the fields below.

All incoming geometry must have shared points for Smooth Polygons to work. You may have to pass the geometry through a Facet SOP > Consolidate Points to achieve this. For example, to create a dice from a box, add a Box SOP followed by a Facet SOP> Consolidate Points then through the Divide SOP with Smooth Polygons enabled; set the Weight fields set to: 4,0.5 and the Divisions set to: 2.

Weight /weight1 /weight2 - Determines the localization effect of the added polygons. You can isolate the divisions to where there are edges in the geometry with values greater than 1 enhancing the edges by smoothing out the angle transitions. Values less than 1 tend to put the divisions in the flatter areas of the source geometry and alter the shape of the geometry considerably by pulling in the edges.

Divisions /divs - Determine the level of sub-divisions for the Smooth Polygons option. A value of 1 doubles the number of polygons at the corners, a value of 2 will add twice as much sub-division. Values of 3 and greater may add a substantial number of polygons and should be used with care - you can exponentially increase the complexity.

Bricker Polygons - Selecting this option divides the input polygon geometry into grid-like squares, though the output is not a mesh. Brickering creates new polygons. It can be used to divide a surface so that it deforms more naturally when wrapped on another surface using a Creep SOP, or twisted with a Lattice SOP.

It can also be used to divide a planar surface into smaller pieces to apply point colors using a Point SOP. The size and location of the square divisions created by brickering is determined by the following three options.

Size /sizex /sizey /sizez - Sets the size of the bricker grid divisions in each of the three axes. Offset /offsetx /offsety /offsetz - Sets the XYZ offset of the grid divisions to the Source geometry (the Brickering Grid is moved). Angle /anglex /angley /anglez - Determines the angle relative to XYZ axes, at which Bricker Polygons are created.

Remove Shared Edges /removesh - Eliminates any common edges.

Compute Dual /dual - Convert the polyhedron into its point/face dual.

See Also