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:
authorHans Goudey <h.goudey@me.com>2022-10-07 01:34:53 +0300
committerHans Goudey <h.goudey@me.com>2022-10-07 01:35:02 +0300
commitb04b87b32244fe1aa00878ca596b3c763dc7297b (patch)
tree4b9f398f204c70b478dc62d41369ed1ac9ce7916 /source/blender/nodes/geometry/nodes/node_geo_mesh_topology_face_of_corner.cc
parent79b1e267ef9ab21afccd4a569d83ae2b8c9d4654 (diff)
Cleanup: Avoid inconsistent naming in mesh topology API
Mesh corners are called "loops" in the code currently. Avoid diverging naming and just use that convention in some newly added code.
Diffstat (limited to 'source/blender/nodes/geometry/nodes/node_geo_mesh_topology_face_of_corner.cc')
-rw-r--r--source/blender/nodes/geometry/nodes/node_geo_mesh_topology_face_of_corner.cc9
1 files changed, 4 insertions, 5 deletions
diff --git a/source/blender/nodes/geometry/nodes/node_geo_mesh_topology_face_of_corner.cc b/source/blender/nodes/geometry/nodes/node_geo_mesh_topology_face_of_corner.cc
index 06a69682c90..99def9e8bd1 100644
--- a/source/blender/nodes/geometry/nodes/node_geo_mesh_topology_face_of_corner.cc
+++ b/source/blender/nodes/geometry/nodes/node_geo_mesh_topology_face_of_corner.cc
@@ -36,7 +36,7 @@ class CornerFaceIndexInput final : public bke::MeshFieldInput {
return {};
}
return VArray<int>::ForContainer(
- mesh_topology::build_corner_to_poly_map(mesh.polys(), mesh.totloop));
+ mesh_topology::build_loop_to_poly_map(mesh.polys(), mesh.totloop));
}
uint64_t hash() const final
@@ -65,11 +65,10 @@ class CornerIndexInFaceInput final : public bke::MeshFieldInput {
return {};
}
const Span<MPoly> polys = mesh.polys();
- Array<int> corner_to_poly_map = mesh_topology::build_corner_to_poly_map(polys, mesh.totloop);
+ Array<int> loop_to_poly_map = mesh_topology::build_loop_to_poly_map(polys, mesh.totloop);
return VArray<int>::ForFunc(
- mesh.totloop,
- [polys, corner_to_poly_map = std::move(corner_to_poly_map)](const int corner_i) {
- const int poly_i = corner_to_poly_map[corner_i];
+ mesh.totloop, [polys, loop_to_poly_map = std::move(loop_to_poly_map)](const int corner_i) {
+ const int poly_i = loop_to_poly_map[corner_i];
return corner_i - polys[poly_i].loopstart;
});
}