MeshLib Documentation
Loading...
Searching...
No Matches
MRMeshDiff.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 MRMESH_API MeshDiff( const Mesh & from, const Mesh & to );
17
21
25 [[nodiscard]] bool any() const { return !changedPoints_.empty() || !changedEdges_.empty(); }
26
27private:
28 size_t toPointsSize_ = 0;
30 size_t toEdgesSize_ = 0;
32};
33
34} // namespace MR
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Definition MRMeshDiff.h:13
MRMESH_API MeshDiff(const Mesh &from, const Mesh &to)
computes the difference, that can be applied to mesh-from in order to get mesh-to
MRMESH_API void applyAndSwap(Mesh &m)
bool any() const
Definition MRMeshDiff.h:25
Definition MRCameraOrientationPlugin.h:8
phmap::parallel_flat_hash_map< K, V, Hash, Eq > ParallelHashMap
Definition MRMesh/MRMeshFwd.h:462
Definition MRMesh/MRMesh.h:23