Openvdb 12

93 views
Skip to first unread message

Holmes Sigerson

unread,
Jan 16, 2025, 1:33:17 PMJan 16
to OpenVDB Forum
when building with nanovdb and using the   auto handle = nanovdb::tools::createNanoGrid(*srcGrid, nanovdb::tools::StatsMode::All); function i get the following error.

CreateNanoGrid.h(326): error : class "openvdb::v12_0::Grid<openvdb::v12_0::FloatTree>" has no member "map"
1>      const nanovdb::Map& map() const {return this->grid().map();}

Can someone help shed some light on this?

Thank you for your consideration
Holmes Sigerson

edward

unread,
Jan 17, 2025, 7:31:51 AMJan 17
to OpenVDB Forum
Did  you include NanoVDB.h ?

Best regards,
-Edward

Holmes Sigerson

unread,
Jan 17, 2025, 10:15:18 AMJan 17
to OpenVDB Forum
thank you for responding, yes of course i did, otherwise createNanoGrid would be undefined.  here is the list i included for nanovdb.
#include <nanovdb/Nanovdb.h>
#include <nanovdb/tools/CreateNanoGrid.h>
#include <nanovdb/GridHandle.h>
#include <nanovdb/util/cuda/CudaDeviceBuffer.h>
//#include <cuda/CudaDeviceBuffer.cuh>
#include <nanovdb/util/GridBuilder.h>
#include <nanovdb/io/IO.h>
#include <nanovdb/cuda/DeviceBuffer.h>

again the issue is in the header file;

CreateNanoGrid.h(326): error : class "openvdb::v12_0::Grid<openvdb::v12_0::FloatTree>" has no member "map"
1>      const nanovdb::Map& map() const {return this->grid().map();}


Reply all
Reply to author
Forward
0 new messages