createConeFrustum
Syntax
createConeFrustum(BottomRadius:length, TopRadius:length, Height:length[, WallThickness:length]) → any |
The method createConeFrustum creates a cone in the scene window.
Parameters
The parameter BottomRadius of data type length sets its bottom radius.
Type in a greater bottom radius than the top radius to create a funnel-type truncated cone.
The parameter TopRadius of data type length sets its top radius.
A top radius of 0 creates the cone with a tip.
A top radius of greater than 0 cuts off the tip of the cone. This way you can, for example, model a bottle quickly and easily.
The parameter Height of data type length sets its height.
The optional parameter WallThickness of data type length sets the wall thickness of the cone.
If you do not specify the wall thickness, Plant Simulation creates a closed cone.
If you specify a negative value, Plant Simulation interprets this as if you did not specify a value.
If you enter 0, Plant Simulation creates mantle without a thickness.
If you enter a positive value, Plant Simulation creates the cone with the specified wall thickness.
Return Value
The return value has the data type any and specifies the created graphic, compare the method _3D.getGraphic.
Example
var Cone := _3D.getGraphic("deco").createConeFrustum(2, 3, 4) |
var Cone := _3D.getGraphic("deco").createConeFrustum(2, 3, 4, 0.1) |
Related Topic