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

# fz_ffmt_data_model_write_sdefs

Description

Begin export of symbols. This function iterates over all symbol definitions in the project referenced by windex. For each symbol 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 of the symbol definition and the parameters passed into this function. The values for most of the parameters to this function should be obtained from the data model write options. They are passed through here as parameters in case the translator needs to override any of the options when writing symbols.

Plugin Prototype

fzrt_error_td fz_ffmt_data_model_write_sdefs(

fzrt_int | windex,
fz_ffmt_ref_td | ffmt_id,
fz_ffmt_data_write_symb_meth_enum | sym_method,
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 * | mat,
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.

sym_method [Input]

The symbol export method.

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.

mat [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