A plane defined by a point and a normal, or a plane equation. More...
Functions | |
def | type (self) |
The plane type defines the plane orientation : vertical or horizontal. More... | |
def | get_normal (self) |
Gets the plane normal vector. More... | |
def | get_center (self) |
Gets the plane center point. More... | |
def | get_pose (self, py_pose=Transform()) |
Gets the plane pose relative to the global reference frame. More... | |
def | get_extents (self) |
Gets the width and height of the bounding rectangle around the plane contours. More... | |
def | get_plane_equation (self) |
Gets the plane equation. More... | |
def | get_bounds (self) |
Gets the polygon bounds of the plane. More... | |
def | extract_mesh (self) |
Computes and returns the mesh of the bounds polygon. More... | |
def | 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. More... | |
def | clear (self) |
Clears all the data. | |
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...
def type | ( | self | ) |
The plane type defines the plane orientation : vertical or horizontal.
def get_normal | ( | self | ) |
def get_center | ( | self | ) |
def get_pose | ( | self, | |
py_pose = Transform() |
|||
) |
Gets the plane pose relative to the global reference frame.
py_pose | : a Transform or it creates one by default. |
def get_extents | ( | self | ) |
Gets the width and height of the bounding rectangle around the plane contours.
def get_plane_equation | ( | self | ) |
Gets the plane equation.
def get_bounds | ( | self | ) |
Gets the polygon bounds of the plane.
def extract_mesh | ( | self | ) |
Computes and returns the mesh of the bounds polygon.
def 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.
This corresponds to the closest point on the plane.
point | : The 3D point to project into the plane. Default: [0,0,0] |