Surfsect SOP

From Derivative
Jump to navigation Jump to search

Summary
[edit]

The Surfsect SOP performs boolean operations with NURBS and Bezier surfaces, or only generates profiles where the surfaces intersect. The individual surfaces do not need to be solids (i.e. wrap in U and V), nor do they need to form a solid as a group (for example, you can cut a grid with a sphere).

The surfaces in the first input are denoted by "A" in the parameter list. The surfaces in the second input are denoted by "B". The entire A set is intersected with the B set, which allows for true csg operations with spline surfaces. Thus, if A forms a solid and B forms a solid, any boolean operation between A and B will produce a solid. If either set has an open topology, the result will also be open.

What is deemed to be the inside and outside of a trim region depends on the direction of the surface normals. If necessary, use the Primitive SOP to reverse the surface normals by reversing the surface's U or V direction.

PythonIcon.pngsurfsectSOP_Class


Parameters - Page

Group A groupa - Subset of NURBS and Bezier surfaces. Accepts patterns, as described in Pattern Matching.

Group B groupb - Subset of NURBS and Bezier surfaces to intersect with A. Accepts patterns, as described in Pattern Matching.

3D Tolerance tol3d - World space precision of the intersection.

2D Tolerance tol2d - Domain precision of the intersection.

Marching Steps step - Number of steps for tracing each profile span.


Parameters - Boolean Page

Enables boolean operations between the surfaces in A and B:

Operation boolop - - Select from the following operations: Union, Intersect, A-B, B-A, or User-defined.

If the Operation is set to User-defined, the following options become available:

  • Union union -
  • Intersect intersect -
  • A minus B aminusb -
  • B minus A bminusa -
  • User Defined: other -

Keep Inside A insidea - Preserve the inside sections of the A surfaces.

Keep Inside B insideb - Preserve the inside sections of the B surfaces.

Keep Outside A outsidea - Preserve the outside sections of the A surfaces.

Keep Outside B outsideb - Preserve the outside sections of the B surfaces.


Parameters - Generate Profiles Page

Just create profiles where the surfaces intersect.

Target target - - Which surface to output profiles for: A, B, or both.

  • A a -
  • B b -
  • A and B both -

A Profiles Group creategroupa - Place the A profiles in a user-defined group.

profilesa - The name assigned to profile group A.

B Profiles Group creategroupb - Place the B profiles in a user-defined group.

profilesb - The name assigned to profile group B.

Avoid Already Trimmed-Out Parts mindholes - Intersect only the visible surface parts and truncate the intersection profile at the trimmed-in surface boundaries.

Join Profiles Created by Multiple Surfaces join - If a surface has several adjacent profiles caused by its intersection with two or more surfaces, the profiles will be joined into a single curve-on-surface.


Operator Inputs

  • Input 0 -
  • Input 1 -


Info CHOP Channels

Extra Information for the Surfsect SOP can be accessed via an Info CHOP.

Common SOP Info Channels

  • num_points - Number of points in this SOP.
  • num_prims - Number of primitives in this SOP.
  • num_particles - Number of particles in this SOP.
  • last_vbo_update_time - Time spent in another thread updating geometry data on the GPU from the SOP's CPU data. As it is part of another thread, this time is not part of the usual frame time.
  • last_meta_vbo_update_time - Time spent in another thread updating meta surface geometry data (such as metaballs or nurbs) on the GPU from the SOP's CPU data. As it is part of another thread, this time is not part of the usual frame time.

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:

SOPs
Add • Alembic • Align • Arm • Attribute Create • Attribute • Basis • Blend • Bone Group • Boolean • Box • Experimental:Box • Bridge • Cache • Cap • Capture Region • Capture • Carve • CHOP to • Circle • Experimental: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 • Experimental: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 • Experimental:Rectangle • Refine • Resample • Revolve • Script • Select • Sequence Blend • Skin • Sort • Sphere • Experimental:Sphere • Spring • Sprinkle • Sprite • Stitch • Subdivide • Superquad • Experimental:Superquad • Surfsect • Sweep • Switch • Text • Texture • Torus • Experimental:Torus • Trace • Trail • Transform • Trim • Tristrip • Tube • Experimental:Tube • Twist • Vertex • Wireframe • ZED