MeshLib C++ Docs
Loading...
Searching...
No Matches
MRMeshDiff.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRVertCoordsDiff.h"
5
6namespace MR
7{
8
12class MeshDiff
13{
14public:
16 MeshDiff() = default;
17
19 MRMESH_API MeshDiff( const Mesh & from, const Mesh & to );
20
23 MRMESH_API void applyAndSwap( Mesh & m );
24
28 [[nodiscard]] bool any() const { return pointsDiff_.any() || topologyDiff_.any(); }
29
31 [[nodiscard]] size_t heapBytes() const { return pointsDiff_.heapBytes() + topologyDiff_.heapBytes(); }
32
33private:
34 VertCoordsDiff pointsDiff_;
35 MeshTopologyDiff topologyDiff_;
36};
37
38} // namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
unsafe MeshDiff()
unsafe void applyAndSwap(MR.Mesh m)
Definition MRCameraOrientationPlugin.h:8