Overture  Version 25
plyFileInterface.h
Go to the documentation of this file.
1 // C++ wrapper for PLY polygonal file interface
2 // Petri Fast, 2001
3 //
4 
5 #include <string.h>
6 // AP #include "Overture.h"
7 #include "OvertureTypes.h"
8 #include "A++.h"
9 #include "aString.H"
10 
13  BE_BINARY_PLY_FILE=2, // big-endian
14  LE_BINARY_PLY_FILE=3}; // little-endian
15 
16 // forward definitions
17 struct PlyFile;
18 struct PlyProperty;
19 
21 {
22 public:
25 
26  int openFile(const aString &fname,
28  void closeFile();
29 
30  void readFile(intArray &elems, intArray &tags, realArray &xyz,
31  int &nnode00, int &nelem00, int &ddim00, int &rdim00);
32 
33  void writeFile(); // - " -
34 
37 
38  int rdim;
39  int ddim;
40  int nnode, nelem;
41  int nemax;
42 
43 private:
44  int nelems;
45  char **elist;
46  float version;
47 
48 
49  PlyProperty **plist;
50  int nprops;
51  int num_elems;
52 
53  int num_comments;
54  char **comments;
55  int num_obj_info;
56  char **obj_info;
57 
58  //char *elem_name;
59 };
60