diff options
author | Howard Trickey <howard.trickey@gmail.com> | 2020-08-26 13:59:58 +0300 |
---|---|---|
committer | Howard Trickey <howard.trickey@gmail.com> | 2020-08-26 13:59:58 +0300 |
commit | 77242de80e483d89fd72fac1cc5a80aa9fc0ab05 (patch) | |
tree | 6d36f2b86b9a2c8ba3418db6ac224ab9087c92cf /source/blender/blenlib/tests/BLI_mesh_boolean_test.cc | |
parent | 4909e599e8a84b10f93cd1111dcd118de6ff069e (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.cc | 4 |
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; } |