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

# fz_objt_cnstr_cube

Description

Creates a cube primitive

Plugin Prototype

fzrt_error_td fz_objt_cnstr_cube(

fzrt_int | windex,
fz_xyz_td * | wdh,
fz_xyz_td * | origin,
fz_xyz_td * | rotation,
fz_objt_ptr * | obj )

Parameters

windex [Input]

project window index

wdh [Input]

width, depth, height

Range: wdh > 0.0

origin [Input, Optional]

origin

Default Value: {0,0,0}

rotation [Input, Optional]

rotation angles, applied in z,y,x order

Default Value: {0,0,0}

obj [Result]

new object

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_prim.fsl

See Also

,

Function Set

fz_model_fset

Defined in

fz_objt_prim_api.h