A plane in 3D space in Hessian normal form. More...
Inherits object.
Public Member Functions | |
cvb.AffineMatrix3D | align_to_xy_plane (self) |
Calculates a rigid body transformation that maps the plane into the xy plane of the global coordinate system. More... | |
float | distance_to_point (self, cvb.Point3D pt) |
Calculates the distance to the point pt. More... | |
float | distance_to_point (self, float x, float y, float z) |
Calculates the distance to the point pt. More... | |
Properties | |
distance_to_origin = property | |
float: Gets or sets the distance to the origin in point units. | |
normal = property | |
cvb.Point3D: Gets or sets the normal vector of the plane. | |
A plane in 3D space in Hessian normal form.
Creates a new Plane3D object from the given normal vector components and the distanceToOrigin.
nx : float Normal vector x component.
ny : float Normal vector y component.
nz : float Normal vector z component.
distance_to_origin : float Distance to origin in point units.
cvb.AffineMatrix3D align_to_xy_plane | ( | self | ) |
Calculates a rigid body transformation that maps the plane into the xy plane of the global coordinate system.
If a point cloud contains a tilted plane (e.g. representing a conveyer belt), which is not aligned to the xy plane, the following steps should be taken:
Please note the following:
cvb.AffineMatrix3D Calculated transformation to move the plane to xy plane.
float distance_to_point | ( | self, | |
cvb.Point3D | pt | ||
) |
Calculates the distance to the point pt.
pt : cvb.Point3D Point to calculate the distance to.
float The distance to the specified point.
float distance_to_point | ( | self, | |
float | x, | ||
float | y, | ||
float | z | ||
) |
Calculates the distance to the point pt.
x : float Point x component.
y : float Point y component.
z : float Point z component.
float The distance to the specified point.