0
I am trying to convert point cloud to mesh using Openvdb
Using code – 

const float voxelSize = 0.50f, halfWidth = 2.0f;
openvdb::FloatGrid::Ptr grid = openvdb::createLevelSet<openvdb::FloatGrid>(voxelSize, halfWidth);
openvdb::tools::ParticlesToLevelSet<openvdb::FloatGrid> raster(*grid);

raster.setGrainSize(1);//a value of zero disables threading
raster.rasterizeSpheres(pa, 1);


std::vector<openvdb::Vec3s> points;
std::vector<openvdb::Vec4I> quads;
std::vector<openvdb::Vec3I> triangles;

openvdb::tools::volumeToMesh(*grid, points, triangles, quads, 1, 0);

尝试使用环面点云创建网格,将双面网格(环面内的环面)作为输出。输出图像

4

0 回答 0