Skip to content

gen_sphere_object_model_3d_centerGenSphereObjectModel3dCenterGenSphereObjectModel3dCentergen_sphere_object_model_3d_centerT_gen_sphere_object_model_3d_center🔗

Short description🔗

gen_sphere_object_model_3d_centerGenSphereObjectModel3dCenterGenSphereObjectModel3dCentergen_sphere_object_model_3d_centerT_gen_sphere_object_model_3d_center — Create a 3D object model that represents a sphere from x,y,z coordinates.

Signature🔗

gen_sphere_object_model_3d_center( point3d.x X, point3d.y Y, point3d.z Z, number Radius, out object_model_3d ObjectModel3D )void GenSphereObjectModel3dCenter( const HTuple& X, const HTuple& Y, const HTuple& Z, const HTuple& Radius, HTuple* ObjectModel3D )static void HOperatorSet.GenSphereObjectModel3dCenter( HTuple x, HTuple y, HTuple z, HTuple radius, out HTuple objectModel3D )def gen_sphere_object_model_3d_center( x: MaybeSequence[Union[int, float]], y: MaybeSequence[Union[int, float]], z: MaybeSequence[Union[int, float]], radius: MaybeSequence[float] ) -> Sequence[HHandle]

def gen_sphere_object_model_3d_center_s( x: MaybeSequence[Union[int, float]], y: MaybeSequence[Union[int, float]], z: MaybeSequence[Union[int, float]], radius: MaybeSequence[float] ) -> HHandleHerror T_gen_sphere_object_model_3d_center( const Htuple X, const Htuple Y, const Htuple Z, const Htuple Radius, Htuple* ObjectModel3D )

static HObjectModel3DArray HObjectModel3D::GenSphereObjectModel3dCenter( const HTuple& X, const HTuple& Y, const HTuple& Z, const HTuple& Radius )

void HObjectModel3D::GenSphereObjectModel3dCenter( double X, double Y, double Z, double Radius )

static HObjectModel3D[] HObjectModel3D.GenSphereObjectModel3dCenter( HTuple x, HTuple y, HTuple z, HTuple radius )

void HObjectModel3D.GenSphereObjectModel3dCenter( double x, double y, double z, double radius )

Description🔗

gen_sphere_object_model_3d_centerGenSphereObjectModel3dCenter 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 Xxx, Yyy, and Zzz, and its radius given in Radiusradiusradius. The handle of the 3D object model is returned by the parameter ObjectModel3DobjectModel3Dobject_model_3d.

Parameter Broadcasting🔗

This operator supports parameter broadcasting. This means that each parameter can be given as a tuple of length 1 or N. Parameters with tuple length 1 will be repeated internally such that the number of created items is always N.

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.

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.

Parameters🔗

Xxx (input_control) point3d.x(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)

The x-coordinate of the center point of the sphere.

Yyy (input_control) point3d.y(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)

The y-coordinate of the center point of the sphere.

Zzz (input_control) point3d.z(-array) → (real / integer)HTuple (double / Hlong)HTuple (double / int / long)MaybeSequence[Union[int, float]]Htuple (double / Hlong)

The z-coordinate of the center point of the sphere.

Radiusradiusradius (input_control) number(-array) → (real)HTuple (double)HTuple (double)MaybeSequence[float]Htuple (double)

The radius of the sphere.

ObjectModel3DobjectModel3Dobject_model_3d (output_control) object_model_3d(-array) → (handle)HTuple (HHandle)HObjectModel3D, HTuple (IntPtr)Sequence[HHandle]Htuple (handle)

Handle of the resulting 3D object model.

Result🔗

gen_sphere_object_model_3d_centerGenSphereObjectModel3dCenter returns 2 (H_MSG_TRUE) if all parameters are correct. If necessary, an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

smallest_sphere_object_model_3dSmallestSphereObjectModel3d

Possible successors

get_object_model_3d_paramsGetObjectModel3dParams, sample_object_model_3dSampleObjectModel3d, clear_object_model_3dClearObjectModel3d

Alternatives

gen_sphere_object_model_3dGenSphereObjectModel3d

See also

gen_cylinder_object_model_3dGenCylinderObjectModel3d, gen_plane_object_model_3dGenPlaneObjectModel3d, gen_box_object_model_3dGenBoxObjectModel3d

Module🔗

3D Metrology