9.10. point
-
class
itom.
point
(type = point.PointInvalid, xyz = None, intensity = None, rgba = None, normal = None, curvature = None) → creates new point used for class 'pointCloud'. - Parameters
type : {int}
the desired type of this point (default: point.PointInvalid). Depending on the type, some of the following parameters must be given:
xyz : {seq}, all types besides PointInvalid
sequence with three floating point elements (x,y,z)
intensity : {float}, only PointXYZI or PointXYZINormal
is a floating point value for the intensity
rgba, {seq. of uint8, three or four values}, only PointXYZRGBA or PointXYZRGBNormal :
a uint8-sequence with either three or four values (r,g,b,a). If alpha value is not given, 255 is assumed
normal : {seq}, only PointXYZNormal, PointXYZINormal and PointXYZRGBNormal
is a sequence with three floating point elements (nx, ny, nz)
curvature : {float}, only PointXYZNormal, PointXYZINormal and PointXYZRGBNormal
is the curvature value for the normal (float)
-
name
()
-
PointInvalid
= 0
-
PointXYZ
= 1
-
PointXYZI
= 2
-
PointXYZINormal
= 16
-
PointXYZNormal
= 8
-
PointXYZRGBA
= 4
-
PointXYZRGBNormal
= 32
-
curvature
gets or sets curvature value
- Raises
ValueError : :
if type of point does not support a curvature value.
-
intensity
gets or sets intensity if type of point supports intensity values
- Raises
ValueError : :
if type of point does not support an intensity value.
-
normal
gets or sets normal vector as tuple (nx,ny,nz)
- Raises
ValueError : :
if type of point does not support normal vector data.
-
rgb
gets or sets rgb-values as tuple (r,g,b), where each color component is in range [0, 255]
- Raises
ValueError : :
if type of point does not support r,g,b values.
-
rgba
gets or sets rgba-values as tuple (r,g,b), where each color component is in range [0, 255]
- Raises
ValueError : :
if type of point does not support r,g,b,a values.
-
type
returns type-object for this point
-
xyz
get or set x,y,z-values of point as tuple (x,y,z)