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

# fz_objt_cnstr_revolve

Description

Creates a revolved object from an existing object (source). The source object must have a single face. It can be an open or closed wire or a single face surface object.

Plugin Prototype

fzrt_error_td fz_objt_cnstr_revolve(

fzrt_int | windex,
fz_objt_ptr | src_obj,
fz_objt_model_type_enum | model_type,
fz_objt_smooth_type_enum | smooth_type,
fz_xyz_td * | ax_p1,
fz_xyz_td * | ax_p2,
double | angle,
fz_objt_revolve_cnstr_opts_ptr | revl_opts,
fz_attr_refn_ptr | refn_opts,
fz_objt_ptr * | obj )

Parameters

windex [Input]

project window index

src_obj [Input]

source object

model_type [Input]

model type

smooth_type [Input]

smooth type

ax_p1 [Input]

first point on axis of revolution

ax_p2 [Input]

second point on axis of revolution

angle [Input]

revolution angle

Range: -2PI <= angle <= 2PI, but not equal to 0.0

revl_opts [Input, Optional]

construction options. For defaults see fz_objt_revolve_parm_enum

refn_opts [Input, Optional]

display resolution options. For defaults see see fz_attr_refn_parm_enum

obj [Result]

new object

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_cnstr_revl.fsl

See Also

fz_objt_edit_revolve_parm_set, fz_objt_edit_revolve_parm_get

Function Set

fz_model_fset

Defined in

fz_objt_revl_api.h