Polygonal mesh object.
#include <ayam.h>
Data Fields | |
| int | type | 
| unused  | |
| unsigned int | npolys | 
| total number of polygons  | |
| unsigned int * | nloops | 
| loops per polygon [npolys]  | |
| unsigned int * | nverts | 
| verts per loop[total_sum(nloops)]  | |
| unsigned int * | verts | 
| [total_sum(nverts)]  | |
| unsigned int | ncontrols | 
| total number of control points  | |
| int | has_normals | 
| vertex normals? 0 - No, stride=3; 1 - Yes, stride=6  | |
| double * | controlv | 
| control points [ncontrols * stride]  | |
| double * | face_normals | 
| face normals [npolys * 3]  | |
| unsigned char * | face_selection | 
| face selection [roundup(npolys / 8)]  | |
 1.6.3