7#include "MRPch/MRBindingMacros.h"
23 [[nodiscard]]
size_t heapBytes()
const {
return memUsage(); }
34 return std::make_shared<OpenVdbFloatGrid>( std::move( *p ) );
37MR_BIND_IGNORE
inline Vector3i
fromVdb(
const openvdb::Coord & v )
39 return Vector3i( v.x(), v.y(), v.z() );
42MR_BIND_IGNORE
inline openvdb::Coord
toVdb(
const Vector3i & v )
44 return openvdb::Coord( v.x, v.y, v.z );
MR_BIND_IGNORE FloatGrid MakeFloatGrid(openvdb::FloatGrid::Ptr &&p)
makes MR::FloatGrid shared pointer taking the contents of the input pointer
Definition MRVDBFloatGrid.h:30
MR_BIND_IGNORE openvdb::FloatGrid & ovdb(OpenVdbFloatGrid &v)
Definition MRVDBFloatGrid.h:26
MR_BIND_IGNORE Vector3i fromVdb(const openvdb::Coord &v)
Definition MRVDBFloatGrid.h:37
MR_BIND_IGNORE openvdb::Coord toVdb(const Vector3i &v)
Definition MRVDBFloatGrid.h:42
Definition MRCameraOrientationPlugin.h:8
std::shared_ptr< OpenVdbFloatGrid > FloatGrid
Definition MRVoxelsFwd.h:25
this class just hides very complex type of typedef openvdb::FloatGrid
Definition MRVDBFloatGrid.h:20
OpenVdbFloatGrid() noexcept=default
size_t heapBytes() const
Definition MRVDBFloatGrid.h:23