formZ SDK | 4.0 Call Back Reference | File Translator | Structured File Translator | Data Model Call Back

# fz_ffmt_cbak_data_model_write_smod_trimmed_surf

Description

A function to export trimmed surfaces. This function is called when the translator is to export smooth trimmed surfaces. If the files format does not support trimmed surfaces, this function pointer should be set to NULL and no implementation is necessary.
Objects in formZ can be made up of several trimmed surfaces. Prior to calling this function, formZ splits objects into one object per trimmed surface. This function is called for each of the split objects. The start parameter is set to TRUE when the object is the first trimmed surface of the original object. The end parameter is set to TRUE when the object is the last trimmed surface of the original object. The translator can use these parameters to group the trimmed surfaces of one object together.

Plugin Prototype

fzrt_error_td fz_ffmt_cbak_data_model_write_smod_trimmed_surf(

fzrt_int | windex,
fz_ffmt_ref_td | ffmt_id,
void * | data,
fz_objt_ptr | obj,
fzrt_boolean | start,
fzrt_boolean | end,
fzrt_boolean | do_tmap )

Parameters

windex [Input]

project window index

ffmt_id [Input]

The file format reference id.

data [Input]

A pointer to translator defined data.

obj [Input]

The object to export.

start [Input]

If TRUE, this object represents the first trimmed surface in a formZ object.

end [Input]

If TRUE, this object represents the last trimmed surface in a formZ object.

do_tmap [Input]

If TRUE, export texture, otherwise don't export textures.

Returns

FZRT_NOERR on success.
otherwise an appropriate error.

Availability

5.0.0.0

Function Set

fz_ffmt_cbak_data_model_fset

Defined in

fz_ffmt_api.h