70001834 Support vdPointCloud object in web control

Article 70001834
Type Wish
Product WebJS
Version 8005
Date Added 9/26/2020 12:00:00 AM
Fixed 8.8006.0.2 (9/26/2020 12:00:00 AM)
Submitted by VectorDraw Team

Summary

Support vdPointCloud object in web control

Solution

In version 8006.0.2 the vdPointCloud is supported
A new method AddPointCloud of vdcanvas added

Adds a vdPointCloud in the document.

points : An array of points that define the point cloud object.Each item is an array of x,y,z.
colors : 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: Defines if the vdPointCloud object will be drawn.
entities : The entities collection where the point cloud will be added. This can be the entities of layout or a block.
returns : The vdPointCloud object created.


Example
//Add a new point cloud object to the document


var color1 = (255 << 16) | (0 << 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 << 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]);

Send comments on this topic.