Cyclone 3DR Script
from Technodigit, part of Hexagon. Copyright 1997-2023.
Loading...
Searching...
No Matches
SCloudIterator Class Reference

Provide access to cloud iterator methods. More...

Public Member Functions

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. More...
 
number GetDeviation ()
 Get the deviation of the point. More...
 
boolean GetNext ()
 Update iterator with the next point of the cloud. More...
 
SPoint GetPt ()
 Return the current point associated with the iterator. More...
 
boolean IsValid ()
 Return true if the iterator is valid (has not reached the end of the cloud), or false if there is no more point to parse. More...
 
string toString ()
 Get the type of the variable. More...
 

Detailed Description

Provide access to cloud iterator methods.

Member Function Documentation

◆ GetColor()

Object SCloudIterator::GetColor ( )

Return the color of the point.
If no color is stored in the cloud, GetColor will return -1 for red, green and blue.

Return values
ret.ErrorCode(number) The error code.
  • 0: No error
  • 1: Index of the point is invalid
ret.Red(number) The red color between [0-1]
ret.Green(number) The green color between [0-1]
ret.Blue(number) The blue color between [0-1]

◆ GetDeviation()

number SCloudIterator::GetDeviation ( )

Get the deviation of the point.

Returns
(number) The deviation of the point. If no deviation is stored in the cloud, UndefinedValue is returned

◆ GetNext()

boolean SCloudIterator::GetNext ( )

Update iterator with the next point of the cloud.

Returns
Whether or not there's still more points to parse
Return values
TrueThe next point is found (has not reached the end of the cloud)
FalseThere is no more point to parse

◆ GetPt()

SPoint SCloudIterator::GetPt ( )

Return the current point associated with the iterator.

Note
Each time you call GetNext() this value will be updated
Returns
(SPoint) The current point associated with the iterator

◆ IsValid()

boolean SCloudIterator::IsValid ( )

Return true if the iterator is valid (has not reached the end of the cloud), or false if there is no more point to parse.

Returns
Whether or not there's still more points to parse
Return values
TrueThere is more point to parse
FalseThere is no more point to parse

◆ toString()

string SCloudIterator::toString ( )

Get the type of the variable.

Returns
(string) The type name