Comments: note on bmesh_region_match
also correct buffer type
This commit is contained in:
parent
a1d80b9c56
commit
230c272fe3
|
@ -1214,7 +1214,7 @@ bool BKE_pbvh_bmesh_update_topology(PBVH *bvh, PBVHTopologyUpdateMode mode,
|
|||
const float center[3], float radius)
|
||||
{
|
||||
/* 2 is enough for edge faces - manifold edge */
|
||||
BLI_buffer_declare_static(BMFace *, edge_loops, BLI_BUFFER_NOP, 2);
|
||||
BLI_buffer_declare_static(BMLoop *, edge_loops, BLI_BUFFER_NOP, 2);
|
||||
BLI_buffer_declare_static(BMFace *, deleted_faces, BLI_BUFFER_NOP, 32);
|
||||
const int cd_vert_mask_offset = CustomData_get_offset(&bvh->bm->vdata, CD_PAINT_MASK);
|
||||
const int cd_vert_node_offset = bvh->cd_vert_node_offset;
|
||||
|
|
|
@ -23,6 +23,16 @@
|
|||
*
|
||||
* Given a contiguous region of faces,
|
||||
* find multiple matching regions (based on topology) and return them.
|
||||
*
|
||||
* Implementation:
|
||||
*
|
||||
* - Given a face region, find its topological center.
|
||||
* - Compare this with other vertices surrounding geometry with this ones.
|
||||
* (reduce the search space by creating a connectivity ID per vertex
|
||||
* and only run comprehensive tests on those).
|
||||
* - All hashes must be order independent so matching topology can be identified.
|
||||
* - The term UUID here doesn't mean each ID is initially unique.
|
||||
* (uniqueness is improved by re-hashing with connected data).
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
|
Loading…
Reference in New Issue