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{
10
11
16{
17public:
19 MeshDiff() = default;
20
22 MRMESH_API MeshDiff( const Mesh & from, const Mesh & to );
23
26 MRMESH_API void applyAndSwap( Mesh & m );
27
31 [[nodiscard]] bool any() const { return pointsDiff_.any() || topologyDiff_.any(); }
32
34 [[nodiscard]] size_t heapBytes() const { return pointsDiff_.heapBytes() + topologyDiff_.heapBytes(); }
35
36private:
37 VertCoordsDiff pointsDiff_;
38 MeshTopologyDiff topologyDiff_;
39};
40
41}
Definition MRMeshDiff.h:16
Definition MRMeshTopologyDiff.h:16
Definition MRVertCoordsDiff.h:15
MeshDiff()=default
constructs minimal difference, where applyAndSwap( m ) will produce empty mesh
bool any() const
Definition MRVertCoordsDiff.h:30
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)
MRMESH_API size_t heapBytes() const
returns the amount of memory this object occupies on heap
bool any() const
Definition MRMeshDiff.h:31
MRMESH_API size_t heapBytes() const
returns the amount of memory this object occupies on heap
bool any() const
Definition MRMeshTopologyDiff.h:31
size_t heapBytes() const
returns the amount of memory this object occupies on heap
Definition MRMeshDiff.h:34
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRMesh.h:23