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... More...
General Functions | |
Plane () | |
~Plane () | |
void | clear () |
sl::float3 | getNormal () |
Get the plane normal vector. More... | |
sl::float3 | getCenter () |
Get the plane center point. More... | |
Transform | getPose () |
Get the plane pose relative to the global reference frame. More... | |
sl::float2 | getExtents () |
Get the width and height of the bounding rectangle around the plane contours. More... | |
sl::float4 | getPlaneEquation () |
Get the plane equation. More... | |
std::vector< sl::float3 > | getBounds () |
Get the polygon bounds of the plane. More... | |
sl::Mesh | extractMesh () |
Compute and return the mesh of the bounds polygon. More... | |
float | getClosestDistance (sl::float3 point=sl::float3(0, 0, 0)) |
Get 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. More... | |
Attributes | |
PLANE_TYPE | type = PLANE_TYPE_UNKNOWN |
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...
Plane | ( | ) |
~Plane | ( | ) |
void clear | ( | ) |
sl::float3 getNormal | ( | ) |
Get the plane normal vector.
sl::float3 getCenter | ( | ) |
Get the plane center point.
Transform getPose | ( | ) |
Get the plane pose relative to the global reference frame.
sl::float2 getExtents | ( | ) |
Get the width and height of the bounding rectangle around the plane contours.
sl::float4 getPlaneEquation | ( | ) |
Get the plane equation.
std::vector<sl::float3> getBounds | ( | ) |
Get the polygon bounds of the plane.
sl::Mesh extractMesh | ( | ) |
Compute and return the mesh of the bounds polygon.
float getClosestDistance | ( | sl::float3 | point = sl::float3(0, 0, 0) | ) |
Get 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.
The | point to project into the plane |
PLANE_TYPE type = PLANE_TYPE_UNKNOWN |
The plane type define the plane orientation : vertical or horizontal.