torus is undoable, queryable, and editable.
The torus command creates a new torus and/or a
dependency node that creates one, and returns their names.
| Long name (short name) |
[argument types] |
Properties |
pivot(p)
|
[float, float, float]
|

|
|
The primitive's pivot point
In query mode, this flag needs a value.
|
|
pivotX(px)
|
linear
|

|
|
X of the pivot
Default: 0
In query mode, this flag needs a value.
|
|
pivotY(py)
|
linear
|

|
|
Y of the pivot
Default: 0
In query mode, this flag needs a value.
|
|
pivotZ(pz)
|
linear
|

|
|
Z of the pivot
Default: 0
In query mode, this flag needs a value.
|
|
axis(ax)
|
[float, float, float]
|

|
|
The primitive's axis
In query mode, this flag needs a value.
|
|
axisX(axx)
|
linear
|

|
|
X of the axis
Default: 1
In query mode, this flag needs a value.
|
|
axisY(axy)
|
linear
|

|
|
Y of the axis
Default: 0
In query mode, this flag needs a value.
|
|
axisZ(axz)
|
linear
|

|
|
Z of the axis
Default: 0
In query mode, this flag needs a value.
|
|
radius(r)
|
linear
|

|
|
The radius of the object
Default: 1.0
In query mode, this flag needs a value.
|
|
startSweep(ssw)
|
angle
|

|
|
The angle at which to start the surface of revolution
Default: 0
In query mode, this flag needs a value.
|
|
endSweep(esw)
|
angle
|

|
|
The angle at which to end the surface of revolution.
Default is 2Pi radians, or 360 degrees.
Default: 6.2831853
In query mode, this flag needs a value.
|
|
useTolerance(ut)
|
boolean
|

|
|
Use the specified tolerance to determine resolution.
Otherwise number of sections will be used.
Default: false
In query mode, this flag needs a value.
|
|
degree(d)
|
int
|

|
|
The degree of the resulting surface:
1 - linear,
3 - cubic
Default: 3
In query mode, this flag needs a value.
|
|
sections(s)
|
int
|

|
|
The number of sections determines the resolution of the surface in the sweep direction.
Used only if useTolerance is false.
Default: 8
In query mode, this flag needs a value.
|
|
spans(nsp)
|
int
|

|
|
The number of spans determines the resolution of the surface in the opposite direction.
Default: 1
In query mode, this flag needs a value.
|
|
tolerance(tol)
|
linear
|

|
|
The tolerance with which to build the surface.
Used only if useTolerance is true
Default: 0.01
In query mode, this flag needs a value.
|
|
heightRatio(hr)
|
float
|

|
|
Ratio of "height" to "width"
Default: 2.0
In query mode, this flag needs a value.
|
|
absoluteSweepDifference(asd)
|
angle
|

|
|
The difference of endSweep - startSweep
In query mode, this flag needs a value.
|
|
minorSweep(msw)
|
angle
|

|
|
The sweep angle for the minor circle in the torus
Default: 6.2831853
In query mode, this flag needs a value.
|
|
name(n)
|
string
|
|
|
Name the resulting object
|
|
constructionHistory(ch)
|
boolean
|
|
|
Turn the construction history on or off (not available in all commands)
|
|
object(o)
|
boolean
|
|
|
Create the result, or just the dependency node (not available in all commands)
|
|
replaceOriginal(rpo)
|
boolean
|
|
|
Create "in place" (i.e., replace) (not available in all commands)
|
|
curveOnSurface(cos)
|
boolean
|
|
|
If possible, create 2D curve as a result (not available in all commands)
|
|
polygon(po)
|
int
|
|
|
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
|
|
|
Force a curve range on complete input curve (not available in all commands)
|
|
rebuild(rb)
|
boolean
|
|
|
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)
|
|