Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //file 1
- class dxfReader {
- private:
- double originx, originy, originz;
- double upx, upy, upz;
- double deltax, deltay, deltaz;
- double minx, miny, minz;
- double maxx, maxy, maxz;
- list<vector<double>> vertices;
- list<int> *currentPolygon;
- list<list<int> *> polygonList;
- public:
- dxfReader();
- void processComments(ifstream&);
- void processHeaderSection(ifstream&);
- void processTablesSection(ifstream&);
- void processEntitiesSection(ifstream&);
- int getTripled(ifstream&, double&, double&, double&);
- int processHeaderTag(ifstream&);
- void processDXFFile(char *filename);
- void dxfReader::addVertex(double x, double y, double z);
- void dxfReader::beginIndexedPolygon();
- void dxfReader::addIndexedPolygonVertex(int i);
- void dxfReader::endIndexedPolygon();
- };
- //file2
- int main (int argCount, char *argValues[]) {
- char myfilename[] = "ANGELFISH.DXF";
- dxfReader* myReader = new dxfReader();
- myReader.processDXFFile(myfilename); //error "expression must have class type"
- }
Add Comment
Please, Sign In to add comment