Go to the documentation of this file.
34 #ifndef SURGSIM_DATASTRUCTURES_PLY_H
35 #define SURGSIM_DATASTRUCTURES_PLY_H
41 namespace DataStructures {
49 #define PLY_BINARY_BE 2
50 #define PLY_BINARY_LE 3
57 #define PLY_START_TYPE 0
66 #define PLY_END_TYPE 9
136 #define myalloc(mem_size) my_alloc((mem_size), __LINE__, __FILE__)
PlyElement * which_elem
Definition: ply.h:130
PlyElement * find_element(PlyFile *, const char *)
Definition: ply.c:1501
struct OtherElem OtherElem
PlyProperty ** ply_get_element_description(PlyFile *, char *, int *, int *)
Definition: ply.c:878
void ply_header_complete(PlyFile *plyfile)
Definition: ply.c:440
int other_offset
Definition: ply.h:93
float version
Definition: ply.h:123
char * name
Definition: ply.h:87
char ** ply_get_obj_info(PlyFile *, int *)
Definition: ply.c:1054
struct PlyElement PlyElement
int internal_type
Definition: ply.h:76
PlyProperty * find_property(PlyElement *, const char *, int *)
Definition: ply.c:1525
OtherElem * other_list
Definition: ply.h:117
char ** obj_info
Definition: ply.h:129
void ply_close(PlyFile *plyfile)
Definition: ply.c:1388
PlyElement ** elems
Definition: ply.h:125
void ply_put_element(PlyFile *, void *)
Definition: ply.c:537
int file_type
Definition: ply.h:122
void ply_put_obj_info(PlyFile *, char *)
Definition: ply.c:674
PlyProperty ** props
Definition: ply.h:101
PlyFile * ply_open_for_reading(const char *, int *, char ***, int *, float *)
Definition: ply.c:832
int is_list
Definition: ply.h:79
PlyOtherElems * ply_get_other_element(PlyFile *, char *, int)
Definition: ply.c:1233
void ply_get_property(PlyFile *, char *, PlyProperty *)
Definition: ply.c:973
Definition: CompoundShapeToGraphics.cpp:29
int count_external
Definition: ply.h:80
PlyFile * ply_open_for_writing(const char *, int, char **, int, float *)
Definition: ply.c:209
int other_size
Definition: ply.h:94
PlyOtherElems * other_elems
Definition: ply.h:131
void ply_put_comment(PlyFile *, char *)
Definition: ply.c:650
void ply_describe_other_elements(PlyFile *, PlyOtherElems *)
Definition: ply.c:1305
void * other_props
Definition: ply.h:105
struct PlyOtherProp PlyOtherProp
int size
Definition: ply.h:99
int nprops
Definition: ply.h:100
int offset
Definition: ply.h:77
int external_type
Definition: ply.h:75
int num
Definition: ply.h:88
int num_obj_info
Definition: ply.h:128
char * store_prop
Definition: ply.h:92
struct OtherData OtherData
char * elem_name
Definition: ply.h:109
int equal_strings(const char *, const char *)
Definition: ply.c:1476
PlyOtherProp * other_props
Definition: ply.h:112
void ply_element_count(PlyFile *, char *, int)
Definition: ply.c:413
PlyOtherProp * ply_get_other_properties(PlyFile *, char *, int)
Definition: ply.c:1143
int count_internal
Definition: ply.h:81
FILE * fp
Definition: ply.h:121
void ply_describe_property(PlyFile *, char *, PlyProperty *)
Definition: ply.c:307
struct PlyOtherElems PlyOtherElems
int count_offset
Definition: ply.h:82
char * name
Definition: ply.h:98
void ply_get_element(PlyFile *, void *)
Definition: ply.c:1015
void ply_get_element_setup(PlyFile *, char *, int, PlyProperty *)
Definition: ply.c:922
void ply_get_info(PlyFile *, float *, int *)
Definition: ply.c:1462
int nelems
Definition: ply.h:124
OtherData ** other_data
Definition: ply.h:111
int nprops
Definition: ply.h:90
char ** ply_get_comments(PlyFile *, int *)
Definition: ply.c:1035
void ply_put_other_elements(PlyFile *plyfile)
Definition: ply.c:1338
struct PlyProperty PlyProperty
void ply_free_other_elements(PlyOtherElems *elements)
Definition: ply.c:1368
PlyFile * ply_write(FILE *, int, char **, int)
Definition: ply.c:153
PlyProperty ** props
Definition: ply.h:91
int num_comments
Definition: ply.h:126
int elem_count
Definition: ply.h:110
int size
Definition: ply.h:89
PlyFile * ply_read(FILE *, int *, char ***)
Definition: ply.c:712
char ** comments
Definition: ply.h:127
char * name
Definition: ply.h:74
void ply_describe_element(PlyFile *, char *, int, int, PlyProperty *)
Definition: ply.c:262
int num_elems
Definition: ply.h:116
void ply_put_element_setup(PlyFile *, char *)
Definition: ply.c:513