Your Ad Here

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

Synopsis

singleProfileBirailSurface( [profile1] [ rail1] [rail2] , [constructionHistory=boolean], [curveOnSurface=boolean], [name=string], [object=boolean], [polygon=int], [range=boolean], [rebuild=boolean], [replaceOriginal=boolean], [sweepStyle=int], [tangentContinuityProfile1=boolean], [transformMode=int])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

singleProfileBirailSurface is undoable, queryable, and editable.

This cmd creates a railed surface by sweeping the profile curve along the two rail curves. One of the requirements for surface creation is the profile curve must intersect the two rail curves. If the profile is a surface curve i.e. isoparm, curve on surface or trimmed edge then tangent continuity across the surface underlying the profile may be enabled using the flag -tp1 true.

Flags

constructionHistory, curveOnSurface, name, object, polygon, range, rebuild, replaceOriginal, sweepStyle, tangentContinuityProfile1, transformMode
Long name (short name) [argument types] Properties
tangentContinuityProfile1(tp1) boolean queryedit
Need to be tangent continuous across the profile. The profile must be a surface curve.
Default: false

In query mode, this flag needs a value.

sweepStyle(ss) int queryedit
sweep style for Profile ( Natural, View ). Only Natural is supported.
Default: 0

In query mode, this flag needs a value.

transformMode(tm) int queryedit
transform mode ( Non proportional, proportional ). Non proportional is default value.
Default: 0

In query mode, this flag needs a value.

name(n) string create
Name the resulting object
constructionHistory(ch) boolean create
Turn the construction history on or off (not available in all commands)
object(o) boolean create
Create the result, or just the dependency node (not available in all commands)
replaceOriginal(rpo) boolean create
Create "in place" (i.e., replace) (not available in all commands)
curveOnSurface(cos) boolean create
If possible, create 2D curve as a result (not available in all commands)
polygon(po) int create
The value of this argument controls the type of the object created by this operation (not available in all commands)
  • 0: nurbs surface
  • 1: polygon (use nurbsToPolygonsPref to set the parameters for the conversion)
  • 2: subdivision surface (use nurbsToSubdivPref to set the parameters for the conversion)
  • 3: Bezier surface
  • 4: subdivision surface solid (use nurbsToSubdivPref to set the parameters for the conversion)
range(rn) boolean create
Force a curve range on complete input curve (not available in all commands)
rebuild(rb) boolean create
Rebuild the input curve(s) before using them in the operation. Use nurbsCurveRebuildPref to set the parameters for the conversion. (not available in all commands)

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 have multiple arguments, passed either as a tuple or a list.

Return value


[string[]] (object name and node name)

Related

extrude

Python examples

import maya.cmds as cmds

#Create a surface by sweeping profile "curve1" along the two rails
#given by isoparms surface1.u[0] and surface2.u[0.5].
cmds.singleProfileBirailSurface( 'curve1', 'surface1.u[0]', 'surface2.u[0.5]', ch=True )

# create a tangent continuous surface across the profile.
cmds.singleProfileBirailSurface( 'surface1.u[0]', 'curve1', 'curve2', ch=True, tp1=True )

  

Return to Autodesk Index


Your Ad Here