Synopsis
This design produces an instance of a torus shaped solid. The shape of the torus can be altered by changing values for the parameters majorRadius and minorRadius. The design inherits rules for mass properties from the SolidMixin design .
Parameters
Name
|
Type
|
Description
|
majorRadius |
number
|
On a typical Torus this is the radius from the origin to the center of the torus ring. To only allow the ring topology, the major radius must be positive and greater than the minor radius. |
minorRadius |
number
|
On a typical Torus this is the radius of the ring. To only allow the ring topology the minor radius must be positive and smaller than the major radius. |
Rules
Name
|
Type
|
Description
|
centerPoint |
point
|
Point at the center of the torus. |
Example 1
Name
: |
Torus_Ex01
|
Design
: |
acDrawingDocument
|
Child Name
: |
Torus_1
|
Child Design
: |
:Torus
|
Name
|
Type
|
Supplied
|
majorRadius |
number
|
2 |
minorRadius |
number
|
0.75 |
Example 2
Name
: |
Torus_Ex02
|
Design
: |
acDrawingDocument
|
Child Name
: |
shaft
|
Child Design
: |
:Cylinder
|
Name
|
Type
|
Supplied
|
height
|
number
|
2 |
radius
|
number
|
2 |
color
|
string
|
"silver"
|
Child Name
: |
seal
|
Child Design
: |
:Torus
|
Name
|
Type
|
Supplied
|
majorRadius |
number
|
Child.minorRadius + shaft.radius |
minorRadius |
number
|
shaft.radius * 0.25 |
origin
|
point
|
shaft.bottomPoint + vector(0,0,1) * Child.minorRadius |
color
|
string
|
"plum"
|
Child Name
: |
disc
|
Child Design
: |
:Cylinder
|
Name
|
Type
|
Supplied
|
height
|
number
|
0.5 |
radius
|
number
|
seal.majorRadius + seal.minorRadius |
topPoint
|
point
|
shaft.bottomPoint |
color
|
string
|
"silver"
|