Questions tagged [openvdb]

OpenVDB is an open-source C++ library comprising a novel hierarchical data structure and a suite of tools for the efficient storage and manipulation of sparse volumetric data discretized on three-dimensional grids.

Information on OpenVDB, including documentation, can be obtained from the OpenVDB website.

33 questions
1
vote
1 answer

How to use a openvdb (parallel) foreach accessing multiple grids?

I have an openvdb grid that I would like to iterate using a functor and openvdb::tools::foreach. //the grid I am iterating on Grid G; //the operator used to update each single voxel of G struct Functor{ inline void operator()(const…
Pierluigi
  • 2,212
  • 1
  • 25
  • 39
1
vote
2 answers

Function argument has no type

I came across the following code in the OpenVDB documentation: template class Tree: public TreeBase { ... template Tree(const OtherTreeType& other, const ValueType& inactiveValue, …
pingul
  • 3,351
  • 3
  • 25
  • 43
1
vote
1 answer

Transformation and CSG Operations on grid in OpenVDB

OpenVDB seems really amazing, and the addressing of the nodes is really smart. There are some operations that I don't understand, in particular CSG operations. This is a example code. It takes as input two arguments: a vdb input file with only one…
Matteo Ragni
  • 2,837
  • 1
  • 20
  • 34
0
votes
0 answers

How can I improve my use of CGAL for implicit modelling of 3D lattice structures?

I am trying to use CGAL and OpenVDB for implicit modelling 3D lattice structures. But am unsure that I am using the correct approach. In my method, the lattice is read in as a list of vertices (nodes) and the joining line-segment (struts), to…
craxsh
  • 35
  • 4
0
votes
0 answers

Failed to compile OpenVDB on Windows(VS2017)

I tried to compile OpenVDB on Windows11(VS2017), but confusing error occurs: Error C2676 Binary '<': 'const _Ty' does not define the operator or a conversion to a type that can be received by a predefined operator openvdb_shared Error C2056 invalid…
0
votes
0 answers

How to iterate over custom openvdb grid CoordBBox in parallel

I have sparse openvdb grid and want to iterate over active CoordBBox in parallel, as far as it can change tree topology I cannot use openvdb::tools::foreach I come up with this solution, but maybe there are something better: auto activeBox =…
0
votes
0 answers

C++ and OpenVDB FloatGrid to Vec3SGrid and back to FloatGrid

Here is a basic sample converting them and dumping the result into a mesh: // FloatGrid to Vec3SGrid openvdb::Vec3SGrid::Ptr Vec3SGrid = openvdb::Vec3SGrid::create(); Vec3SGrid->setTransform(…
Frank Escobar
  • 368
  • 4
  • 20
0
votes
0 answers

Using OpenVDB to detect gaps/holes/constricted regions in an SDF

I want to implement an algorithm that detects constricted regions (such as holes/gaps) of a signed-distance-field (SDF), where the zero levelset corresponds to the surface of some CAD geometry. I was recommended to use the levelset advection and…
0
votes
1 answer

set_target_properties called with incorrect number of arguments

I'm trying to build prusaslicer dependencies over superslicer (is not related to the question) but I'm getting an error in the FindTBB.cmake file where it says that set_target_properties called with incorrect number of arguments. The following…
0
votes
1 answer

I am trying to convert point cloud to mesh using Openvdb

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(voxelSize,…
0
votes
1 answer

openvdb resampleToMatch()

I want to decrease the voxel density of an openvdb grid. Inspired by this answer, I tried the following code: const auto dim = grid->evalActiveVoxelDim().asVec3i(); std::cout << dim.x() << " " << dim.y() << " " << dim.z() << std::endl; T::Ptr dest…
B_old
  • 1,141
  • 3
  • 12
  • 26
0
votes
0 answers

How do I export Whitewater as VDB from Houdini to use in another program?

I've had great success exporting fire and smoke as VDB to then open in another 3D program, but I keep failing at exporting whitewater as VDB which can successfully be opened in the next program. It imports with the right attributes and dimensions,…
0
votes
1 answer

Can I export Particle Fluid as VDB from Houdini?

I've created a scene in which water pours from a park fountain and I'd like to export the fluid simulation as VDB to import into Blender. Is this possible? I've found the VDB From Particles and VDB from Particle Fluid nodes, but I'm not having luck…
0
votes
1 answer

Performance of converting polygons to voxels and vice versa

What is the performance of transforming between geometry primitives of polygons and voxels by VoxelizePolygons? Is there any benchmark tests on it? I'm trying to estimate if it is a critical overhead for an application handling polygon meshes of…
Megidd
  • 7,089
  • 6
  • 65
  • 142
0
votes
1 answer

Analyze 3D objects by Voxels

I plan to use OpenVDB to analyze 3D objects/meshes. The objective is: To detect object surface regions with a certain criterion, like slope Then manipulate those regions The manipulation might be adding other 3D objects to those regions, for…
Megidd
  • 7,089
  • 6
  • 65
  • 142