Subdivision mesh object.
#include <ayam.h>
Data Fields | |
| int | scheme | 
| subdivision scheme (AY_SDSCATMULL, AY_SDSLOOP)  | |
| unsigned int | nfaces | 
| total number of faces  | |
| unsigned int * | nverts | 
| number of vertices per face [nfaces]  | |
| unsigned int * | verts | 
| vertex indices [total_sum(nverts)]  | |
| unsigned int | ntags | 
| total number of tags  | |
| int * | tags | 
| tags [ntags] (AY_SDT*, hole, corner, crease, intpolbound)  | |
| unsigned int * | nargs | 
| number of arguments per tag [ntags * 2]  | |
| int * | intargs | 
| integer args [sum of all even elements of nargs]  | |
| double * | floatargs | 
| float args [sum of all uneven elements of nargs]  | |
| unsigned int | ncontrols | 
| total number of control points  | |
| double * | controlv | 
| control points [ncontrols * 3]  | |
| unsigned int | level | 
| subdivide to which level?  | |
| char | drawsub | 
| draw subdivided mesh (1) or control mesh (0)?  | |
| ay_object * | pomesh | 
| cached (subdivided) PolyMesh representation  | |
| double * | face_normals | 
| cached face normals  | |
 1.6.3