formZ SDK | 4.0 Call Back Reference | File Translator | Structured File Translator | Data Model Call Back
Description
A function to export individual polygons. This function is called when the translator is to export individual polygons (faces). If the files format does not support face 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_faces(
fzrt_int | windex, |
ffmt_id, | |
void * | data, |
obj, | |
face_normals, | |
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 faces 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
See Also
Function Set
Defined in