Blender V5.0
blender::bke::MeshTopologyState Class Reference

#include <BKE_mesh_topology_state.hh>

Public Member Functions

 MeshTopologyState (const Mesh &mesh)
bool same_topology_as (const Mesh &mesh) const

Detailed Description

Simplifies checking if the topology of a mesh before and after an operation is the same.

It does so by remembering the topology of the mesh. In common cases, this can be done without additional copies in constant time by using implicit-sharing.

Definition at line 24 of file BKE_mesh_topology_state.hh.

Constructor & Destructor Documentation

◆ MeshTopologyState()

blender::bke::MeshTopologyState::MeshTopologyState ( const Mesh & mesh)

Member Function Documentation

◆ same_topology_as()

bool blender::bke::MeshTopologyState::same_topology_as ( const Mesh & mesh) const

True when the topology of the given mesh is the same as the topology of the mesh the constructor was called with.

Definition at line 41 of file mesh_topology_state.cc.

References blender::bke::attribute_reader_matches_array_state(), blender::VArray< T >::from_span(), and blender::bke::AttributeAccessor::lookup().

Referenced by BKE_modifier_deform_verts().


The documentation for this class was generated from the following files: