max_diameter_object_model_3d🔗
Short description🔗
max_diameter_object_model_3d — Calculate the maximal diameter of a 3D object model.
Signature🔗
max_diameter_object_model_3d( object_model_3d ObjectModel3D, out number Diameter )
Description🔗
max_diameter_object_model_3d calculates the maximal diameter of
the 3D object model by calculating the
convex hull of the object and searching for the pair of points on the convex
hull with the largest distance.
Execution information🔗
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Processed without parallelization.
Parameters🔗
ObjectModel3D (input_control) object_model_3d(-array) → (handle)
Handle of the 3D object model.
Diameter (output_control) number(-array) → (real)
Calculated diameter.
Number of elements: Diameter == ObjectModel3D
Example🔗
(HDevelop)
gen_object_model_3d_from_points (rand(200), rand(200),\
rand(200), ObjectModel3D)
max_diameter_object_model_3d (ObjectModel3D, Diameter)
Result🔗
max_diameter_object_model_3d returns 2 (H_MSG_TRUE) if all parameters
are correct. If necessary, an exception is raised.
Combinations with other operators🔗
Combinations
Possible predecessors
read_object_model_3d, connection_object_model_3d
Possible successors
See also
volume_object_model_3d_relative_to_plane, area_object_model_3d, moments_object_model_3d
Module🔗
3D Metrology