Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/extern
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2014-02-28 17:09:22 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2014-02-28 17:09:22 +0400
commit6e970e1a33c2dd2b3dbe648c6d6d451595bb42ea (patch)
tree0e1b7991f1069e2944b715af1501abe986ef8bcf /extern
parente4996b49f5e0cdf9caacaae50e284e51d8250136 (diff)
Update patch for mesh_simplifier
Diffstat (limited to 'extern')
-rw-r--r--extern/carve/patches/mesh_simplify_dissolve_edges.patch20
1 files changed, 19 insertions, 1 deletions
diff --git a/extern/carve/patches/mesh_simplify_dissolve_edges.patch b/extern/carve/patches/mesh_simplify_dissolve_edges.patch
index bd671bfcbcf..27406a4912a 100644
--- a/extern/carve/patches/mesh_simplify_dissolve_edges.patch
+++ b/extern/carve/patches/mesh_simplify_dissolve_edges.patch
@@ -1,6 +1,6 @@
diff -r e82d852e4fb0 include/carve/mesh_simplify.hpp
--- a/include/carve/mesh_simplify.hpp Wed Jan 15 13:16:14 2014 +1100
-+++ b/include/carve/mesh_simplify.hpp Mon Feb 24 18:02:07 2014 +0600
++++ b/include/carve/mesh_simplify.hpp Fri Feb 28 19:09:02 2014 +0600
@@ -32,8 +32,6 @@
#include <algorithm>
#include <vector>
@@ -44,3 +44,21 @@ diff -r e82d852e4fb0 include/carve/mesh_simplify.hpp
size_t improveMesh(meshset_t *meshset,
+@@ -1445,7 +1470,7 @@
+ 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) {
+@@ -1502,7 +1527,7 @@
+ }
+
+ 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());