MeshLib C++ Docs
Loading...
Searching...
No Matches
MRVertCoordsDiff.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRphmap.h"
4
5namespace MR
6{
7
11class VertCoordsDiff
12{
13public:
15 VertCoordsDiff() = default;
16
18 MRMESH_API VertCoordsDiff( const VertCoords & from, const VertCoords & to );
19
22 MRMESH_API void applyAndSwap( VertCoords & m );
23
27 [[nodiscard]] bool any() const { return !changedPoints_.empty(); }
28
30 [[nodiscard]] MRMESH_API size_t heapBytes() const;
31
32private:
33 size_t toPointsSize_ = 0;
34 HashMap<VertId, Vector3f> changedPoints_;
35};
36
37} // namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
unsafe void applyAndSwap(MR.VertCoords m)
unsafe VertCoordsDiff()
Definition MRCameraOrientationPlugin.h:8