MIL_ID Geometry3dgeoId, | //in |
MIL_INT64 CreationMode, | //in |
MIL_DOUBLE X1, | //in |
MIL_DOUBLE Y1, | //in |
MIL_DOUBLE Z1, | //in |
MIL_DOUBLE X2OrD, | //in |
MIL_DOUBLE Y2, | //in |
MIL_DOUBLE Z2, | //in |
MIL_DOUBLE X3, | //in |
MIL_DOUBLE Y3, | //in |
MIL_DOUBLE Z3, | //in |
MIL_INT64 ControlFlag | //in |
This function defines a 3D plane geometry object. You can translate, rotate, or transform the resulting plane, using the 3D image processing module.
You can use the resulting plane to, for example, crop a point cloud or perform an arithmetic operation on a depth map using the 3D image processing module, or calculate its distance from each point in a point cloud using the 3D metrology module.
If you want to define a plane geometry object from results obtained in a different module, you can use the copy function of that module.
All coordinates are expressed in world units in the working coordinate system.
Note that if Geometry3dgeoId specifies a previously-defined plane, and CreationMode is set to M_POINT_AND_NORMAL, you can leave the components of the plane's normal vector unchanged, even if the plane was modified using the 3D image processing module.
Specifies the identifier of the 3D geometry object, previously allocated on the required system using M3dgeoAlloc() with M_GEOMETRY.
Specifies how the plane is defined.
See the Parameter associations section for possible values that can be specified.
Specifies the first parameter used to define the plane.
See the Parameter associations section for possible values that can be specified.
Specifies the second parameter used to define the plane.
See the Parameter associations section for possible values that can be specified.
Specifies the third parameter used to define the plane.
See the Parameter associations section for possible values that can be specified.
Specifies the fourth parameter used to define the plane.
See the Parameter associations section for possible values that can be specified.
Specifies the fifth parameter used to define the plane.
Set this parameter to M_DEFAULT if not used.
See the Parameter associations section for possible values that can be specified.
Specifies the sixth parameter used to define the plane.
Set this parameter to M_DEFAULT if not used.
See the Parameter associations section for possible values that can be specified.
Specifies the seventh parameter used to define the plane.
Set this parameter to M_DEFAULT if not used.
See the Parameter associations section for possible values that can be specified.
Specifies the eighth parameter used to define the plane.
Set this parameter to M_DEFAULT if not used.
See the Parameter associations section for possible values that can be specified.
Specifies the ninth parameter used to define the plane.
Set this parameter to M_DEFAULT if not used.
See the Parameter associations section for possible values that can be specified.
The table below lists possible values for the CreationMode, X1, Y1, Z1, X2OrD, Y2, Z2, X3, Y3, and Z3 parameters.
Set unused parameters to M_DEFAULT.
For specifying the plane INQ
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
X1 | |||||||||||||||||||||||||||||||||||||||
Y1 | |||||||||||||||||||||||||||||||||||||||
Z1 | |||||||||||||||||||||||||||||||||||||||
X2OrD | |||||||||||||||||||||||||||||||||||||||
Y2 | |||||||||||||||||||||||||||||||||||||||
Z2 | |||||||||||||||||||||||||||||||||||||||
X3 | |||||||||||||||||||||||||||||||||||||||
Y3 | |||||||||||||||||||||||||||||||||||||||
Z3 | |||||||||||||||||||||||||||||||||||||||
M_COEFFICIENTS |
Specifies to define the plane using coefficients from the plane equation (Ax + By + Cz + D = 0). Coefficients A, B, and C cannot all be zero. Note that the coefficients will be internally normalized such that A^2 + B^2 + C^2 = 1. (summarize)Specifies to define the plane using coefficients from the plane equation (Ax + By + Cz + D = 0). (more details...) |
||||||||||||||||||||||||||||||||||||||
X1 |
Specifies coefficient A of the plane equation. |
||||||||||||||||||||||||||||||||||||||
Y1 |
Specifies coefficient B of the plane equation. |
||||||||||||||||||||||||||||||||||||||
Z1 |
Specifies coefficient C of the plane equation. |
||||||||||||||||||||||||||||||||||||||
X2OrD |
Specifies coefficient D of the plane equation. |
||||||||||||||||||||||||||||||||||||||
M_POINT_AND_NORMAL |
Specifies to define the plane using a point on the plane and the plane's normal. The plane's normal must have a non-zero magnitude. Note that the plane's normal will be internally converted to a unit vector. Note that if Geometry3dgeoId specifies a previously-defined plane, you can leave the components of its normal vector unchanged, even if that attribute was set using a different creation mode or was modified using the 3D image processing module. To do so, set the corresponding parameter to M_UNCHANGED. (summarize)Specifies to define the plane using a point on the plane and the plane's normal. (more details...) |
||||||||||||||||||||||||||||||||||||||
X1 |
Specifies the X-coordinate of the point on the plane. |
||||||||||||||||||||||||||||||||||||||
Y1 |
Specifies the Y-coordinate of the point on the plane. |
||||||||||||||||||||||||||||||||||||||
Z1 |
Specifies the Z-coordinate of the point on the plane. |
||||||||||||||||||||||||||||||||||||||
X2OrD |
Specifies the X-component of the normal. (summarize)Specifies the X-component of the normal. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_UNCHANGED |
Specifies to use the previously-defined value. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-component of the normal. |
||||||||||||||||||||||||||||||||||||||
Y2 |
Specifies the Y-component of the normal. (summarize)Specifies the Y-component of the normal. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_UNCHANGED |
Specifies to use the previously-defined value. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-component of the normal. |
||||||||||||||||||||||||||||||||||||||
Z2 |
Specifies the Z-component of the normal. (summarize)Specifies the Z-component of the normal. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_UNCHANGED |
Specifies to use the previously-defined value. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Z-component of the normal. |
||||||||||||||||||||||||||||||||||||||
M_POINT_AND_TWO_VECTORS |
Specifies to define the plane using a point on the plane and two vectors parallel to the plane. The two vectors must have non-zero magnitudes and cannot be co-linear. (summarize)Specifies to define the plane using a point on the plane and two vectors parallel to the plane. (more details...) |
||||||||||||||||||||||||||||||||||||||
X1 |
Specifies the X-coordinate of the point on the plane. |
||||||||||||||||||||||||||||||||||||||
Y1 |
Specifies the Y-coordinate of the point on the plane. |
||||||||||||||||||||||||||||||||||||||
Z1 |
Specifies the Z-coordinate of the point on the plane. |
||||||||||||||||||||||||||||||||||||||
X2OrD |
Specifies the X-component of the first vector. |
||||||||||||||||||||||||||||||||||||||
Y2 |
Specifies the Y-component of the first vector. |
||||||||||||||||||||||||||||||||||||||
Z2 |
Specifies the Z-component of the first vector. |
||||||||||||||||||||||||||||||||||||||
X3 |
Specifies the X-component of the second vector. |
||||||||||||||||||||||||||||||||||||||
Y3 |
Specifies the Y-component of the second vector. |
||||||||||||||||||||||||||||||||||||||
Z3 |
Specifies the Z-component of the second vector. |
||||||||||||||||||||||||||||||||||||||
M_THREE_POINTS |
Specifies to define the plane using three points on the plane. (summarize)Specifies to define the plane using three points on the plane. (more details...) |
||||||||||||||||||||||||||||||||||||||
X1 |
Specifies the X-coordinate of the first point on the plane. |
||||||||||||||||||||||||||||||||||||||
Y1 |
Specifies the Y-coordinate of the first point on the plane. |
||||||||||||||||||||||||||||||||||||||
Z1 |
Specifies the Z-coordinate of the first point on the plane. |
||||||||||||||||||||||||||||||||||||||
X2OrD |
Specifies the X-coordinate of the second point on the plane. |
||||||||||||||||||||||||||||||||||||||
Y2 |
Specifies the Y-coordinate of the second point on the plane. |
||||||||||||||||||||||||||||||||||||||
Z2 |
Specifies the Z-coordinate of the second point on the plane. |
||||||||||||||||||||||||||||||||||||||
X3 |
Specifies the X-coordinate of the third point on the plane. |
||||||||||||||||||||||||||||||||||||||
Y3 |
Specifies the Y-coordinate of the third point on the plane. |
||||||||||||||||||||||||||||||||||||||
Z3 |
Specifies the Z-coordinate of the third point on the plane. |
Header | Include mil.h. |
Library | Use mil.lib; mil3d.lib. |
DLL | Requires mil.dll; mil3d.dll. |