Cone
Description
NURB Cone
BobCAD API supports 2 different table key definition formats for flexibility in coding.
Keys
The following Keys can be created inside a table to form a cone:
Format 1 Keys
- xOrigin - double value of the X coordinate of the bottom center of the cone
- yOrigin - double value of the Y coordinate of the bottom center of the cone
- zOrigin - double value of the Y coordinate of the bottom center of the cone
Format 2 Keys
- Origin - a table consisting of 3 double positions representing X,Y,Z coordinates of the bottom center of the cone
Keys in both Format 1 and 2
- Type="Cone" - Defines this table as a cone entity type
- Height - the height of the cone
- BaseRadius - the bottom radius of the cone
- TopRadius - the top radius of the cone
Example
Format 1
--Minimal definition
myCone = { Type="Cone", xOrigin=25.0, yOrigin=30.0, zOrigin=20, Height=50.0, BaseRadius=30.0, TopRadius=15.0 }
--Complete definition
myCone = { CmdName="My Cone", Type="Cone", xOrigin=25.0, yOrigin=30.0, zOrigin=20.0, Height=50.0, BaseRadius=30.0, TopRadius=15.0, Layer="Layer Name", Color="Blue" }
Format 2
--Minimal definition
myCone = { Type="Cone", Origin={0.0,0.0,0.0}, Height=50.0, BaseRadius=30.0, TopRadius=15.0 }
--Complete definition
myCone = { CmdName="My Cone", Type="Cone", Origin={0.0,0.0,0.0}, Height=50.0, BaseRadius=30.0, TopRadius=15.0, Layer="Layer Name", Color="Blue" }