Go to: Synopsis. Return value. Related. Flags. MEL examples.

Synopsis

intersect [-caching boolean] [-constructionHistory boolean] [-curveOnSurface boolean] [-firstSurface boolean] [-name string] [-nodeState int] [-object boolean] [-tolerance linear] [surface] [surface]

intersect is undoable, queryable, and editable.

The intersect command creates a curve on surface where all surfaces intersect with each other. By default, the curve on surface is created for both surfaces. However, by using the -fs flag, only the first surface will have a curve on surface. Also, the intersection curve can be created as a 3D curve rather than a curve on surface.

Return value

string[]Object name and node name

In query mode, return type is based on queried flag.

Related

curveOnSurface, duplicateCurve, projectCurve

Flags

caching, constructionHistory, curveOnSurface, firstSurface, name, nodeState, object, tolerance
Long name (short name) Argument types Properties
-firstSurface(-fs) boolean queryedit
creates a curve-on-surface on the first surface only or on all surfaces (default)
-tolerance(-tol) linear createqueryedit
Tolerance to fit to.
Default: 0.01
Advanced flags
-caching(-cch) boolean createqueryedit
Modifies the node caching mode. See the node documentation for more information.
Note: For advanced users only.
-nodeState(-nds) int createqueryedit
Modifies the node state. See the node documentation for more information.
Note: For advanced users only.
Common flags
-name(-n) string create
Name the resulting object
-constructionHistory(-ch) boolean create
Turn the construction history on or off
-object(-o) boolean create
Create the result, or just the dependency node
-curveOnSurface(-cos) boolean create
If possible, create 2D curve as a result

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can be used more than once in a command.

MEL examples

// Intersect the two active surfaces and create the resulting curve on
// surface as a 3D curve (note: only one 3D curve is created for each
// pair of intersecting surfaces):
intersect -cos no;

// Intersect the nurbs sphere and nurbs plane, creating a curve-on-surface
// on each surface:
intersect -fs no nurbsSphere1 nurbsPlane1;