Cleanup: Add comments for adjacency maps in SubdivCCG

Pull Request: https://projects.blender.org/blender/blender/pulls/141306
This commit is contained in:
Sean Kim
2025-07-02 20:59:30 +02:00
committed by Sean Kim
parent f3399a41e2
commit 412452fe39

View File

@@ -141,11 +141,18 @@ struct SubdivCCG : blender::NonCopyable {
blender::Span<int> 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<SubdivCCGAdjacentEdge> 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<SubdivCCGAdjacentVertex> adjacent_verts;