formZ SDK | 5.0 API Reference | Project | File Formats | Structured File Translator | Data Model

fz_ffmt_data_model_write_all

Description

Begin export of objects. This function iterates over all objects in the project referenced by windex. For each of the objects to be exported, the data model write functions defined in fz_ffmt_data_cbak_fset are called. Which functions are called depends on the object type and the parameters passed into this function.

Plugin Prototype

fzrt_error_td fz_ffmt_data_model_write_all(

fzrt_int

windex,

fz_ffmt_ref_td

ffmt_id,

fzrt_int

flags,

fzrt_boolean

do_tmap,

fz_ffmt_data_model_write_grup_meth_enum

grup_method,

fz_ffmt_data_model_write_fact_meth_enum

fact_method,

fz_ffmt_data_model_write_smod_meth_enum

smod_method,

fz_ffmt_data_model_write_cntl_meth_enum

cntl_method,

double

angle,

fz_mat4x4_td *

tform,

void *

data,

fz_objt_tria_type_enum

triang_type,

fzrt_boolean

non_planar_only,

fzrt_boolean

strict_planarity,

fzrt_floc_ptr

floc )

Parameters

windex [Input]

project window index

ffmt_id [Input]

The file format reference id.

flags [Input]

The export options flags. Usually obtained by calling fz_ffmt_data_model_write_opts_parm_get with FZ_FFMT_DATA_MODEL_WRITE_OPTS_PARM_FLAGS as the which parameter.

Bit Flag Type: fz_ffmt_data_model_write_opts_flags_enum

do_tmap [Input]

If TRUE, export texture maps. If FALSE don't export texture maps.

grup_method [Input]

The grouping method.

fact_method [Input]

The Facetted objects export method

smod_method [Input]

The Smooth (ACIS) objects export method.

cntl_method [Input]

The Controlled objects export method.

angle [Input]

The smooth shading angle.

tform [Input]

The transform matrix.

data [Input]

A pointer to translator defined data.

triang_type [Input]

Decomposition option: The type of triangulation.

non_planar_only [Input]

Decomposition option: if TRUE, only the non planar faces are triangulated, otherwise all faces are triangulated.

strict_planarity [Input]

Decomposition option: if TRUE, the triangulation process is more sensitive to smaller disturbances in the planarity of a face.

floc [Input]

The file to write the symbol definitions to.

Returns

FZRT_NOERR on success. An error otherwise.

Availability

5.0.0.0

Function Set

fz_ffmt_data_model_fset


Defined in

fz_ffmt_api.h