pymel.core.modeling.intersect

intersect(*args, **kwargs)

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.

Flags:
Long name (short name) Argument Types Properties
caching (cch) bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node caching mode. See the node documentation for more information. Note:For advanced users only.
constructionHistory (ch) bool ../../../_images/create.gif
 
Turn the construction history on or off
curveOnSurface (cos) bool ../../../_images/create.gif
 
If possible, create 2D curve as a result Flag can have multiple arguments, passed either as a tuple or a list.
firstSurface (fs) bool ../../../_images/query.gif ../../../_images/edit.gif
 
creates a curve-on-surface on the first surface only or on all surfaces (default)
name (n) unicode ../../../_images/create.gif
 
Name the resulting object
nodeState (nds) int ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Modifies the node state. See the node documentation for more information. Note:For advanced users only. Common flags
object (o) bool ../../../_images/create.gif
 
Create the result, or just the dependency node
tolerance (tol) float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
 
Tolerance to fit to. Default:0.01 Advanced flags

Derived from mel command maya.cmds.intersect

Example:

import pymel.core as pm

# 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):
pm.intersect( cos=True )

# Intersect the nurbs sphere and nurbs plane, creating a curve-on-surface
# on each surface:
pm.intersect( 'nurbsSphere1', 'nurbsPlane1', fs=True )

Previous topic

pymel.core.modeling.insertKnotSurface

Next topic

pymel.core.modeling.loft

Core

Core Modules

Other Modules

This Page