formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Control Objects | Sphere

fz_objt_edit_sphr_parm_set

Description

Sets a parameter of a sphere. Note, that the shape of the sphere is not changed until the function has been called.

Plugin Prototype

fzrt_error_td fz_objt_edit_sphr_parm_set(

fzrt_int

windex,

fz_objt_ptr

obj,

fz_objt_sphr_parm_enum

which,

fz_type_td *

data )

Parameters

windex [Input]

project window index

obj [Input]

object

which [Input]

parameter id

data [Input]

parameter data

Returns

Error codes
MODEL_ERR_WRONG_OBJT_TYPE - object passed in is not a sphere

Availability

5.0.0.0

Plugin Example

fz_xyz_td radii; fz_type_td data;
radii.x = 10.0; radii.y = 10.0; radii.z = 10.0;
fz_type_set_xyz(&data,&radii); fz_objt_edit_sphr_parm_set(windex,obj,FZ_OBJT_SPHR_PARM_RADII,&data); fz_objt_edit_parm_regen(windex,obj);

Script Example

fz_xyz_td radii;
radii = {10.0,10.0,10.0}; fz_objt_edit_sphr_parm_set(windex,obj,FZ_OBJT_SPHR_PARM_RADII,radii); fz_objt_edit_parm_regen(windex,obj);

Example Files

util_objt_prim.fsl

See Also

fz_objt_edit_sphr_parm_get,,

Function Set

fz_model_fset


Defined in

fz_objt_prim_api.h