formZ SDK | 5.0 API Reference | Project | Modeling | Objects | Plain Object Construction
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, |
contours, | |
fzrt_int | ncontours, |
site, | |
trrn_opts, | |
mesh_opts, | |
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
See Also
,, , fz_objt_cnstr_terrain_opts_finit
Function Set
Defined in