Operators |
gen_sphere_object_model_3d — Create a 3D object model that represents a sphere.
gen_sphere_object_model_3d( : : Pose, Radius : ObjectModel3D)
gen_sphere_object_model_3d creates a sphere-shaped 3D primitive, i.e., a 3D object model that represents a sphere. A sphere is defined by its center given in Pose and its radius given in Radius. If several sphere-shaped 3D primitives are created and the number of elements in the parameter Radius is 1, all spheres are created with the same radius. The handle of the 3D object model is returned by the parameter ObjectModel3D.
Note that if a 3D object model is no longer needed or should be overwritten, the memory has to be freed first by calling the operator clear_object_model_3d.
This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.
The pose that describes the position of the sphere.
The radius of the sphere.
Handle of the resulting 3D object model.
gen_sphere_object_model_3d returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.
smallest_sphere_object_model_3d
get_object_model_3d_params, sample_object_model_3d, clear_object_model_3d
gen_sphere_object_model_3d_center
gen_cylinder_object_model_3d, gen_plane_object_model_3d, gen_box_object_model_3d
3D Metrology
Operators |