MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshTopologyDiff.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshTopology.h"
4#include "MRphmap.h"
5
6namespace MR
7{
8
13{
14public:
16 MeshTopologyDiff() = default;
17
20
24
28 [[nodiscard]] bool any() const { return !changedEdges_.empty(); }
29
31 [[nodiscard]] MRMESH_API size_t heapBytes() const;
32
33private:
34 size_t toEdgesSize_ = 0;
36};
37
38} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:68
Definition MRMeshTopologyDiff.h:13
MRMESH_API MeshTopologyDiff(const MeshTopology &from, const MeshTopology &to)
computes the difference, that can be applied to topology-from in order to get topology-to
MRMESH_API size_t heapBytes() const
returns the amount of memory this object occupies on heap
MRMESH_API void applyAndSwap(MeshTopology &t)
bool any() const
Definition MRMeshTopologyDiff.h:28
MeshTopologyDiff()=default
constructs minimal difference, where applyAndSwap( t ) will produce empty topology
Definition MRMesh/MRMeshTopology.h:18
phmap::flat_hash_map< K, V, Hash, Eq > HashMap
Definition MRMesh/MRMeshFwd.h:482