Your Ad Here

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

Synopsis

squareSurface( string string string [string] , [constructionHistory=boolean], [continuityPassed1=boolean], [continuityPassed2=boolean], [continuityPassed3=boolean], [continuityPassed4=boolean], [continuityType1=int], [continuityType2=int], [continuityType3=int], [continuityType4=int], [curveFitCheckpoints=int], [curveOnSurface=boolean], [name=string], [object=boolean], [polygon=int], [range=boolean], [rebuild=boolean], [rebuildCurve1=boolean], [rebuildCurve2=boolean], [rebuildCurve3=boolean], [rebuildCurve4=boolean], [replaceOriginal=boolean])

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

squareSurface is undoable, queryable, and editable.

This command produces a square surface given 3 or 4 curves. This resulting square surface is created within the intersecting region of the selected curves. The order of selection is important and the curves must intersect or their ends must meet.
You must specify one continuity type flag for each selected curve. If continuity type is 1 (fixed, no tangent continuity) then the curveFitCheckpoints flag (cfc) is not required.

Flags

constructionHistory, continuityPassed1, continuityPassed2, continuityPassed3, continuityPassed4, continuityType1, continuityType2, continuityType3, continuityType4, curveFitCheckpoints, curveOnSurface, name, object, polygon, range, rebuild, rebuildCurve1, rebuildCurve2, rebuildCurve3, rebuildCurve4, replaceOriginal
Long name (short name) [argument types] Properties
curveFitCheckpoints(cfc) int queryedit
The number of points per span to check the tangency deviation between the boundary curve and the created tangent square surface. Only available for the tangent continuity type.
Default: 5

In query mode, this flag needs a value.

continuityType1(ct1) int queryedit
Continuity type legal values for curve 1: 1 - fixed boundary 2 - tangent continuity 3 - implied tangent continuity
Default: 2

In query mode, this flag needs a value.

continuityType2(ct2) int queryedit
Continuity type legal values for curve 2: 1 - fixed boundary 2 - tangent continuity 3 - implied tangent continuity
Default: 2

In query mode, this flag needs a value.

continuityType3(ct3) int queryedit
Continuity type legal values for curve 3: 1 - fixed boundary 2 - tangent continuity 3 - implied tangent continuity
Default: 2

In query mode, this flag needs a value.

continuityType4(ct4) int queryedit
Continuity type legal values for curve 4: 1 - fixed boundary 2 - tangent continuity 3 - implied tangent continuity
Default: 2

In query mode, this flag needs a value.

rebuildCurve1(rc1) boolean queryedit
A boolean to determine if input curve 1 should be rebuilt (with curvature continuity).
Default: false

In query mode, this flag needs a value.

rebuildCurve2(rc2) boolean queryedit
A boolean to determine if input curve 2 should be rebuilt (with curvature continuity).
Default: false

In query mode, this flag needs a value.

rebuildCurve3(rc3) boolean queryedit
A boolean to determine if input curve 3 should be rebuilt (with curvature continuity).
Default: false

In query mode, this flag needs a value.

rebuildCurve4(rc4) boolean queryedit
A boolean to determine if input curve 4 should be rebuilt (with curvature continuity).
Default: false

In query mode, this flag needs a value.

continuityPassed1(cp1) boolean queryedit
True if the continuity for boundary curve 1 passed.

In query mode, this flag needs a value.

continuityPassed2(cp2) boolean queryedit
True if the continuity for boundary curve 2 passed.

In query mode, this flag needs a value.

continuityPassed3(cp3) boolean queryedit
True if the continuity for boundary curve 3 passed.

In query mode, this flag needs a value.

continuityPassed4(cp4) boolean queryedit
True if the continuity for boundary curve 4 passed.

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

boundary, doubleProfileBirailSurface, loft

Python examples

import maya.cmds as cmds

# Creating square surfaces with three curves and fixed continuity type:

crv1 = cmds.curve( d=3, p=( (8, 0, 3), (5, 0, 3), (2, 0, 2), (0, 0, 0)) )
crv2 = cmds.curve( d=3, p=( (8, 0, -4), (5, 0, -3), (2, 0, -2), (0, 0, 0)) )
crv3 = cmds.curve( d=3, p=( (8, 0, 3), (9, 3, 2), (11, 3, 1), (8, 0, -4)) )

# These curves form a rough triangle shape pointing at the origin.

cmds.squareSurface( crv3, crv1, crv2, ct1=1, ct2=1, ct3=1 )

# Creating square surfaces with four curves, tangent continuity
# type and to use 6 points per span in checking the continuity:

crv1 = cmds.curve( d=3, p=( (-2, 0, 4), (-2, 0, 5), (1, 0, 3), (3, 0, 4), (6, 0, 5) ) )
crv2 = cmds.curve( d=3, p=( (6, 0, 5), (8, 0, 2), (8, 0, -3), (7, 0, -4 ) ) )
crv3 = cmds.curve( d=3, p=( (7, 0, -4), (2, 0, -3), (-1, 0, -5), (-2, 0, -4) ) )
crv4 = cmds.curve( d=3, p=( (-2, 0, 4), (-4, 0, 1), (-4, 0, -3), (-2, 0, -4) ) )

# These curves form a rough square shape around the origin.

cmds.squareSurface( crv1, crv2, crv3, crv4, cfc=6, ct1=2, ct2=2, ct3=2, ct4=2 )

  

Return to Autodesk Index


Your Ad Here