formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Plain Object Construction

fz_objt_cnstr_rectangle

Description

Creates an object with a single rectangular face.
The lower left corner is at 0,0,0. Width is along the positive x axis. Height is along the positive y axis. The optional origin and rotation argments represent the transformation into 3D space.

Plugin Prototype

fzrt_error_td fz_objt_cnstr_rectangle(

fzrt_int

windex,

double

width,

double

height,

fz_xyz_td *

origin,

fz_xyz_td *

rotation,

fz_objt_ptr *

obj )

Parameters

windex [Input]

project window index

width [Input]

width (x axis)

Range: width > 0.0

height [Input]

height (y axis)

Range: height > 0.0

origin [Input, Optional]

origin of the rectagle

rotation [Input, Optional]

rotation

obj [Result]

rectangular object

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_cnstr_simp_poly.fsl
util_objt_cnstr_simple.fsl

See Also

,,, fz_objt_cnstr_triangle,

Function Set

fz_model_fset


Defined in

fz_objt_api.h