diff options
Diffstat (limited to 'extern/carve')
-rw-r--r-- | extern/carve/include/carve/mesh_simplify.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extern/carve/include/carve/mesh_simplify.hpp b/extern/carve/include/carve/mesh_simplify.hpp index 2126c57011b..f0a0a965707 100644 --- a/extern/carve/include/carve/mesh_simplify.hpp +++ b/extern/carve/include/carve/mesh_simplify.hpp @@ -1470,7 +1470,7 @@ namespace carve { heapval_t last; std::vector<heapval_t> heap; - point_enumerator_t(vector_t _origin, int _base, int _n_dp) : origin(_origin), rounding_fac(pow(_base, _n_dp)), last(-1.0, _origin), heap() { + point_enumerator_t(vector_t _origin, int _base, int _n_dp) : origin(_origin), rounding_fac(pow((double)_base, _n_dp)), last(-1.0, _origin), heap() { for (size_t i = 0; i < (1 << 3); ++i) { vector_t t = origin; for (size_t j = 0; j < 3; ++j) { @@ -1527,7 +1527,7 @@ namespace carve { } aabb_t getAABB() const { - std::set<face_t *>::iterator i = faces.begin(); + std::set<face_t *>::const_iterator i = faces.begin(); aabb_t aabb = (*i)->getAABB(); while (++i != faces.end()) { aabb.unionAABB((*i)->getAABB()); |