Table of Contents

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

centerPoint object

The center point of sphere as an array of [x,y,z]

radius double

The radius of sphere

longitudinalsegs int

Number of segments that faces will be divide in longitude direction

latitudinalsegs int

Number of segments that faces willbe divide in latitude direction

drawit bool

Defines if the vdPolyline object will be drawn.

entities object

The 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);