ClassesClasses | | Operators

gen_sphere_object_model_3d_centergen_sphere_object_model_3d_centerGenSphereObjectModel3dCenterGenSphereObjectModel3dCenter (Operator)

Name

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

Signature

gen_sphere_object_model_3d_center( : : X, Y, Z, Radius : ObjectModel3D)

Herror gen_sphere_object_model_3d_center(double X, double Y, double Z, double Radius, Hlong* ObjectModel3D)

Herror T_gen_sphere_object_model_3d_center(const Htuple X, const Htuple Y, const Htuple Z, const Htuple Radius, Htuple* ObjectModel3D)

void GenSphereObjectModel3dCenter(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 void HOperatorSet.GenSphereObjectModel3dCenter(HTuple x, HTuple y, HTuple z, HTuple radius, out HTuple objectModel3D)

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_centergen_sphere_object_model_3d_centerGenSphereObjectModel3dCenterGenSphereObjectModel3dCenterGenSphereObjectModel3dCenter 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 XXXXx, YYYYy, and ZZZZz, and its radius given in RadiusRadiusRadiusRadiusradius. If several sphere-shaped 3D primitives are created and the number of elements in the parameter RadiusRadiusRadiusRadiusradius is 1, all spheres are created with the same radius. The handle of the 3D object model is returned by the parameter ObjectModel3DObjectModel3DObjectModel3DObjectModel3DobjectModel3D.

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_3dclear_object_model_3dClearObjectModel3dClearObjectModel3dClearObjectModel3d.

Execution Information

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

XXXXx (input_control)  point3d.x(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

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

YYYYy (input_control)  point3d.y(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

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

ZZZZz (input_control)  point3d.z(-array) HTupleHTupleHtuple (real / integer) (double / int / long) (double / Hlong) (double / Hlong)

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

RadiusRadiusRadiusRadiusradius (input_control)  number(-array) HTupleHTupleHtuple (real) (double) (double) (double)

The radius of the sphere.

ObjectModel3DObjectModel3DObjectModel3DObjectModel3DobjectModel3D (output_control)  object_model_3d(-array) HObjectModel3D, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

Handle of the resulting 3D object model.

Result

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

Possible Predecessors

smallest_sphere_object_model_3dsmallest_sphere_object_model_3dSmallestSphereObjectModel3dSmallestSphereObjectModel3dSmallestSphereObjectModel3d

Possible Successors

get_object_model_3d_paramsget_object_model_3d_paramsGetObjectModel3dParamsGetObjectModel3dParamsGetObjectModel3dParams, sample_object_model_3dsample_object_model_3dSampleObjectModel3dSampleObjectModel3dSampleObjectModel3d, clear_object_model_3dclear_object_model_3dClearObjectModel3dClearObjectModel3dClearObjectModel3d

Alternatives

gen_sphere_object_model_3dgen_sphere_object_model_3dGenSphereObjectModel3dGenSphereObjectModel3dGenSphereObjectModel3d

See also

gen_cylinder_object_model_3dgen_cylinder_object_model_3dGenCylinderObjectModel3dGenCylinderObjectModel3dGenCylinderObjectModel3d, gen_plane_object_model_3dgen_plane_object_model_3dGenPlaneObjectModel3dGenPlaneObjectModel3dGenPlaneObjectModel3d, gen_box_object_model_3dgen_box_object_model_3dGenBoxObjectModel3dGenBoxObjectModel3dGenBoxObjectModel3d

Module

3D Metrology


ClassesClasses | | Operators