You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple code that uses openvdb copyFromArray is failing with the following error
free(): invalid pointer
Aborted (core dumped)
Can someone please tell me why is this failing?
thanks.
Packages:
Python 3.8.10
Name: pyopenvdb-3.8
Version: 0.1.5
Code:
import openvdb
import numpy as np
# Create a sample 3D NumPy array
data = np.random.rand(100, 100, 100) # 100x100x100 array of random values
# Create an empty FloatGrid
grid = openvdb.FloatGrid()
# Copy the NumPy array into the grid
grid.copyFromArray(data)
# Print grid information
print("Grid metadata:", grid.meta())
print("Active voxel count:", grid.activeVoxelCount())
# Write the grid to a VDB file
openvdb.write('output.vdb', grids=[grid])
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
A simple code that uses openvdb copyFromArray is failing with the following error
Can someone please tell me why is this failing?
thanks.
Packages:
Code:
Beta Was this translation helpful? Give feedback.
All reactions