|
|
@ -48,41 +48,10 @@ typedef struct PlyElementStruct {
|
|
|
|
struct PlyElementStruct* next;
|
|
|
|
struct PlyElementStruct* next;
|
|
|
|
} PlyElement;
|
|
|
|
} PlyElement;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
extern const char* const ply_formats[];
|
|
|
|
const char* const ply_formats[] = {
|
|
|
|
extern const char* const ply_header_items[];
|
|
|
|
"ascii",
|
|
|
|
extern const char* const ply_type_strings[];
|
|
|
|
"binary_little_endian",
|
|
|
|
extern const size_t ply_type_sizes[];
|
|
|
|
"binary_big_endian"
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char* const ply_header_items[] = {
|
|
|
|
|
|
|
|
"comment",
|
|
|
|
|
|
|
|
"end_header",
|
|
|
|
|
|
|
|
"element",
|
|
|
|
|
|
|
|
"property",
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const char* const ply_type_strings[] = {
|
|
|
|
|
|
|
|
"char",
|
|
|
|
|
|
|
|
"uchar",
|
|
|
|
|
|
|
|
"short",
|
|
|
|
|
|
|
|
"ushort",
|
|
|
|
|
|
|
|
"int",
|
|
|
|
|
|
|
|
"uint",
|
|
|
|
|
|
|
|
"float",
|
|
|
|
|
|
|
|
"double",
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
size_t ply_type_sizes[] = {
|
|
|
|
|
|
|
|
1,
|
|
|
|
|
|
|
|
1,
|
|
|
|
|
|
|
|
2,
|
|
|
|
|
|
|
|
2,
|
|
|
|
|
|
|
|
4,
|
|
|
|
|
|
|
|
4,
|
|
|
|
|
|
|
|
4,
|
|
|
|
|
|
|
|
8,
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
PlyElement* ply_load_mesh(char* filename);
|
|
|
|
PlyElement* ply_load_mesh(char* filename);
|
|
|
|
void ply_free_mesh(PlyElement* elements_head);
|
|
|
|
void ply_free_mesh(PlyElement* elements_head);
|
|
|
|