Method AddSphere
- Namespace
- vdWebLibrary
- Assembly
- JsPropertiesExtractor.dll
AddSphere(object, double, int, int, bool, object)
Creats a sphere as a vdPolyface object type and returns the created object.
public object AddSphere(object centerPoint, double radius, int longitudinalsegs, int latitudinalsegs, bool drawit, object entities)
Parameters
centerPointobjectThe center point of sphere as an array of [x,y,z]
radiusdoubleThe radius of sphere
longitudinalsegsintNumber of segments that faces will be divide in longitude direction
latitudinalsegsintNumber of segments that faces willbe divide in latitude direction
drawitboolDefines if the vdPolyline object will be drawn.
entitiesobjectThe entities collection where the polyline will be added. This can be the entities of layout or a block.
Returns
- object
A vdPolyface object
Examples
vdcanvas.AddSphere([0, 0, 0], 2, 20, 10, true);