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

Synopsis

polyBevel [-angleTolerance float] [-autoFit boolean] [-caching boolean] [-constructionHistory boolean] [-name string] [-nodeState int] [-offset linear] [-offsetAsFraction boolean] [-roundness float] [-segments int] [-worldSpace boolean]

polyBevel is undoable, queryable, and editable.

Bevel edges.

Return value

stringThe node name.

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

Related

polyAppend, polyAppendVertex, polyChipOff, polyCreateFacet, polyExtrudeEdge, polyExtrudeFacet, polySmooth, polySplit, polySplitVertex, polySubdivideEdge, polySubdivideFacet, polyTriangulate

Flags

angleTolerance, autoFit, caching, constructionHistory, name, nodeState, offset, offsetAsFraction, roundness, segments, worldSpace
Long name (short name) Argument types Properties
-offset(-o) linear createqueryedit
This flag specifies the offset distance for the bevelling.
C: Default is 0.2.
Q: When queried, this flag returns a float.
-offsetAsFraction(-oaf) boolean createqueryedit
This flag specifies whether the offset is a fraction or an absolute value. If a fraction, the offset can range between 0 and 1, where 1 is the maximum possible offset
C: Default is false.
Q: When queried, this flag returns an int.
-angleTolerance(-at) float createqueryedit
This flag specifies the angle beyond which additional faces may be inserted to avoid possible twisting of faces. If the bevel produces unwanted faces, try increasing the angle tolerance.
C: Default is 5 degrees.
Q: When queried, this flag returns a double.
-roundness(-r) float createqueryedit
This flag specifies the roundness of bevel. A roundness of 0 means that all new faces are coplanar. This value is only used if the autoFit value is off.
C: Default is 0.5.
Q: When queried, this flag returns a float.
-segments(-sg) int createqueryedit
This flag specifies the number of segments used for the bevelling.
C: Default is 1.
Q: When queried, this flag returns an int.
-autoFit(-af) boolean createqueryedit
Computes a smooth roundness, new faces round off a smooth angle.
C: Default is on.
Q: When queried, this flag returns an int.
-worldSpace(-ws) boolean createqueryedit
This flags specifies the used reference. If on : the offset flag is taken in world reference. If off : the offset flag is taken in object reference (the default).
C: Default is off.
Q: When queried, this flag returns an int.
Common flags
Common flags
-name(-n) string create
Give a name to the resulting node.
-constructionHistory(-ch) boolean createquery
Turn the construction history on or off (where applicable). If construction history is on then the corresponding node will be inserted into the history chain for the mesh. If construction history is off then the operation will be performed directly on the object.
Note: If the object already has construction history then this flag is ignored and the node will always be inserted into the history chain.
-caching(-cch) boolean createedit
Toggle caching for all attributes so that no recomputation is needed
-nodeState(-nds) int
Defines how to evaluate the node.
  • 0: Normal
  • 1: PassThrough
  • 2: Blocking
  • 3: Internally disabled. Will return to Normal state when enabled
  • 4: Internally disabled. Will return to PassThrough state when enabled
  • 5: Internally disabled. Will return to Blocking state when enabled

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

// Replace an edge by 1 face, the width of the new face is given by the offset value.
polyCube -n plg;
polyBevel -offset 0.2 plg.e[7];
delete plg;

// Replace an edge by 4 faces, the new faces are rounding a smooth angle.
polyCube -n plg;
polyBevel -segments 4 -offset 0.4 plg.e[7];
delete plg;

// Replace an edge by 4 faces, the new faces are rounding an angle specified by the default value of roundness (i.e 0.5).
polyCube -n plg;
polyBevel -segments 4 -autoFit off plg.e[7];
delete plg;