The Torus Design is a graphic object. It has an angle, majorRadius, and minorRadius. The Torus can be found in the Project window under
BaseLibrary/Designs/Geometry.
Parameter Rules
angle | Enter the Radian. This is the amount each object is positioned from each other, not the total for all. |
Example: | 0.17453292519943295;<This is equal to 10 degrees> |
Note: | Degrees to Radian Formula: = (Math.PI*Degrees)/180 |
To display the torus as 90 degrees use this formula: (Math.PI*90)/180 |
This parameter takes radians instead of degrees for an angle. |
majorRadius: | This is the radius of the major part of the torus. |
Example: | 1 |
minorRadius: | This is the radius of the minor part of the torus. |
Example: | child.majorRadius/3 |
Mixins
BoxMixin
TorusRenderMixin
BaseAssembly
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
angle |
number |
Math.PI * 2 |
Inputs |
Cached |
length |
number |
1 |
Inputs |
Cached |
width |
number |
this.majorRadius/3 |
Inputs |
Cached |
Project Example:
In your kBridge Examples Projects folder, open the project called ‘Geometry Examples’.
Reference Location:
'world.geometry_examples.shapes.torus'
Link: https://knowledgebridge.engineer/projects
Open the Geometry Examples project.
If you look at the Geometry Examples design you will see the Torus design. It's a fairly complex design and can be useful in building your project models.
In the example below, return (Math.PI*90)/180;, was entered into the angle value to achieve a torus extruded of 90 degrees.
Note that partial torii have 'open' ends and are not 'solid'.