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{
9
10
15{
16public:
18 VertCoordsDiff() = default;
19
21 MRMESH_API VertCoordsDiff( const VertCoords & from, const VertCoords & to );
22
25 MRMESH_API void applyAndSwap( VertCoords & m );
26
30 [[nodiscard]] bool any() const { return !changedPoints_.empty(); }
31
33 [[nodiscard]] MRMESH_API size_t heapBytes() const;
34
35private:
36 size_t toPointsSize_ = 0;
37 HashMap<VertId, Vector3f> changedPoints_;
38};
39
40}
Definition MRVertCoordsDiff.h:15
bool any() const
Definition MRVertCoordsDiff.h:30
MRMESH_API size_t heapBytes() const
returns the amount of memory this object occupies on heap
MRMESH_API VertCoordsDiff(const VertCoords &from, const VertCoords &to)
computes the difference, that can be applied to vector-from in order to get vector-to
MRMESH_API void applyAndSwap(VertCoords &m)
VertCoordsDiff()=default
constructs minimal difference, where applyAndSwap( v ) will produce empty vector
only for bindings generation
Definition MRCameraOrientationPlugin.h:8