Table of Contents

Method AddPointCloud

Namespace
vdWebLibrary
Assembly
JsPropertiesExtractor.dll

AddPointCloud(object, object, bool, object)

Adds a vdPointCloud in the document.

public object AddPointCloud(object points, object colors, bool drawit, object entities)

Parameters

points object

An array of points that define the point cloud object.Each item is an array of x,y,z.

colors object

An array of integer values that represent the red green and blue color components foreach point.If it is null the points drawn with the entity color.

drawit bool

Defines if the vdPointCloud object will be drawn.

entities object

The entities collection where the point cloud will be added. This can be the entities of layout or a block.

Returns

object

The vdPointCloud object created.

Examples

Add a new point cloud object to the document

var color1 = (255 << 16) | (0 <<c 8) | 0; //255,0,0 RGB
 var color2 = (0 << 16) | (255 << 8) | 0; //0,255,0 RGB
 var color3 = (0 << 16) | (0 << 8) | 255; //0,0,255 RGB
 var color4 = (255 <<16) | (127 <<c 8) | 32; //255,127,32 RGB
 var pp = vdcanvas.AddPointCloud([[-1, -1, 0], [1, -1, 0], [1, 1, 0], [-1, 1, 0]], [color1, color2, color3, color4]);