I am trying to convert point cloud to mesh using Openvdb getting two-sided mesh #1265
Unanswered
sonamkumar123
asked this question in
Q&A
Replies: 1 comment
-
Hi @sonamkumar123 - try running an single invocation of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to convert point cloud to mesh using Openvdb getting two-sided mesh.
Using code –
const float voxelSize = 0.50f, halfWidth = 2.0f;
openvdb::FloatGrid::Ptr grid = openvdb::createLevelSetopenvdb::FloatGrid(voxelSize, halfWidth);
openvdb::tools::ParticlesToLevelSetopenvdb::FloatGrid raster(*grid);
raster.setGrainSize(1);//a value of zero disables threading
raster.rasterizeSpheres(pa, 1);
std::vectoropenvdb::Vec3s points;
std::vectoropenvdb::Vec4I quads;
std::vectoropenvdb::Vec3I triangles;
openvdb::tools::volumeToMesh(*grid, points, triangles, quads, 1, 0);
Trying to create a mesh using torus point cloud, getting two-sided mesh(torus inside torus) as output. Outputimage
Beta Was this translation helpful? Give feedback.
All reactions