summaryrefslogtreecommitdiff
path: root/src/csgterm.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/csgterm.h')
-rw-r--r--src/csgterm.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/csgterm.h b/src/csgterm.h
index 35d071d..c1dc0fd 100644
--- a/src/csgterm.h
+++ b/src/csgterm.h
@@ -3,6 +3,7 @@
#include <QString>
#include <QVector>
+#include "polyset.h"
class CSGTerm
{
@@ -15,14 +16,14 @@ public:
};
type_e type;
- class PolySet *polyset;
+ PolySet *polyset;
QString label;
CSGTerm *left;
CSGTerm *right;
double m[20];
int refcounter;
- CSGTerm(PolySet *polyset, double m[20], QString label);
+ CSGTerm(PolySet *polyset, const double m[20], QString label);
CSGTerm(type_e type, CSGTerm *left, CSGTerm *right);
CSGTerm *normalize();
@@ -46,6 +47,8 @@ public:
void add(PolySet *polyset, double *m, CSGTerm::type_e type, QString label);
void import(CSGTerm *term, CSGTerm::type_e type = CSGTerm::TYPE_UNION);
QString dump();
+
+ BoundingBox getBoundingBox() const;
};
#endif
contact: Jan Huwald // Impressum