|
Blender V5.0
|
#include <BKE_mesh_topology_state.hh>
Public Member Functions | |
| MeshTopologyState (const Mesh &mesh) | |
| bool | same_topology_as (const Mesh &mesh) const |
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.
| blender::bke::MeshTopologyState::MeshTopologyState | ( | const Mesh & | mesh | ) |
Definition at line 31 of file mesh_topology_state.cc.
References blender::bke::attribute_reader_to_array_state(), blender::VArray< T >::from_span(), and blender::bke::AttributeAccessor::lookup().
| 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().