openvdb::FloatGrid::Ptr sphere_grid = openvdb::tools::createLevelSetSphere<openvdb::FloatGrid>(50.0, openvdb::Vec3f(1.5, 2, 3),0.5,4.0);
sphere_grid->insertMeta("radius", openvdb::FloatMetadata(50.0));
sphere_grid->setName("LevelSetSphere");
GU_PrimVDB* vdb_ptr = GU_PrimVDB::buildFromGrid(*gdp, sphere_grid);
but I got the following error message:
error: ‘buildFromGrid’ is not a member of ‘GU_PrimVDB’
I don't understand this error because I already followed the guide from GU_PrimVDB.h
00103 // NOTE: For static member functions please call in the following 00104 // manner. <ptrvalue> = GU_PrimVDB::<functname> 00105 // i.e. partptr = GU_PrimVDB::build(params...);
Anyone succeeded in using the "buildFromGrid" method? I was also wondering when will houdini ships the header files of the OpenVDB library.
P.S it would be nice to see some HDK examples with OpenVDB
Thanks,



Find content
Male

