#include "ply.h"
#include "gcl/SceneLang.h"
#include "gcl/VecUtil.h"
#include "plyfile.c"
Include dependency graph for PLYFile.cc:
Go to the source code of this file.
Compounds | |||
struct | Vertex | ||
struct | Face | ||
struct | TriStrips | ||
Functions | |||
void | read_file (FILE *file) | ||
write_file () | |||
Void | AccumNormals ( Int tri[3], PointList &points, NormalList &normals, ScalarList &areas ) | ||
Void | MakeNormals () | ||
scScenePtr | ParsePLYFile (const Char *filename) | ||
Variables | |||
char* | elem_names [] | ||
PlyProperty | vert_props [] | ||
PlyProperty | face_props [] | ||
PlyProperty | tristrip_props [] | ||
int | nfaces | ||
int | ntristrips | ||
PlyOtherProp * | face_other | ||
PlyOtherProp * | tristrip_other | ||
int | has_rgb |
Void AccumNormals (Int tri[3], PointList & points, NormalList & normals, ScalarList & areas) |
Definition at line 282 of file PLYFile.cc.
Void MakeNormals () |
Definition at line 310 of file PLYFile.cc.
scScenePtr ParsePLYFile (const Char * filename) |
Definition at line 382 of file PLYFile.cc.
void read_file (FILE * file) |
Definition at line 109 of file PLYFile.cc.
write_file () |
Definition at line 221 of file PLYFile.cc.
char * elem_names[] |
Initial value:
{ /* list of the kinds of elements in the users object */ "vertex", "face", "tristrips" }
Definition at line 60 of file PLYFile.cc.
PlyOtherProp * face_other |
Definition at line 93 of file PLYFile.cc.
PlyProperty face_props[] |
Initial value:
{ /* list of property information for a vertex */ {"vertex_indices", PLY_INT, PLY_INT, offsetof(Face, verts), 1, PLY_UCHAR, PLY_UCHAR, offsetof(Face, nverts)}, }
Definition at line 76 of file PLYFile.cc.
int has_rgb |
Definition at line 102 of file PLYFile.cc.
int nfaces |
Definition at line 88 of file PLYFile.cc.
int ntristrips |
Definition at line 88 of file PLYFile.cc.
PlyOtherProp * tristrip_other |
Definition at line 93 of file PLYFile.cc.
PlyProperty tristrip_props[] |
Initial value:
{ /* list of property information for a vertex */ {"vertex_indices", PLY_INT, PLY_INT, offsetof(TriStrips, verts), 1, PLY_INT, PLY_INT, offsetof(TriStrips, nverts)}, }
Definition at line 81 of file PLYFile.cc.
PlyProperty vert_props[] |
Initial value:
{ /* list of property information for a vertex */ {"x", PLY_FLOAT, PLY_FLOAT, offsetof(Vertex, x), 0, 0, 0, 0}, {"y", PLY_FLOAT, PLY_FLOAT, offsetof(Vertex, y), 0, 0, 0, 0}, {"z", PLY_FLOAT, PLY_FLOAT, offsetof(Vertex, z), 0, 0, 0, 0}, {"nx", PLY_FLOAT, PLY_FLOAT, offsetof(Vertex, nx), 0, 0, 0, 0}, {"ny", PLY_FLOAT, PLY_FLOAT, offsetof(Vertex, ny), 0, 0, 0, 0}, {"nz", PLY_FLOAT, PLY_FLOAT, offsetof(Vertex, nz), 0, 0, 0, 0}, {"red", PLY_UCHAR, PLY_UCHAR, offsetof(Vertex, r), 0, 0, 0, 0}, {"green", PLY_UCHAR, PLY_UCHAR, offsetof(Vertex, g), 0, 0, 0, 0}, {"blue", PLY_UCHAR, PLY_UCHAR, offsetof(Vertex, b), 0, 0, 0, 0}, }
Definition at line 64 of file PLYFile.cc.