UF_DISP_face_facet_data_s (view source)
 
Defined in: uf_disp_types.h
 
Also known as:
 
Overview
Structure definition for facet data returned from UF_DISP_get_facet_data.


Data Members

face_tag
tag_t
The face

uvs_available
logical
facet data not always has UVs. If material haven't
assigned to the object. It will not have UV. User need
to assign material to object first inorder to get the UV.
true: uv datas founded.
false: no UV , uvs parameter will be NULL

num_vertices
int
The number of vertices of facets in the face

num_facets
int
The number of facets in this face

num_vertex_per_facet
int *
The number of verticies in the facet. Three facets are returned for a triangle
and four for a quadrangle.

vertex_indices
int *
Each facets's vertex index referencing in coords paramter.

coords
double *
The vertices are of the form:
coords[1], coords[2], coords[3], (vertex1)
coords[4], coords[5], coords[6], (vertex2)
...
in which each vertex is represented by an
(x,y,z) coordinate

normals
double *
The normals are of the same form as the vertices
above

uvs
double *
if uvs_available parameter be true, the UVs are of the form:
uvs[1], uvs[2], (vertex1)
uvs[3], uvs[4], (vertex2)
...
in which each vertex UV is represented by an
(u,v) coordinate.