From 412452fe3914e2fdd1cfd2baafdb2a86bd3d7d3d Mon Sep 17 00:00:00 2001 From: Sean Kim Date: Wed, 2 Jul 2025 20:59:30 +0200 Subject: [PATCH] Cleanup: Add comments for adjacency maps in SubdivCCG Pull Request: https://projects.blender.org/blender/blender/pulls/141306 --- source/blender/blenkernel/BKE_subdiv_ccg.hh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/blender/blenkernel/BKE_subdiv_ccg.hh b/source/blender/blenkernel/BKE_subdiv_ccg.hh index 85bd6e7f625..9f21a429b6e 100644 --- a/source/blender/blenkernel/BKE_subdiv_ccg.hh +++ b/source/blender/blenkernel/BKE_subdiv_ccg.hh @@ -141,11 +141,18 @@ struct SubdivCCG : blender::NonCopyable { blender::Span grid_to_face_map; /* Edges which are adjacent to faces. + * + * Maps from coarse edge to a directional `grid_size` * 2 map of indices to `SubdivCCGCoord`, + * indexed by OpenSubdiv base mesh edge. + * * Used for faster grid stitching, at the cost of extra memory. */ blender::Array adjacent_edges; - /* Vertices which are adjacent to faces + /* Vertices which are adjacent to faces. + * + * Maps from coarse vertex to `SubdivCCGCoord`, indexed by OpenSubdiv base mesh vertex. + * * Used for faster grid stitching, at the cost of extra memory. */ blender::Array adjacent_verts;