10.10. point#
- class itom.point(type=point.PointInvalid, xyz=None, intensity=None, rgba=None, normal=None, curvature=None)#
Creates new point object, for instance used for class
pointCloud.One point can be of different
types. Possible types are:point.PointInvalid: an invalid, uninitialized point.point.PointXYZ: this point only contains the 3D coordinates(X, Y, Z).point.PointXYZI: likePointXYZ, but with an additional intensity value.point.PointXYZRGBA: likePointXYZ, but with an additional colour value.point.PointXYZNormal: likePointXYZ, but with an additional normal vector(NX, NY, NZ)and scalar curvature value.point.PointXYZINormal: likePointXYZNormal, but with an additional intensity value.point.PointXYZRGBNormal: likePointXYZNormal, but with an additional colour value(R, G, B, A).
- Parameters:
- type
int,optional the desired type of this point. Depending on this type, some of the following parameters must be or must not be given.
- xyz
tupleoffloat is only allowed for
type != point.PointInvalidand gives a tuple with the coordinates(X, Y, Z)of this point.- intensity
float,optional is only allowed for
type = point.PointXYZIandtype = point.PointXYZINormal. It is the float intensity value.- rgba
tupleofint,optional is only allowed for
type = point.PointXYZRBAortype = point.PointXYZRGBNormal. It must be a tuple of four integer values(R, G, B, A), all in the range[0, 255].- normal
tupleoffloat,optional is only allowed for
Normal-basedtypesand is a tuple(NX, NY, NZ)with the three components of the normal vector to this point.- curvature
float,optional is only allowed for
Normal-basedtypeand gives the curvature value of the normal.
- type
- Returns:
- PointInvalid = 0#
- PointXYZ = 1#
- PointXYZI = 2#
- PointXYZINormal = 16#
- PointXYZNormal = 8#
- PointXYZRGBA = 4#
- PointXYZRGBNormal = 32#
- curvature#
float: Gets or sets the curvature value.- Raises:
ValueErrorif type of point does not support a curvature value.
- intensity#
float: gGts or sets intensity if type of point supports intensity values.- Raises:
ValueErrorif type of point does not support an intensity value.
- normal#
tuple of
float: Gets or sets the normal vector of this point as tuple(nx,ny,nz).- Raises:
ValueErrorif type of point does not support normal vector data.
- rgb#
tuple of
float: Gets or sets rgb-values as tuple(r,g,b), where each color component is in range [0, 255].- Raises:
ValueErrorif type of point does not support r,g,b values.
- rgba#
tuple of
float: Gets or sets rgba-values as tuple(r,g,b,a), where each color component is in range [0, 255].- Raises:
ValueErrorif type of point does not support r,g,b,a values.