Panda3D
eggQtess.h
1 // Filename: eggQtess.h
2 // Created by: drose (13Oct03)
3 //
4 ////////////////////////////////////////////////////////////////////
5 //
6 // PANDA 3D SOFTWARE
7 // Copyright (c) Carnegie Mellon University. All rights reserved.
8 //
9 // All use of this software is subject to the terms of the revised BSD
10 // license. You should have received a copy of this license along
11 // with this source code in a file named "LICENSE."
12 //
13 ////////////////////////////////////////////////////////////////////
14 
15 #ifndef EGGQTESS_H
16 #define EGGQTESS_H
17 
18 #include "pandatoolbase.h"
19 #include "eggFilter.h"
20 #include "qtessInputFile.h"
21 #include "qtessSurface.h"
22 #include "pointerTo.h"
23 #include "pvector.h"
24 
25 ////////////////////////////////////////////////////////////////////
26 // Class : EggQtess
27 // Description : A program to tesselate NURBS surfaces appearing
28 // within an egg file into polygons, using variations on
29 // a quick uniform tesselation.
30 ////////////////////////////////////////////////////////////////////
31 class EggQtess : public EggFilter {
32 public:
33  EggQtess();
34 
35  void run();
36 
37 protected:
38  virtual bool handle_args(ProgramBase::Args &args);
39 
40 private:
41  void describe_qtess_format();
42  void find_surfaces(EggNode *egg_node);
43 
44  Filename _qtess_filename;
45  double _uniform_per_isoparam;
46  int _uniform_per_surface;
47  int _total_tris;
48  bool _qtess_output;
49  bool _describe_qtess;
50 
51  QtessInputFile _qtess_file;
52 
54  Surfaces _surfaces;
55 };
56 
57 #endif
58 
59 
Stores all the information read from a tesselation input file: a list of QtessInputEntry's.
This is the base class for a program that reads an egg file, operates on it, and writes another egg f...
Definition: eggFilter.h:29
The name of a file, such as a texture file or an Egg file.
Definition: filename.h:44
A base class for things that may be directly added into the egg hierarchy.
Definition: eggNode.h:38
A program to tesselate NURBS surfaces appearing within an egg file into polygons, using variations on...
Definition: eggQtess.h:31