diff options
author | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-14 08:14:52 (GMT) |
---|---|---|
committer | clifford <clifford@b57f626f-c46c-0410-a088-ec61d464b74c> | 2010-01-14 08:14:52 (GMT) |
commit | d349412aefa34723ddfb4cc532f6ca6621d6e3cc (patch) | |
tree | edc2f9d642e4335802703c4d0ba22c0c3a3647c4 /openscad.h | |
parent | e1d58382d94de47354080bb2c86099809d82e74a (diff) |
Clifford Wolf:
Improved handling of imported STL with small or thin triangles
git-svn-id: http://svn.clifford.at/openscad/trunk@283 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'openscad.h')
-rw-r--r-- | openscad.h | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -70,6 +70,9 @@ class AbstractIntersectionNode; class AbstractPolyNode; struct CGAL_Nef_polyhedron; +const double GRID_COARSE = 0.001; +const double GRID_FINE = 0.0000001; + template <typename T> class Grid2d { @@ -77,7 +80,7 @@ public: double res; QHash<QPair<int,int>, T> db; - Grid2d(double resolution = 0.001) { + Grid2d(double resolution) { res = resolution; } T &align(double &x, double &y) { @@ -133,7 +136,7 @@ public: double res; QHash<QPair<QPair<int,int>,int>, T> db; - Grid3d(double resolution = 0.001) { + Grid3d(double resolution) { res = resolution; } T &align(double &x, double &y, double &z) { |