Article | 70002272 |
Type | Bug |
Product | Engine |
Version | 1001 |
Date Added | 11/3/2022 |
Fixed | 10.1002.0.6 (12/5/2022) |
Submitted by | Teemu Honkasalo |
Summary
Exporting vdPointCloud to LAZ lose colors and coordinates Also colors are not imported properly
Solution
Fixed in version 1002.0.6
Note: points property and GetPointAt method return the point coordinates relative to object's Entity's Coordinate System (ECS)
In order to get them in World Coordinate System you must transform them with EcsMatrix of the vdPointCloud
example:
//transform the first point to world cs
vdPointCloud pc;
gPoint WorldPt =pc.ECSMatrix.tranform(points[0]);
-or-
vdPointCloud pc;
double x = 0, y = 0, z = 0;
GetPointAt(0, ref x, ref y, ref z);
gPoint worldPt =pc.ECSMatrix.tranform(x,y,z);