PlaneData Struct Reference

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

Attributes

sl.ERROR_CODE ErrorCode
 sl.ERROR_CODE returned by the ZED SDK when the plane detection was attempted. More...
 
PLANE_TYPE Type
 Type of the plane defined by its orientation. More...
 
Vector3 PlaneNormal
 Plane normalized normal vector. More...
 
Vector3 PlaneCenter
 Plane center point. More...
 
Vector3 PlaneTransformPosition
 Plane position relative to the global reference frame. More...
 
Quaternion PlaneTransformOrientation
 Plane orientation relative to the global reference frame. More...
 
Vector4 PlaneEquation
 Plane equation coefficients {a, b, c, d}. More...
 
Vector2 Extents
 Gets the width and height of the bounding rectangle around the plane contours. More...
 
int BoundsSize
 Size of Bounds. More...
 
Vector3[] Bounds
 Array of 3D points forming a polygon bounds corresponding to the current visible limits of the plane. More...
 

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.measure3DReferenceFrame.

Variables

◆ ErrorCode

sl.ERROR_CODE ErrorCode

sl.ERROR_CODE returned by the ZED SDK when the plane detection was attempted.

◆ Type

PLANE_TYPE 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.

◆ PlaneNormal

Vector3 PlaneNormal

Plane normalized normal vector.

◆ PlaneCenter

Vector3 PlaneCenter

Plane center point.

◆ PlaneTransformPosition

Vector3 PlaneTransformPosition

Plane position relative to the global reference frame.

◆ PlaneTransformOrientation

Quaternion PlaneTransformOrientation

Plane orientation relative to the global reference frame.

◆ PlaneEquation

Vector4 PlaneEquation

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

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

◆ Extents

Vector2 Extents

Gets the width and height of the bounding rectangle around the plane contours.

◆ BoundsSize

int BoundsSize

Size of Bounds.

◆ Bounds

Vector3 [] Bounds

Array of 3D points forming a polygon bounds corresponding to the current visible limits of the plane.