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__)
int num_comments
Definition: ply.h:126
OtherElem * other_list
Definition: ply.h:117
void ply_header_complete(PlyFile *plyfile)
Definition: ply.c:440
Definition: DriveElementFromInputBehavior.cpp:27
int count_internal
Definition: ply.h:81
struct OtherData OtherData
PlyOtherElems * ply_get_other_element(PlyFile *, char *, int)
Definition: ply.c:1227
struct PlyOtherProp PlyOtherProp
char ** comments
Definition: ply.h:127
char * name
Definition: ply.h:87
char * elem_name
Definition: ply.h:109
float version
Definition: ply.h:123
int other_size
Definition: ply.h:94
char * name
Definition: ply.h:98
char * name
Definition: ply.h:74
void ply_put_comment(PlyFile *, char *)
Definition: ply.c:650
int equal_strings(const char *, const char *)
Definition: ply.c:1470
void ply_put_element_setup(PlyFile *, char *)
Definition: ply.c:513
PlyElement ** elems
Definition: ply.h:125
PlyOtherElems * other_elems
Definition: ply.h:131
PlyProperty ** props
Definition: ply.h:101
void ply_element_count(PlyFile *, char *, int)
Definition: ply.c:413
int elem_count
Definition: ply.h:110
int file_type
Definition: ply.h:122
PlyOtherProp * other_props
Definition: ply.h:112
PlyFile * ply_write(FILE *, int, char **, int)
Definition: ply.c:153
PlyFile * ply_read(FILE *, int *, char ***)
Definition: ply.c:712
PlyOtherProp * ply_get_other_properties(PlyFile *, char *, int)
Definition: ply.c:1137
int internal_type
Definition: ply.h:76
int num
Definition: ply.h:88
void ply_get_property(PlyFile *, char *, PlyProperty *)
Definition: ply.c:967
struct PlyOtherElems PlyOtherElems
int size
Definition: ply.h:99
int nelems
Definition: ply.h:124
void ply_put_other_elements(PlyFile *plyfile)
Definition: ply.c:1332
char * store_prop
Definition: ply.h:92
int offset
Definition: ply.h:77
OtherData ** other_data
Definition: ply.h:111
struct PlyElement PlyElement
struct PlyProperty PlyProperty
void ply_get_element(PlyFile *, void *)
Definition: ply.c:1009
PlyElement * find_element(PlyFile *, const char *)
Definition: ply.c:1495
void ply_close(PlyFile *plyfile)
Definition: ply.c:1382
char ** ply_get_obj_info(PlyFile *, int *)
Definition: ply.c:1048
PlyFile * ply_open_for_reading(const char *, int *, char ***, int *, float *)
Definition: ply.c:826
int count_offset
Definition: ply.h:82
void ply_describe_element(PlyFile *, char *, int, int, PlyProperty *)
Definition: ply.c:262
PlyProperty * find_property(PlyElement *, const char *, int *)
Definition: ply.c:1519
void ply_describe_property(PlyFile *, char *, PlyProperty *)
Definition: ply.c:307
void ply_put_element(PlyFile *, void *)
Definition: ply.c:537
FILE * fp
Definition: ply.h:121
PlyFile * ply_open_for_writing(const char *, int, char **, int, float *)
Definition: ply.c:209
char ** ply_get_comments(PlyFile *, int *)
Definition: ply.c:1029
int count_external
Definition: ply.h:80
PlyProperty ** ply_get_element_description(PlyFile *, char *, int *, int *)
Definition: ply.c:872
struct OtherElem OtherElem
int num_obj_info
Definition: ply.h:128
PlyProperty ** props
Definition: ply.h:91
void ply_get_info(PlyFile *, float *, int *)
Definition: ply.c:1456
int is_list
Definition: ply.h:79
int size
Definition: ply.h:89
void ply_put_obj_info(PlyFile *, char *)
Definition: ply.c:674
PlyElement * which_elem
Definition: ply.h:130
void ply_get_element_setup(PlyFile *, char *, int, PlyProperty *)
Definition: ply.c:916
char ** obj_info
Definition: ply.h:129
void ply_free_other_elements(PlyOtherElems *elements)
Definition: ply.c:1362
int nprops
Definition: ply.h:90
int num_elems
Definition: ply.h:116
void ply_describe_other_elements(PlyFile *, PlyOtherElems *)
Definition: ply.c:1299
int external_type
Definition: ply.h:75
int other_offset
Definition: ply.h:93
int nprops
Definition: ply.h:100
void * other_props
Definition: ply.h:105