MIL_ID Geometry3dgeoId, | //in |
MIL_DOUBLE CenterX, | //in |
MIL_DOUBLE CenterY, | //in |
MIL_DOUBLE CenterZ, | //in |
MIL_DOUBLE Radius, | //in |
MIL_INT64 ControlFlag | //in |
This function defines a 3D sphere geometry object, using its center coordinates and radius. You can translate, scale, or transform the resulting sphere, using the 3D image processing module.
You can use the resulting sphere 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 sphere 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 sphere, you can leave some of its attributes unchanged, even if that attribute was modified using the 3D image processing module. To do so, set the corresponding parameter to M_UNCHANGED.
Specifies the identifier of the 3D geometry object, previously allocated on the required system using M3dgeoAlloc() with M_GEOMETRY.
Specifies the X-coordinate of the sphere's center.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the previously-defined value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the X-coordinate of the sphere's center. |
Specifies the Y-coordinate of the sphere's center.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the previously-defined value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the Y-coordinate of the sphere's center. |
Specifies the Z-coordinate of the sphere's center.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the previously-defined value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the Z-coordinate of the sphere's center. |
Specifies the sphere's radius. This parameter cannot be set to a negative value.
![]() |
|||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Description | ||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies to use the previously-defined value. |
||||||||||||||||||||||||||||||||||||||
![]() ![]() |
Specifies the sphere's radius. |
Header | Include mil.h. |
Library | Use mil.lib; mil3d.lib. |
DLL | Requires mil.dll; mil3d.dll. |