6#ifndef MRMESH_NO_OPENVDB
9#include "MRPch/MROpenvdb.h"
25 [[nodiscard]]
size_t heapBytes()
const {
return memUsage(); }
36 return std::make_shared<OpenVdbFloatGrid>( std::move( *p ) );
41 return Vector3i( v.x(), v.y(), v.z() );
46 return openvdb::Coord( v.
x, v.
y, v.
z );
openvdb::FloatGrid & ovdb(OpenVdbFloatGrid &v)
Definition MRVDBFloatGrid.h:28
openvdb::Coord toVdb(const Vector3i &v)
Definition MRVDBFloatGrid.h:44
Vector3i fromVdb(const openvdb::Coord &v)
Definition MRVDBFloatGrid.h:39
FloatGrid MakeFloatGrid(openvdb::FloatGrid::Ptr &&p)
makes MR::FloatGrid shared pointer taking the contents of the input pointer
Definition MRVDBFloatGrid.h:32
Definition MRCameraOrientationPlugin.h:7
Vector3< int > Vector3i
Definition MRDotNet/MRMeshFwd.h:9
std::shared_ptr< OpenVdbFloatGrid > FloatGrid
Definition MRMesh/MRMeshFwd.h:537
this class just hides very complex type of typedef openvdb::FloatGrid
Definition MRVDBFloatGrid.h:22
OpenVdbFloatGrid() noexcept=default
size_t heapBytes() const
Definition MRVDBFloatGrid.h:25
T x
Definition MRMesh/MRVector3.h:25
T y
Definition MRMesh/MRVector3.h:25
T z
Definition MRMesh/MRVector3.h:25