Boolean SOP and Capture Region SOP: Difference between pages

From Derivative
(Difference between pages)
Jump to navigation Jump to search
(TD Editor)
 
(TD Editor)
 
Line 1: Line 1:
{{Summary
{{Summary
|OPclass=booleanSOP_Class
|OPtype=cregion
|OPtype=boolean
|OPfilter=False
|short=The Boolean SOP takes two closed polygonal sets, A and B. Set these Sources to the SOPs with the 3D shapes that you wish to operate on.
|short=The Capture Region SOP defines capture region (cregion), which is a type of primitive which can be thought of as a modified tube primitive (a tube with half a sphere on either end).
|OPfilter=True
|OPlicense=Non-Commercial
|OPlabel=Boolean
|OPclass=captureregionSOP_Class
|long=The Boolean SOP takes two closed polygonal sets, A and B. Set these Sources to the SOPs with the 3D shapes that you wish to operate on. There are two important requirements for input geometry:
|OPlabel=Capture Region
|long=The Capture Region SOP defines capture region (cregion), which is a type of primitive which can be thought of as a modified tube primitive (a tube with half a sphere on either end). The hemispheres on the ends of the tubes are called "caps". Like any other primitive, each Capture Region has a primitive number and can be assigned primitive attributes. A Capture Region is simply a volume which is used to define the point capture weighting for a geometry. It is then animated to deform the geometry.
* Shapes must be completely closed. A tube with open ends is not an acceptable input. You can close Tube ends with an end-cap. An extruded letter with no back polygons output is also unacceptable (even with backs output it can be unacceptable because of the second requirement).
* All polygons must be convex and coplanar. In the case of the Extrude SOP, you must select Output Convex Faces for front and back faces. It will now be a usable input for Boolean. The Divide SOP also offers a convexing function for geometry not created with the Extrude SOP.
Capture Regions are always shown in wireframe (even in shaded mode) so that you can focus on the geometry for which the region will act on.
|OPfamily=SOP
Other caveats for Boolean are the following:
}}
{{ParameterPage
* Point colors and texture UV coordinates are not interpolated correctly.
|Pagesummary=There are parameters to control the size, shape and position of the capture region. There are separate controls for the top and bottom half of the region. This allows you to edit one side of the bone at a time as you work through your character.
* In some cases polygons can be reversed so that all normals point outwards. The polygon reversal should not usually present much of a problem (use a Primitive SOP > Face/Hull page > Vertex > Reverse to reverse them if necessary).
The <span class="tipTextSOP">Max/Min Weight</span> parameter is used in the weighting of points. The closer a point is to the edge of the region, the smaller it's weight will be. By default the weight is 1 along the center axis of a region (more on this later), and 0 at the edge of the region. You can modify these weight extremities by through this parameter.
This SOP is quite visual and intuitive; you can experiment with the different combinations on screen to see the effects.
|Pagename=Region
|items=
'''Note:''' The Boolean SOP handles polygonal geometry types. For boolean-type operations with nurbs and Bezier surfaces - see [[Surfsect SOP]].
{{ParMenu
|OPfamily=SOP
|OPtype=cregion
|OPlicense=Non-Commercial
|Parname=orient
}}
|Parlabel=Orientation
{{ParMenu
|Paritems=
|Parorder=0
{{Menuitem
|Parname=booleanop
|Itemname=x
|Parlabel=Operation
|Parname=orient
|Parsummary=Some of the operations below produce guide geometry to give you visual feedback on the results of the operation being performed. The appearance of the geometry is context sensitive - if you are performing an intersect operation, or either of the edge operations the guide will be both inputs; if you are doing A minus B then the guide will be B and if B minus A then the guide will be A. If you are doing union then there will be no guide geometry.
|Itemsummary=
|Itemlabel=X Axis
If the guide geometry is too distracting, you can disable it by entering the Viewport options dialog and clicking on the Guide geometry button so that it no longer appears indented. This procedure is global and will disable the guide geometry of other SOPs as well.
|OPfamily=SOP
}}
Select one of the following operations from the pop-up menu:
{{Menuitem
|Paritems=
|Itemname=y
{{Menuitem
|Parname=orient
|Itemlabel=Union
|Itemsummary=
|Itemname=union
|Itemlabel=Y Axis
|Itemsummary=Geometry from the two inputs is combined, and interior polygons are removed. The result is a closed shape. This can be very useful for joining pipes or other shapes that the camera will travel inside, or where the intersecting shapes must be transparent. Points at the intersection of the shapes are not consolidated.
|OPfamily=SOP
|Parname=booleanop
}}
|OPfamily=SOP
{{Menuitem
}}
|Itemname=z
{{Menuitem
|Parname=orient
|Itemlabel=Intersect
|Itemsummary=
|Itemname=intersect
|Itemlabel=Z Axis
|Itemsummary=The resulting geometry is a closed shape where the two input shapes overlap or intersect. Geometry outside the common area is discarded.
|OPfamily=SOP
|Parname=booleanop
}}
|OPfamily=SOP
}}
|Parorder=0
{{Menuitem
|Parsummary=Defines the direction axis of the region. Use Z axis when the region is inside a bone object.
|Itemlabel=A minus B
|OPfamily=SOP
|Itemname=aminusb
}}
|Itemsummary=The result is a closed shape in which the geometry from B is cut away or subtracted from the geometry in A.
{{ParFloat
|Parname=booleanop
|OPtype=cregion
|OPfamily=SOP
|Parname=t
}}
|Parlabel=Center
{{Menuitem
|Paritems=
|Itemlabel=B minus A
{{floatitem
|Itemname=bminusa
|Itemname=tx
|Itemsummary=All operations same as previous three, but resulting shape is Part B with Part A cut away from it.
|Parname=t
|Parname=booleanop
|Itemsummary=
|OPfamily=SOP
|Itemlabel=X
}}
|OPfamily=SOP
{{Menuitem
}}
|Itemlabel=A Edge
{{floatitem
|Itemname=aedge
|Itemname=ty
|Itemsummary=Closed face(s) are produced, at the edges where the two parts meet. The face(s) can be twisted (not planar). The point order is unpredictable; append a Polygon SOP with the Order Points option enabled to sort them out if you want to make connections to the face.<!--TDitemEnd-->
|Parname=t
|Itemsummary=
The Boolean SOP will automatically orient polygons so they face the same way. This may not be enough in some cases because Boolean results in some unshared edges where the intersection cut took place. If the shading is still not good enough, you are best to follow Boolean with a Facet SOP. In it, Consolidate Points, Orient Polygons and finally Cusp.
|Itemlabel=Y
|OPfamily=SOP
If you have really strange shaped polygons, you can first triangulate one or both of the inputs with the Divide SOP.
}}
|Parname=booleanop
{{floatitem
|OPfamily=SOP
|Itemname=tz
}}
|Parname=t
{{Menuitem
|Itemsummary=
|Itemlabel=B Edge
|Itemlabel=Z
|Itemname=bedge
|OPfamily=SOP
|Itemsummary=Closed face(s) are produced, at the edges where the two parts meet. The face(s) can be twisted (not planar). The point order is unpredictable; append a Polygon SOP with the Order Points option enabled to sort them out if you want to make connections to the face.<!--TDitemEnd-->
}}
The Boolean SOP will automatically orient polygons so they face the same way. This may not be enough in some cases because Boolean results in some unshared edges where the intersection cut took place. If the shading is still not good enough, you are best to follow Boolean with a Facet SOP. In it, Consolidate Points, Orient Polygons and finally Cusp.
|Parorder=1
|Parsummary=Position of the center of the region.
If you have really strange shaped polygons, you can first triangulate one or both of the inputs with the Divide SOP.
|OPfamily=SOP
|Parname=booleanop
}}
|OPfamily=SOP
{{ParFloat
}}
|OPtype=cregion
|Parlabel=Top Height
|OPfamily=SOP
|Parname=theight
|OPtype=boolean
|Parorder=2
}}
|Parsummary=Height of the region from the centre to the top cap.
{{ParToggle
|OPfamily=SOP
|Parname=accattrib
}}
|Parlabel=Accurate Attributes Interpolation
{{ParFloat
|Parsummary=If selected, all inputs are convexed to triangles, otherwise they are convexed to quadrilaterals.
|OPtype=cregion
|Parorder=1
|Parname=tcap
|OPfamily=SOP
|Parlabel=Top Cap
|OPtype=boolean
|Paritems=
}}
{{floatitem
{{ParToggle
|Itemname=tcapx
|Parname=creategroup
|Parname=tcap
|Parlabel=Create Groups
|Itemsummary=
|Parsummary=If selected, a group is created containing all faces pertaining to the first input, and a second group containing all faces of the second input.
|Itemlabel=X
|Parorder=2
|OPfamily=SOP
|OPfamily=SOP
}}
|OPtype=boolean
{{floatitem
}}
|Itemname=tcapy
{{ParString
|Parname=tcap
|Parname=groupa
|Itemsummary=
|Parlabel=Group A
|Itemlabel=Y
|Parsummary=
|OPfamily=SOP
|Parorder=3
}}
|OPfamily=SOP
{{floatitem
|OPtype=boolean
|Itemname=tcapz
}}
|Parname=tcap
{{ParString
|Itemsummary=
|Parname=groupb
|Itemlabel=Z
|Parlabel=Group B
|OPfamily=SOP
|Parsummary=
}}
|Parorder=4
|OPfamily=SOP
|Parorder=3
|OPtype=boolean
|Parsummary=The X, Y, Z radii of the top/bottom hemisphere.
}}
|OPfamily=SOP
{{History
}}
}}
{{ParFloat
{{SOPNavBox
|OPtype=cregion
|OPfamily=SOP
|Parlabel=Bottom Height
}}
|Parname=bheight
{{#invoke:Category
|Parorder=4
|Parsummary=Height of the region from the centre to the top cap.
|OPfamily=SOP
}}
{{ParFloat
|OPtype=cregion
|Parname=bcap
|Parlabel=Bottom Cap
|Paritems=
{{floatitem
|Itemname=bcapx
|Parname=bcap
|Itemsummary=
|Itemlabel=X
|OPfamily=SOP
}}
{{floatitem
|Itemname=bcapy
|Parname=bcap
|Itemsummary=
|Itemlabel=Y
|OPfamily=SOP
}}
{{floatitem
|Itemname=bcapz
|Parname=bcap
|Itemsummary=
|Itemlabel=Z
|OPfamily=SOP
}}
|Parorder=5
|Parsummary=The X, Y, Z radii of the top/bottom hemisphere.
|OPfamily=SOP
}}
{{ParFloat
|OPtype=cregion
|Parname=weight
|Parlabel=Max/Min Weight
|Paritems=
{{floatitem
|Itemname=weight1
|Parname=weight
|Itemsummary=
|Itemlabel=""
|OPfamily=SOP
}}
{{floatitem
|Itemname=weight2
|Parname=weight
|Itemsummary=
|Itemlabel=""
|OPfamily=SOP
}}
|Parorder=6
|Parsummary=Defines the weight of a point exactly on the centre line and edge of the region respectively. Point weights in-between are blended.
|OPfamily=SOP
}}
|OPfamily=SOP
}}
{{ParameterPage
|Pagesummary=
|Pagename=Display
|items=
{{ParRGB
|OPtype=cregion
|Parname=color
|Parlabel=Display Color
|Paritems=
{{rgbitem
|Itemname=colorr
|Parname=color
|Itemsummary=
|Itemlabel=Red
|OPfamily=SOP
}}
{{rgbitem
|Itemname=colorg
|Parname=color
|Itemsummary=
|Itemlabel=Green
|OPfamily=SOP
}}
{{rgbitem
|Itemname=colorb
|Parname=color
|Itemsummary=
|Itemlabel=Blue
|OPfamily=SOP
}}
|Parorder=0
|Parsummary=The Capture Region SOP<uses region colors for helpful feedback.
|OPfamily=SOP
}}
|OPfamily=SOP
}}
{{History
}}
{{SOPNavBox
|OPfamily=SOP
}}
{{#invoke:Category
|list|SOPs}}
|list|SOPs}}

Revision as of 11:19, 6 September 2017

  • Invalid title: ""

Summary
[edit]

The Capture Region SOP defines capture region (cregion), which is a type of primitive which can be thought of as a modified tube primitive (a tube with half a sphere on either end). The hemispheres on the ends of the tubes are called "caps". Like any other primitive, each Capture Region has a primitive number and can be assigned primitive attributes. A Capture Region is simply a volume which is used to define the point capture weighting for a geometry. It is then animated to deform the geometry.

Capture Regions are always shown in wireframe (even in shaded mode) so that you can focus on the geometry for which the region will act on.

PythonIcon.png[[{{{opClass}}}]]


Parameters - Page

Template:ParMenu Template:ParFloat Template:ParFloat Template:ParFloat Template:ParFloat Template:ParFloat Template:ParFloat


Parameters - Page

Template:ParRGB

TouchDesigner Build:

SOPs
Add • Alembic • Align • Arm • Attribute Create • Attribute • Basis • Blend • Bone Group • Boolean • Box • Bridge • Cache • Cap • Capture Region • Capture • Carve • CHOP to • Circle • Clay • Clip • Convert • Copy • CPlusPlus • Creep • Curveclay • Curvesect • DAT to • Deform • Delete • Divide • Extrude • Face Track • Facet • File In • Fillet • Fit • Font • Force • Fractal • Grid • Group • Hole • Import Select • In • Introduction To s Vid • Inverse Curve • Iso Surface • Join • Joint • Kinect • Lattice • Limit • Line • Line Thick • LOD • LSystem • Magnet • Material • Merge • Metaball • Model • Noise • Null • Object Merge • Oculus Rift • OpenVR • Out • Particle • Point • Polyloft • Polypatch • Polyreduce • Polyspline • Polystitch • Primitive • Profile • Project • Rails • Raster • Ray • Rectangle • Refine • Resample • Revolve • Script • Select • Sequence Blend • Skin • Sort • Sphere • Spring • Sprinkle • Sprite • Stitch • Subdivide • Superquad • Surfsect • Sweep • Switch • Text • Texture • Torus • Trace • Trail • Transform • Trim • Tristrip • Tube • Twist • Vertex • Wireframe • ZED