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

fz_ffmt_cbak_data_model_write_objt

Description

A function to export objects. This function is called when the translator is to export objects. If the files format does not support object data, this function pointer should be set to NULL and no implementation is necessary.

Plugin Prototype

fzrt_error_td fz_ffmt_cbak_data_model_write_objt(

fzrt_int

windex,

fz_ffmt_ref_td

ffmt_id,

void *

data,

fz_objt_ptr

obj,

fz_xyz_td *

face_normals,

fz_xyz_td *

vertex_normals,

fz_xy_td *

vertex_texture_uvs )

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.

face_normals [Input]

An array of face normals. The size of the array will be equal to the number of face in the object. If this array is NULL, do not export face normals.

vertex_normals [Input]

An array of vertex normals. The size of the array will be equal to the number of vertices in the object. If this array is NULL, do not export vertex normals.

vertex_texture_uvs [Input]

An array of texture coordinates. The size of the array will be equal to the number of vertices in the object. If this array is NULL, do not export texture coordinates.

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