
#include "SE/include/ply.h"
#include "plydecl.h"

PlyProperty decimation_vert_props[] = 
{
  {"x", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,x), 0, 0, 0, 0 },
  {"y", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,y), 0, 0, 0, 0 },
  {"z", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,z), 0, 0, 0, 0 },
  {"u", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,u), 0, 0, 0, 0 },
  {"v", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,v), 0, 0, 0, 0 },
  {"r", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,r), 0, 0, 0, 0 },
  {"g", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,g), 0, 0, 0, 0 },
  {"b", PLY_FLOAT,PLY_FLOAT,offsetof(DecimationVertex,b), 0, 0, 0, 0 },
};

PlyProperty decimation_face_props[] =
{
  {"vertex_indices", PLY_INT, PLY_INT, offsetof(DecimationFace,verts), 1, PLY_UCHAR, PLY_UCHAR,offsetof(DecimationFace,nverts) },
};

int  decimation_file_type = PLY_ASCII;
int  decimation_num_elems = 2;
char *decimation_elem_names[] = { "vertex" , "face" };



