%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
AddCone Method
See Also  Example
vdWebLibrary Namespace > vdrawObj Class : AddCone Method
insertionPoint
Center of the cone base e as an array of [x,y,z]
BaseRadius
Radius of the cone base.
TopRadius
Radius of the top cone face.
height
Height of the cone
numSegmants
Segment number controling how smooth the cone will be.
drawit
Defines if the vdPolyline object will be drawn.
entities
The entities collection where the polyline will be added. This can be the entities of layout or a block.
Creats a cone as a vdPolyface object type and returns the created object.

Syntax

JScript 
public function AddCone( 
   insertionPoint : Object,
   BaseRadius : double,
   TopRadius : double,
   height : double,
   numSegmants : int,
   drawit : boolean,
   entities : Object
) : Object;

Parameters

insertionPoint
Center of the cone base e as an array of [x,y,z]
BaseRadius
Radius of the cone base.
TopRadius
Radius of the top cone face.
height
Height of the cone
numSegmants
Segment number controling how smooth the cone will be.
drawit
Defines if the vdPolyline object will be drawn.
entities
The entities collection where the polyline will be added. This can be the entities of layout or a block.

Return Value

A vdPolyface object

Example

C#Copy Code
vdcanvas.AddCone([0,0,0], 2, 1, 3, 15, true);

See Also