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

fz_objt_cnstr_terrain

Description

Creates a terrain object using one or more contour lines and a site polygon.

Plugin Prototype

fzrt_error_td fz_objt_cnstr_terrain(

fzrt_int

windex,

fz_objt_ptr *

contours,

fzrt_int

ncontours,

fz_objt_ptr

site,

fz_objt_terrain_cnstr_opts_ptr

trrn_opts,

fz_objt_mesh_opts_ptr

mesh_opts,

fz_objt_ptr *

obj )

Parameters

windex [Input]

project window index

contours [Input]

array with contour line objects. Each object must be an open or closed wire, or a single face surface object. All objects should be planar and parallel to the site object's plane.

ncontours [Input]

number of contour objects

Range: ncontours >= 1

site [Input]

site object. It must be a closed wire or a single face surface object. It should also be planar.

trrn_opts [Input, Optional]

construction options. For defaults see fz_objt_terrain_parm_enum.

mesh_opts [Input, Optional]

meshing options. These options are the same as for the mesh api functions. They determine how densly the terrain model is meshed. when the terrain type is set to FZ_OBJT_TRRN_TYPE_MESHED. For defaults see fz_objt_mesh_parm_enum.

obj [Result]

new object

Returns

Error codes

Availability

5.0.0.0

Example Files

util_objt_cnstr_derv.fsl

See Also

,, , fz_objt_cnstr_terrain_opts_finit

Function Set

fz_model_fset


Defined in

fz_objt_api.h