Compounds |
![](null.gif) | ![](null.gif) | struct | PlyProperty |
![](null.gif) | ![](null.gif) | struct | PlyElement |
![](null.gif) | ![](null.gif) | struct | PlyOtherProp |
![](null.gif) | ![](null.gif) | struct | OtherData |
![](null.gif) | ![](null.gif) | struct | OtherElem |
![](null.gif) | ![](null.gif) | struct | PlyOtherElems |
![](null.gif) | ![](null.gif) | struct | PlyFile |
Defines |
![](null.gif) | ![](null.gif) | #define | PLY_ASCII 1 |
![](null.gif) | ![](null.gif) | #define | PLY_BINARY_BE 2 |
![](null.gif) | ![](null.gif) | #define | PLY_BINARY_LE 3 |
![](null.gif) | ![](null.gif) | #define | PLY_BINARY_NATIVE 4 |
![](null.gif) | ![](null.gif) | #define | PLY_OKAY 0 |
![](null.gif) | ![](null.gif) | #define | PLY_ERROR -1 |
![](null.gif) | ![](null.gif) | #define | PLY_START_TYPE 0 |
![](null.gif) | ![](null.gif) | #define | PLY_CHAR 1 |
![](null.gif) | ![](null.gif) | #define | PLY_SHORT 2 |
![](null.gif) | ![](null.gif) | #define | PLY_INT 3 |
![](null.gif) | ![](null.gif) | #define | PLY_UCHAR 4 |
![](null.gif) | ![](null.gif) | #define | PLY_USHORT 5 |
![](null.gif) | ![](null.gif) | #define | PLY_UINT 6 |
![](null.gif) | ![](null.gif) | #define | PLY_FLOAT 7 |
![](null.gif) | ![](null.gif) | #define | PLY_DOUBLE 8 |
![](null.gif) | ![](null.gif) | #define | PLY_END_TYPE 9 |
![](null.gif) | ![](null.gif) | #define | PLY_SCALAR 0 |
![](null.gif) | ![](null.gif) | #define | PLY_LIST 1 |
![](null.gif) | ![](null.gif) | #define | myalloc(mem_size) my_alloc((mem_size), __LINE__, __FILE__) |
![](null.gif) | ![](null.gif) | #define | REALLOCN(PTR,TYPE,OLD_N,NEW_N) |
![](null.gif) | ![](null.gif) | #define | ALLOCN(PTR,TYPE,N) |
![](null.gif) | ![](null.gif) | #define | FREE(PTR) { free((PTR)); (PTR) = NULL; } |
Typedefs |
![](null.gif) | ![](null.gif) | typedef struct PlyProperty | PlyProperty |
![](null.gif) | ![](null.gif) | typedef struct PlyElement | PlyElement |
![](null.gif) | ![](null.gif) | typedef struct PlyOtherProp | PlyOtherProp |
![](null.gif) | ![](null.gif) | typedef struct OtherData | OtherData |
![](null.gif) | ![](null.gif) | typedef struct OtherElem | OtherElem |
![](null.gif) | ![](null.gif) | typedef struct PlyOtherElems | PlyOtherElems |
![](null.gif) | ![](null.gif) | typedef struct PlyFile | PlyFile |
Functions |
![](null.gif) | ![](null.gif) | char* | my_alloc () |
![](null.gif) | ![](null.gif) | PlyFile* | ply_write (FILE *, int, char **, int) |
![](null.gif) | ![](null.gif) | PlyFile* | ply_open_for_writing (char *, int, char **, int, float *) |
![](null.gif) | ![](null.gif) | void | ply_describe_element (PlyFile *, char *, int, int, PlyProperty *) |
![](null.gif) | ![](null.gif) | void | ply_describe_property (PlyFile *, char *, PlyProperty *) |
![](null.gif) | ![](null.gif) | void | ply_element_count (PlyFile *, char *, int) |
![](null.gif) | ![](null.gif) | void | ply_header_complete (PlyFile *) |
![](null.gif) | ![](null.gif) | void | ply_put_element_setup (PlyFile *, char *) |
![](null.gif) | ![](null.gif) | void | ply_put_element (PlyFile *, void *) |
![](null.gif) | ![](null.gif) | void | ply_put_comment (PlyFile *, char *) |
![](null.gif) | ![](null.gif) | void | ply_put_obj_info (PlyFile *, char *) |
![](null.gif) | ![](null.gif) | PlyFile* | ply_read (FILE *, int *, char ***) |
![](null.gif) | ![](null.gif) | PlyFile* | ply_open_for_reading ( char *, int *, char ***, int *, float *) |
![](null.gif) | ![](null.gif) | PlyProperty** | ply_get_element_description (PlyFile *, char *, int*, int*) |
![](null.gif) | ![](null.gif) | void | ply_get_element_setup ( PlyFile *, char *, int, PlyProperty *) |
![](null.gif) | ![](null.gif) | void | ply_get_property (PlyFile *, char *, PlyProperty *) |
![](null.gif) | ![](null.gif) | PlyOtherProp* | ply_get_other_properties (PlyFile *, char *, int) |
![](null.gif) | ![](null.gif) | void | ply_get_element (PlyFile *, void *) |
![](null.gif) | ![](null.gif) | char** | ply_get_comments (PlyFile *, int *) |
![](null.gif) | ![](null.gif) | char** | ply_get_obj_info (PlyFile *, int *) |
![](null.gif) | ![](null.gif) | void | ply_close (PlyFile *) |
![](null.gif) | ![](null.gif) | void | ply_get_info (PlyFile *, float *, int *) |
![](null.gif) | ![](null.gif) | PlyOtherElems* | ply_get_other_element (PlyFile *, char *, int) |
![](null.gif) | ![](null.gif) | void | ply_describe_other_elements ( PlyFile *, PlyOtherElems *) |
![](null.gif) | ![](null.gif) | void | ply_put_other_elements (PlyFile *) |
![](null.gif) | ![](null.gif) | void | ply_free_other_elements (PlyOtherElems *) |
![](null.gif) | ![](null.gif) | void | ply_describe_other_properties (PlyFile *, PlyOtherProp *, int) |
![](null.gif) | ![](null.gif) | int | equal_strings (char *, char *) |
Initial value:
\
{ (PTR) = (TYPE *) calloc(((unsigned)(N)),sizeof(TYPE));\
if ((PTR) == NULL) { \
fprintf(stderr, "Memory allocation failed on line %d in %s\n", \
__LINE__, __FILE__); \
exit(-1); \
} \
}
Definition at line 159 of file ply.h.
Initial value:
\
{ \
if ((OLD_N) == 0) \
{ ALLOCN((PTR),TYPE,(NEW_N));} \
else \
{ \
(PTR) = (TYPE *)realloc((PTR),(NEW_N)*sizeof(TYPE)); \
if (((PTR) == NULL) && ((NEW_N) != 0)) \
{ \
fprintf(stderr, "Memory reallocation failed on line %d in %s\n", \
__LINE__, __FILE__); \
fprintf(stderr, " tried to reallocate %d->%d\n", \
(OLD_N), (NEW_N)); \
exit(-1); \
} \
if ((NEW_N)>(OLD_N)) \
memset((char *)(PTR)+(OLD_N)*sizeof(TYPE), 0, \
((NEW_N)-(OLD_N))*sizeof(TYPE)); \
} \
}
Definition at line 138 of file ply.h.