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

Synopsis

planarSrf [-caching boolean] [-constructionHistory boolean] [-degree int] [-keepOutside boolean] [-name string] [-nodeState int] [-object boolean] [-polygon int] [-range boolean] [-tolerance linear] objects

planarSrf is undoable, queryable, and editable.

This command computes a planar trimmed surface given planar boundary curves that form a closed region.

Return value

string[]Object name and node name

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

Flags

caching, constructionHistory, degree, keepOutside, name, nodeState, object, polygon, range, tolerance
Long name (short name) Argument types Properties
-degree(-d) int createqueryedit
The degree of the resulting surface: 1 - linear, 3 - cubic
Default: 3
-keepOutside(-ko) boolean createqueryedit
If true, keep the regions outside the given curves.
Default: false
-tolerance(-tol) linear createqueryedit
The distance tolerance for the cvs of the curves to be in the same plane.
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
Sets the name of the newly-created node. If it contains namespace path, the new node will be created under the specified namespace; if the namespace does not exist, it will be created.
-constructionHistory(-ch) boolean create
Turn the construction history on or off
-object(-o) boolean create
Create the result, or just the dependency node
-polygon(-po) int create
The value of this argument controls the type of the object created by this operation
  • 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

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

// create linear planar trimmed surface given boundary curve(s)
planarSrf -d 1;

// use boundary curve(s) to create a hole by
// keeping the outside trimmed regions
planarSrf -ko true;