Comments (4)
This is probably due to the API change to Grid::copyGrid()
in OpenVDB 4.0.0, which addressed a const-correctness issue. The simplest fix would be to add a const_cast
(e.g., m_grids->push_back(const_cast<GridBase&>(grid).copyGrid())
). There might be other, possibly better solutions, but that would be for the author of that Blender code to decide.
from openvdb.
Thanks for the reply. I guess I had something different in mind with the ABI 3 Compatibility in making it the same interface for programs, but that's API. XD
from openvdb.
In ABI 3 compatibility mode you should get the old behavior, but it doesn't look like you're building with ABI 3 compatibility. Keep in mind that OpenVDB is mostly header code, so macros like OPENVDB_3_ABI_COMPATIBLE
need to be defined when you compile any code that includes OpenVDB headers, not just when you compile the OpenVDB library.
from openvdb.
Compiling Blender with the added gcc command line of "-DOPENVDB_3_ABI_COMPATIBLE" worked perfectly. Thanks for mentioning that the programs including OpenVDB need to have that set as well. I didn't need to modify the Blender code at all.
Sorry if I missed the mentioning that programs including OpenVDB need to enable ABI 3 macro in the documentation. If it's not documented, can it be mentioned somewhere?
Thanks. :)
from openvdb.
Related Issues (20)
- [REQUEST] conda package HOT 1
- BaseStencil::max() compiler error
- [BUG] msvc link error about imath HOT 1
- Openvdb closest point query HOT 3
- Getting error: no kernel image is available for execution on the device
- [BUG] FindOpenVDB modifies BUILD_SHARED_LIBS option
- libopenvdb.lib : fatal error LNK1248: HOT 6
- [REQUEST] Add VFX Platform 2023 to CI build matrix HOT 5
- [BUG] FindOpenVDB.cmake broken for static OpenVDB library and deps HOT 1
- [BUG] NanoVDB viewer fails to render with OpenCL/OpenGL backends HOT 2
- [BUILD] Switch to C++ 17 build for OpenVDB > 10.0.1 HOT 2
- [REQUEST] User function support for OpenVDB AX HOT 4
- [BUG] FastSweeping is not using transform of ISO-surface input SDF grid for velocity extension grid
- Has anyone updated nanovdb_viewer to latest version of NanoVDB? HOT 1
- [BUG] VDB Analysis Closest Point doesnt seem to move outer boundary points accurately
- [BUG] bad_alloc when reading a PointIndexGrid from file HOT 2
- [BUILD] HOT 1
- [BUILD] -lHalf/imath_half_to_float_table missing from Ubuntu 23.04 HOT 2
- [BUILD] Error on make_index_sequence_impl HOT 2
- [BUG] Vec3H Grid Registration no longer builds on ToT master
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from openvdb.