formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Editing Operations

# fz_objt_edit_parm_regen

Description

Regenerates the shape of a parametric (controlled) object.
This function needs to be called after changing one or more parameters of a controlled object via the respective fz_objt_edit_xxxx_parm_set function of that object type.

Plugin Prototype

fzrt_error_td fz_objt_edit_parm_regen(

fzrt_int | windex,
fz_objt_ptr | obj )

Parameters

windex [Input]

project window index

obj [Input]

parametric object

Returns

Error codes
MODEL_ERR_WRONG_OBJT_TYPE - object passed in is not a parametric object

Availability

5.0.0.0

Plugin Example

// CHANGE THE NUMBER OF STEPS OF A REVOLVED OBJECT lval = 32; fz_type_set_int(&lval,data); fz_objt_edit_revolve_parm_set(windex,revl_obj,FZ_OBJT_REVOLVE_PARM_FACT_STEPS,&data);
// CHANGE THE ANGLE OF A REVOLVED OBJECT dval = PI; fz_type_set_double(&dval,data); fz_objt_edit_revolve_parm_set(windex,revl_obj,FZ_OBJT_REVOLVE_PARM_ANGLE,&data);
// REGENERATE THE SHAPE fz_objt_edit_parm_regen(windex,revl_obj);

Example Files

util_objt_edit_genr.fsl

Function Set

fz_model_fset

Defined in

fz_objt_api.h