The Sphere Design is a graphic object. It has a radius parameter. The Sphere can be found in the Project window under
BaseLibrary/Designs/Geometry.
Parameter Rules
radius: | Radius of the sphere. |
Example: | 1 ; |
position: | The position or origin of the sphere. |
Example: | const x = 12; |
const y = -4; |
return { origin: p(x, y, 0, this.parent.transform ) }; |
Mixins
BoxMixin
SphereRenderMixin
BaseAssembly
RULE NAME |
TYPE |
DEFAULTS |
CATEGORY |
FLAGS |
---|---|---|---|---|
radius |
number |
1 |
Inputs |
Cached |
Project Example:
In your kBridge Examples Projects folder, open the project called ‘Geometry Examples’.
Reference Location:
'world.geometry_examples.shapes.sphere'
Link: https://knowledgebridge.engineer/projects
Open the Geometry Examples project.
If you look at the Geometry Examples design you will see the Sphere design. It's a simple design, but very useful in building your project models. There Sphere can also be useful to visually reference a point or position.