ply.h File Reference
`#include <stdio.h>`
`#include <stddef.h>`

Go to the source code of this file.

## Classes

struct | PlyProperty
struct | PlyElement
struct | PlyOtherProp
struct | OtherData
struct | OtherElem
struct | PlyOtherElems
struct | PlyFile

## Macros

#define | PLY_ASCII 1 /* ascii PLY file */
#define | PLY_BINARY_BE 2 /* binary PLY file, big endian */
#define | PLY_BINARY_LE 3 /* binary PLY file, little endian */
#define | PLY_OKAY 0 /* ply routine worked okay */
#define | PLY_ERROR -1 /* error in ply routine */
#define | PLY_START_TYPE 0
#define | PLY_CHAR 1
#define | PLY_SHORT 2
#define | PLY_INT 3
#define | PLY_UCHAR 4
#define | PLY_USHORT 5
#define | PLY_UINT 6
#define | PLY_FLOAT 7
#define | PLY_DOUBLE 8
#define | PLY_END_TYPE 9
#define | PLY_SCALAR 0
#define | PLY_LIST 1
#define | myalloc(mem_size) my_alloc((mem_size), __LINE__, __FILE__)

## Typedefs

typedef struct PlyProperty | PlyProperty
typedef struct PlyElement | PlyElement
typedef struct PlyOtherProp | PlyOtherProp
typedef struct OtherData | OtherData
typedef struct OtherElem | OtherElem
typedef struct PlyOtherElems | PlyOtherElems
typedef struct PlyFile | PlyFile

## Functions

char * | my_alloc ()
PlyFile * | ply_write (FILE *, int, char **, int)
PlyFile * | ply_open_for_writing (const char *, int, char **, int, float *)
void | ply_describe_element (PlyFile *, char *, int, int, PlyProperty *)
void | ply_describe_property (PlyFile *, char *, PlyProperty *)
void | ply_element_count (PlyFile *, char *, int)
void | ply_header_complete (PlyFile *plyfile)
void | ply_put_element_setup (PlyFile *, char *)
void | ply_put_element (PlyFile *, void *)
void | ply_put_comment (PlyFile *, char *)
void | ply_put_obj_info (PlyFile *, char *)
PlyFile * | ply_read (FILE *, int *, char ***)
PlyFile * | ply_open_for_reading (const char *, int *, char ***, int *, float *)
PlyProperty ** | ply_get_element_description (PlyFile *, char *, int *, int *)
void | ply_get_element_setup (PlyFile *, char *, int, PlyProperty *)
void | ply_get_property (PlyFile *, char *, PlyProperty *)
PlyOtherProp * | ply_get_other_properties (PlyFile *, char *, int)
void | ply_get_element (PlyFile *, void *)
char ** | ply_get_comments (PlyFile *, int *)
char ** | ply_get_obj_info (PlyFile *, int *)
void | ply_close (PlyFile *plyfile)
void | ply_get_info (PlyFile *, float *, int *)
PlyOtherElems * | ply_get_other_element (PlyFile *, char *, int)
void | ply_describe_other_elements (PlyFile *, PlyOtherElems *)
void | ply_put_other_elements (PlyFile *plyfile)
void | ply_free_other_elements (PlyOtherElems *elements)
int | equal_strings (const char *, const char *)
PlyElement * | find_element (PlyFile *, const char *)
PlyProperty * | find_property (PlyElement *, const char *, int *)

## Macro Definition Documentation

## myalloc

#define myalloc | ( |  | mem_size | ) | my_alloc((mem_size), __LINE__, __FILE__)

## PLY_ASCII

#define PLY_ASCII 1 /* ascii PLY file */

## PLY_BINARY_BE

#define PLY_BINARY_BE 2 /* binary PLY file, big endian */

## PLY_BINARY_LE

#define PLY_BINARY_LE 3 /* binary PLY file, little endian */

## PLY_CHAR

#define PLY_CHAR 1

## PLY_DOUBLE

#define PLY_DOUBLE 8

## PLY_END_TYPE

#define PLY_END_TYPE 9

## PLY_ERROR

#define PLY_ERROR -1 /* error in ply routine */

## PLY_FLOAT

#define PLY_FLOAT 7

## PLY_INT

#define PLY_INT 3

## PLY_LIST

#define PLY_LIST 1

## PLY_OKAY

#define PLY_OKAY 0 /* ply routine worked okay */

## PLY_SCALAR

#define PLY_SCALAR 0

## PLY_SHORT

#define PLY_SHORT 2

## PLY_START_TYPE

#define PLY_START_TYPE 0

## PLY_UCHAR

#define PLY_UCHAR 4

## PLY_UINT

#define PLY_UINT 6

## PLY_USHORT

#define PLY_USHORT 5

## Typedef Documentation

## OtherData

typedef struct OtherData OtherData

## OtherElem

typedef struct OtherElem OtherElem

## PlyElement

typedef struct PlyElement PlyElement

## PlyFile

typedef struct PlyFile PlyFile

## PlyOtherElems

typedef struct PlyOtherElems PlyOtherElems

## PlyOtherProp

typedef struct PlyOtherProp PlyOtherProp

## PlyProperty

typedef struct PlyProperty PlyProperty

## Function Documentation

## equal_strings()

int equal_strings | ( | const char * | ,
|  | const char * |
| ) |  |

## find_element()

PlyElement* find_element | ( | PlyFile * | ,
|  | const char * |
| ) |  |

## find_property()

PlyProperty* find_property | ( | PlyElement * | ,
|  | const char * | ,
|  | int * |
| ) |  |

## my_alloc()

char* my_alloc | ( |  | ) |

## ply_close()

void ply_close | ( | PlyFile * | plyfile | ) |

## ply_describe_element()

void ply_describe_element | ( | PlyFile * | ,
|  | char * | ,
|  | int | ,
|  | int | ,
|  | PlyProperty * |
| ) |  |

## ply_describe_other_elements()

void ply_describe_other_elements | ( | PlyFile * | ,
|  | PlyOtherElems * |
| ) |  |

## ply_describe_property()

void ply_describe_property | ( | PlyFile * | ,
|  | char * | ,
|  | PlyProperty * |
| ) |  |

## ply_element_count()

void ply_element_count | ( | PlyFile * | ,
|  | char * | ,
|  | int |
| ) |  |

## ply_free_other_elements()

void ply_free_other_elements | ( | PlyOtherElems * | elements | ) |

## ply_get_comments()

char** ply_get_comments | ( | PlyFile * | ,
|  | int * |
| ) |  |

## ply_get_element()

void ply_get_element | ( | PlyFile * | ,
|  | void * |
| ) |  |

## ply_get_element_description()

PlyProperty** ply_get_element_description | ( | PlyFile * | ,
|  | char * | ,
|  | int * | ,
|  | int * |
| ) |  |

## ply_get_element_setup()

void ply_get_element_setup | ( | PlyFile * | ,
|  | char * | ,
|  | int | ,
|  | PlyProperty * |
| ) |  |

## ply_get_info()

void ply_get_info | ( | PlyFile * | ,
|  | float * | ,
|  | int * |
| ) |  |

## ply_get_obj_info()

char** ply_get_obj_info | ( | PlyFile * | ,
|  | int * |
| ) |  |

## ply_get_other_element()

PlyOtherElems* ply_get_other_element | ( | PlyFile * | ,
|  | char * | ,
|  | int |
| ) |  |

## ply_get_other_properties()

PlyOtherProp* ply_get_other_properties | ( | PlyFile * | ,
|  | char * | ,
|  | int |
| ) |  |

## ply_get_property()

void ply_get_property | ( | PlyFile * | ,
|  | char * | ,
|  | PlyProperty * |
| ) |  |

## ply_header_complete()

void ply_header_complete | ( | PlyFile * | plyfile | ) |

## ply_open_for_reading()

PlyFile* ply_open_for_reading | ( | const char * | ,
|  | int * | ,
|  | char *** | ,
|  | int * | ,
|  | float * |
| ) |  |

## ply_open_for_writing()

PlyFile* ply_open_for_writing | ( | const char * | ,
|  | int | ,
|  | char ** | ,
|  | int | ,
|  | float * |
| ) |  |

## ply_put_comment()

void ply_put_comment | ( | PlyFile * | ,
|  | char * |
| ) |  |

## ply_put_element()

void ply_put_element | ( | PlyFile * | ,
|  | void * |
| ) |  |

## ply_put_element_setup()

void ply_put_element_setup | ( | PlyFile * | ,
|  | char * |
| ) |  |

## ply_put_obj_info()

void ply_put_obj_info | ( | PlyFile * | ,
|  | char * |
| ) |  |

## ply_put_other_elements()

void ply_put_other_elements | ( | PlyFile * | plyfile | ) |

## ply_read()

PlyFile* ply_read | ( | FILE * | ,
|  | int * | ,
|  | char *** |
| ) |  |

## ply_write()

PlyFile* ply_write | ( | FILE * | ,
|  | int | ,
|  | char ** | ,
|  | int |
| ) |  |