Blender V5.3
bmesh_mesh_partial_update.cc File Reference
#include "MEM_guardedalloc.h"
#include "BLI_bit_vector.hh"
#include "BLI_math_base_c.hh"
#include "bmesh.hh"

Go to the source code of this file.

Namespaces

namespace  blender
 BMesh Iterators.

Functions

BLI_INLINE bool blender::partial_elem_vert_ensure (BMPartialUpdate *bmpinfo, MutableBitSpan verts_tag, BMVert *v)
BLI_INLINE bool blender::partial_elem_face_ensure (BMPartialUpdate *bmpinfo, MutableBitSpan faces_tag, BMFace *f)
BMPartialUpdate * blender::BM_mesh_partial_create_from_verts (BMesh &bm, const BMPartialUpdate_Params &params, const BitSpan verts_mask, const int verts_mask_count)
BMPartialUpdate * blender::BM_mesh_partial_create_from_verts_group_single (BMesh &bm, const BMPartialUpdate_Params &params, const BitSpan verts_mask, const int verts_mask_count)
BMPartialUpdate * blender::BM_mesh_partial_create_from_verts_group_multi (BMesh &bm, const BMPartialUpdate_Params &params, const Span< int > verts_group, const int verts_group_count)
void blender::BM_mesh_partial_destroy (BMPartialUpdate *bmpinfo)

Detailed Description

Generate data needed for partially updating mesh information. Currently this is used for normals and tessellation.

Transform is the obvious use case where there is no need to update normals or tessellation for geometry which has not been modified.

In the future this could be integrated into GPU updates too.

Kinds of Partial Geometry

All Tagged

Operate on everything that's tagged as well as connected geometry. see: #BM_mesh_partial_create_from_verts

Grouped

Operate on everything that is connected to both tagged and un-tagged. see: #BM_mesh_partial_create_from_verts_group_single

Reduces computations when transforming isolated regions.

Optionally support multiple groups since axis-mirror (for example) will transform vertices in different directions, as well as keeping centered vertices. see: #BM_mesh_partial_create_from_verts_group_multi

Note
Others can be added as needed.

Definition in file bmesh_mesh_partial_update.cc.