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
diff options
context:
space:
mode:
authorHoward Trickey <howard.trickey@gmail.com>2020-08-26 13:59:58 +0300
committerHoward Trickey <howard.trickey@gmail.com>2020-08-26 13:59:58 +0300
commit77242de80e483d89fd72fac1cc5a80aa9fc0ab05 (patch)
tree6d36f2b86b9a2c8ba3418db6ac224ab9087c92cf /source/blender/blenlib/tests/BLI_mesh_boolean_test.cc
parent4909e599e8a84b10f93cd1111dcd118de6ff069e (diff)
Refactor to defer building Plane for Faces until later.
This is a precursor to a big speed optimization in the "finding clusters" code. Right now there is no speedup, maybe even a bit of a slowdown, but following commits should lead to nice speed increases.
Diffstat (limited to 'source/blender/blenlib/tests/BLI_mesh_boolean_test.cc')
-rw-r--r--source/blender/blenlib/tests/BLI_mesh_boolean_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc b/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc
index 79534c13124..af8856a2e15 100644
--- a/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc
+++ b/source/blender/blenlib/tests/BLI_mesh_boolean_test.cc
@@ -57,7 +57,7 @@ class IMeshBuilder {
}
arena.reserve(nv, nf);
Vector<const Vert *> verts;
- Vector<const Face *> faces;
+ Vector<Face *> faces;
bool spec_ok = true;
int v_index = 0;
while (v_index < nv && spec_ok && getline(ss, line)) {
@@ -88,7 +88,7 @@ class IMeshBuilder {
edge_orig.append(edge_index(f_index, fpos));
++fpos;
}
- const Face *facep = arena.add_face(face_verts, f_index, edge_orig);
+ Face *facep = arena.add_face(face_verts, f_index, edge_orig);
faces.append(facep);
++f_index;
}