Profile SOP

From TouchDesigner 088 Wiki

Summary

The Profile SOP enables the extraction and manipulation of profiles.

You will usually need a Trim SOP, Bridge SOP, or Profile SOP after a Project SOP. Use a Trim SOP to cut a hole in the projected surface. Use a Bridge SOP to skin the profile curve to another profile curve.

PythonIcon.png profileSOP_Class

Parameters

Group /group - This field allows you to specify the particular group of curves on the surface. Other primitives are ignored. You can specify profile curves within the group by providing a profile pattern (e.g. *.3 specifies the fourth profile in all spline surfaces).

Extract

These parameters allow you to extract a stand-alone 3D curve as the world or parametric image of the profile. The non-parametric option will yield a curve whose shape and position in space are identical or very similar to those of the chosen profile. The parametric option will produce a planar, XY face whose vertices and type will be identical to those of the profile in 2D; also, if the profile is a spline it will have the same basis as the extracted curve.

Parametrically to XY/parametric - If Fitted (this option not checked), the profile will be a spatial NURBS curve whose position and shape in space will be identical to the curve on surface. It may very well be non-planar. If Extracted Parametrically (this option checked), the result will extract the profile's parametric image as a 3D face, which will be a planar face in XY whose type (polygon, Bzier, NURBS) will the same as the profile's, and whose vertices match the profile CVs. This, however, does not guarantee spatial coincidence between profile and extracted curve, and is more of an analytical tool.

Tip: A profile extracted parametrically can be reapplied to the surface identically with the Project SOP by choosing the Parametric option with no Mapping to Range. Use this method to extract the profile, pull its points or edit it as you would any 3D face, then re-project it on the surface at the same location.

Smooth Curve /smooth - If enabled, it will fit a spline through the extracted points. This parameter is disabled when extracting the profile parametrically. Disable this parameter in order to bypass the fitting process which might be both expensive (in processing speed) and unnecessary when extracting profiles produced by boolean operations (see Surfsect SOP).

Divisions Per Span /sdivs - The number of points per span to be computed on the profile. A span is the line connecting two consecutive CVs on a polygon, or the arc between two breakpoints on a spline curve. The profile tends to become more accurate as the number of divisions is higher.

Tolerance /tolerance - This parameter specifies the precision of the fitting process for the extracted 3D data, and is typically less than 0.01.

Order /order - The spline order of the resulting 3D curve. The type of curve (Bzier or NURBS) is inherited from the spatial curve. The order, however, is not inherited because the spline order provides useful control over the quality of the fit. If the profile is a polygon, the spatial curve will be a NURBS curve.

Preserve Sharp Corners /cshape - Controls the precision with which sharp corners in the profile curve are interpolated. It should be on when the profile has areas of high changes in curvature.

Keep Surface /keepsurf - Specifies whether the parent surface should be removed after the extraction or not.

Delete Original Profile /delprof

Remap

Repositions and scales an existing profile to fit within the specified domain range. It is a good means of bringing an invisible profile into view by setting the mapping range between 0 and 1 in the U and V parametric directions. A profile mapped outside the unit domain becomes invisible but is not removed from the surface. Other ways to change a profile are available through the Primitive SOP.


Mapping Type /maptype

  • Uniform converts the spatial coordinates of the profile to (U,V) points in the domain of the surface without taking into account the parameterization of the surface.
  • Chord Length takes into account the surface parameterization and attempts to compute a profile best suited to the spatial and parametric determinants of the model.

U Range /urange1 /urange2 - Indicates in percentages what part of the U surface domain is the mapping area. A full range of 0-1 will cause the profiles to be mapped to the entire domain in the U parametric direction. The range is not restricted to the 0-1 interval.

V Range /vrange1 /vrange2 - Indicates in percentages what part of the V surface domain is the mapping area. A full range of 0-1 will cause the profiles to be mapped to the entire domain in the V parametric direction. The range is not restricted to the 0-1 interval.

See Also