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

fz_objt_cnstr_vline

Description

Creates an object with a single open or closed face from a set of xyz points (vector line object).
closed indicates whether the object is closed or left open.

Plugin Prototype

fzrt_error_td fz_objt_cnstr_vline(

fzrt_int

windex,

fz_xyz_td *

pnts,

fzrt_int

npts,

fzrt_boolean

closed,

fz_objt_ptr *

obj )

Parameters

windex [Input]

project window index

pnts [Input]

array of points

npts [Input]

number of points in array

Range: npts >= 1

closed [Input]

if TRUE, the object is closed, otherwise the object is open

obj [Result]

vector line object

Returns

Error codes
MODEL_ERR_INSUFFICIENT_PNTS - less than 3 unique points in closed case

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