The 3D Geometry module allows you to create 3D geometry objects or transformation matrix objects.
3D geometry objects can be used to limit or define the processing region when dealing with point clouds or depth maps. For example, you can use 3D geometries to crop a point cloud or perform an arithmetic operation on a depth map. You can also use a 3D geometry object to perform comparative measurements with a point cloud or depth map. For example, you can fit a 3D geometry to a point cloud or depth map and calculate distances between points and the fitted surface. The 3D Geometry module allows you to define a geometry object with one of the supported 3D shapes: box, cylinder, line, plane, or sphere. Using the 3D Image Processing module, you can translate, scale, or transform the resulting geometries. Functions that can use a 3D geometry object, take it as a parameter.
Transformation matrix objects store matrices that define a required 3D transformation. You can generate the required transformation coefficients using M3dgeoMatrixSetWithAxes(), or M3dgeoMatrixSetTransform() with a transformation to perform (for example, M_TRANSLATION). Alternatively, you can copy a resulting matrix from other MIL 3D modules (for example, the 3D Metrology and the 3D Registration modules) into the transformation matrix object. You can then apply the transformation matrix to a point cloud or a 3D geometry object, using M3dimMatrixTransform(). For information on using transformation matrix objects, see the Moving or scaling a point cloud or 3D geometry section of Chapter 32: 3D image processing.