SL_PlaneData Struct Reference

Structure representing a plane defined by a point and a normal, or a plane equation. More...

Data Fields

int error_code
 SL_ERROR_CODE returned by the ZED SDK when the plane detection was attempted.
 
enum UNITY_PLAN_TYPE type
 Type of the plane defined by its orientation. More...
 
struct SL_Vector3 plane_normal
 Plane normalized normal vector.
 
struct SL_Vector3 plane_center
 Plane center point.
 
struct SL_Vector3 plane_transform_position
 Plane position relative to the global reference frame.
 
struct SL_Quaternion plane_transform_orientation
 Plane orientation relative to the global reference frame.
 
struct SL_Vector4 plane_equation
 Plane equation coefficients {a, b, c, d}. More...
 
struct SL_Vector2 extents
 Width and height of the bounding rectangle around the plane contours.
 
int bounds_size
 Size of bounds.
 
struct SL_Vector3 bounds [256]
 Array of 3D points forming a polygon bounds corresponding to the current visible limits of the plane.
 

Detailed Description

Structure representing a plane defined by a point and a normal, or a plane equation.

Note
The plane measurements are expressed in reference defined by SL_RuntimeParameters.reference_frame.

Field Documentation

◆ type

enum UNITY_PLAN_TYPE SL_PlaneData::type

Type of the plane defined by its orientation.

Note
It is deduced from the gravity vector and is therefore not available with on SL_MODEL_ZED.

◆ plane_equation

struct SL_Vector4 SL_PlaneData::plane_equation

Plane equation coefficients {a, b, c, d}.

Note
The plane equation has the following form: ax + by + cz = d.