Class representing a plane defined by a point and a normal, or a plane equation. More...
Functions | |
PLANE_TYPE | type (self) |
Type of the plane defined by its orientation. More... | |
np.array[float] | get_normal (self) |
Gets the plane normal vector. More... | |
np.array[float] | get_center (self) |
Gets the plane center point. More... | |
Transform | get_pose (self, py_pose=Transform()) |
Gets the plane pose relative to the global reference frame. More... | |
np.array[float] | get_extents (self) |
Gets the width and height of the bounding rectangle around the plane contours. More... | |
np.array[float] | get_plane_equation (self) |
Gets the plane equation. More... | |
np.array[float][float] | get_bounds (self) |
Gets the polygon bounds of the plane. More... | |
Mesh | extract_mesh (self) |
Compute and return the mesh of the bounds polygon. More... | |
float | get_closest_distance (self, point=[0, 0, 0]) |
Gets the distance between the input point and the projected point alongside the normal vector onto the plane (the closest point on the plane). More... | |
None | clear (self) |
Clears all the data. | |
Class representing a plane defined by a point and a normal, or a plane equation.
Other elements can be extracted such as the mesh, the 3D bounds, etc.
PLANE_TYPE type | ( | self | ) |
Type of the plane defined by its orientation.
np.array[float] get_normal | ( | self | ) |
Gets the plane normal vector.
np.array[float] get_center | ( | self | ) |
Gets the plane center point.
Gets the plane pose relative to the global reference frame.
py_pose | : sl.Transform to fill (or it creates one by default). |
(0, 0, 0)
to the plane center. np.array[float] get_extents | ( | self | ) |
Gets the width and height of the bounding rectangle around the plane contours.
np.array[float] get_plane_equation | ( | self | ) |
Gets the plane equation.
[a, b, c, d]
(NumPy array). ax + by + cz = d
. np.array[float][float] get_bounds | ( | self | ) |
Gets the polygon bounds of the plane.
Mesh extract_mesh | ( | self | ) |
Compute and return the mesh of the bounds polygon.
float get_closest_distance | ( | self, | |
point = [0,0,0] |
|||
) |
Gets the distance between the input point and the projected point alongside the normal vector onto the plane (the closest point on the plane).
point | : Point to project into the plane. |