Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

ply2sm.C File Reference

#include "mesh/lmesh.H"
#include "std/config.H"
#include "ply.H"

Include dependency graph for ply2sm.C:

Go to the source code of this file.

Classes

struct  Vertex
struct  Face

Typedefs

typedef Vertex Vertex
typedef Face Face

Functions

void usage (char *progname)
void read_file ()
void add_face (LMESHptr &mesh, Face *f)
void write_sm ()
int main (int argc, char *argv[])

Variables

static bool debug = Config::get_var_bool("DEBUG_PLY2SM",false,true)
char * elem_names []
PlyProperty vert_props []
PlyProperty face_props []
static int nverts = 0
static int nfaces = 0
static Vertex ** vlist = 0
static Face ** flist = 0
static PlyOtherPropvert_other = 0
static PlyOtherPropface_other = 0
static int per_vertex_color = 0
static int has_normals = 0


Typedef Documentation

typedef struct Face Face
 

typedef struct Vertex Vertex
 


Function Documentation

void add_face LMESHptr &  mesh,
Face f
[inline]
 

Definition at line 190 of file ply2sm.C.

References err_msg(), Face::nverts, and Face::verts.

Referenced by add_faces(), add_quad_partners(), and write_sm().

int main int  argc,
char *  argv[]
 

Definition at line 286 of file ply2sm.C.

References debug, err_adv(), read_file(), and write_sm().

void read_file  ) 
 

Definition at line 94 of file ply2sm.C.

References Vertex::b, close_ply(), debug, PlyFile::elems, equal_strings(), err_adv(), face_other, free_ply(), Vertex::g, get_element_ply(), get_other_element_ply(), get_other_properties_ply(), has_normals, j, PlyProperty::name, nfaces, nverts, per_vertex_color, PlyElement::props, Vertex::r, read_ply(), setup_element_read_ply(), and setup_property_ply().

Referenced by main().

void usage char *  progname  ) 
 

Definition at line 84 of file ply2sm.C.

References err_msg().

void write_sm  ) 
 

Definition at line 210 of file ply2sm.C.

References add_face(), debug, err_adv(), err_msg(), Config::get_var_bool(), nfaces, nverts, and per_vertex_color.

Referenced by main().


Variable Documentation

bool debug = Config::get_var_bool("DEBUG_PLY2SM",false,true) [static]
 

Definition at line 29 of file ply2sm.C.

char* elem_names[]
 

Initial value:

 { 
   "vertex", "face"
}

Definition at line 46 of file ply2sm.C.

Referenced by read_ply().

PlyOtherProp * face_other = 0 [static]
 

Definition at line 74 of file ply2sm.C.

Referenced by read_file().

PlyProperty face_props[]
 

Initial value:

 { 
   {"vertex_indices", Int32, Int32, offsetof(Face,verts),
    1, Uint8, Uint8, offsetof(Face,nverts)},
}

Definition at line 62 of file ply2sm.C.

Face** flist = 0 [static]
 

Definition at line 72 of file ply2sm.C.

int has_normals = 0 [static]
 

Definition at line 77 of file ply2sm.C.

Referenced by read_file().

int nfaces = 0 [static]
 

Definition at line 70 of file ply2sm.C.

Referenced by avg_bface_pix_area(), Bedge_list::nfaces_is_equal(), outputMesh(), read_file(), Patch::read_stream(), Patch::recompute(), ZCrossExtractor< ScalarField, Confidence, FaceGenerator >::walk_line(), and write_sm().

int nverts = 0 [static]
 

Definition at line 70 of file ply2sm.C.

Referenced by limit_locs(), qinv_locs(), read_file(), set_locs(), and write_sm().

int per_vertex_color = 0 [static]
 

Definition at line 76 of file ply2sm.C.

Referenced by read_file(), and write_sm().

PlyOtherProp* vert_other = 0 [static]
 

Definition at line 74 of file ply2sm.C.

PlyProperty vert_props[]
 

Initial value:

 { 
   {"x", Float32, Float32, offsetof(Vertex,x), 0, 0, 0, 0},
   {"y", Float32, Float32, offsetof(Vertex,y), 0, 0, 0, 0},
   {"z", Float32, Float32, offsetof(Vertex,z), 0, 0, 0, 0},
   {"r", Float32, Float32, offsetof(Vertex,r), 0, 0, 0, 0},
   {"g", Float32, Float32, offsetof(Vertex,g), 0, 0, 0, 0},
   {"b", Float32, Float32, offsetof(Vertex,b), 0, 0, 0, 0},
   {"nx", Float32, Float32, offsetof(Vertex,nx), 0, 0, 0, 0},
   {"ny", Float32, Float32, offsetof(Vertex,ny), 0, 0, 0, 0},
   {"nz", Float32, Float32, offsetof(Vertex,nz), 0, 0, 0, 0},
}

Definition at line 50 of file ply2sm.C.

Vertex** vlist = 0 [static]
 

Definition at line 71 of file ply2sm.C.


Generated on Mon Sep 18 11:42:38 2006 for jot by  doxygen 1.4.4