|
Object | GetAttributeValue (string attribute) |
| Get an attribute value of the point.
|
|
Object | GetColor () |
| Return the color of the point.
If no color is stored in the cloud, GetColor will return -1 for red, green and blue.
|
|
number | GetDeviation () |
| Get the deviation of the point.
|
|
number | GetIntensity () |
| Get the intensity of the point.
|
|
boolean | GetNext () |
| Update iterator with the next point of the cloud.
|
|
SPoint | GetPt () |
| Return the current point associated with the iterator.
|
|
boolean | IsValid () |
| Check for the iterator validity.
|
|
string | toString () |
| Get the type of the variable.
|
|
Provide access to cloud iterator methods.
var hasClassif = cloud.HasAttribute("classification")
var attributes = [];
if(hasClassif)
attributes.push("classification");
var cloudIt = cloud.GetIterator(attributes);
var pointIdx = 0;
do
{
Print("Point " + pointIdx + ":");
var colorRes = cloudIt.GetColor();
Print("\tRGB:" + colorRes.Red + ";" + colorRes.Green + ";" + colorRes.Blue);
Print("\tIntensity: " + cloudIt.GetIntensity());
if(hasClassif)
Print("\tClass: " + cloudIt.GetAttributeValue("classification"));
}
while(cloudIt.GetNext());
Provide point cloud edition and creation methods.
Definition Reshaper.h:3297
static Object FromClick()
Launch an interaction to select a SCloud in the scene.