Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion openvdb/openvdb/openvdb.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ namespace io { class DelayedLoadMetadata; }
using BoolTree = tree::Tree4<bool, 5, 4, 3>::Type;
using DoubleTree = tree::Tree4<double, 5, 4, 3>::Type;
using FloatTree = tree::Tree4<float, 5, 4, 3>::Type;
using Int8Tree = tree::Tree4<int8_t, 5, 4, 3>::Type;
using Int32Tree = tree::Tree4<int32_t, 5, 4, 3>::Type;
using Int64Tree = tree::Tree4<int64_t, 5, 4, 3>::Type;
using MaskTree = tree::Tree4<ValueMask, 5, 4, 3>::Type;
Expand All @@ -73,6 +74,7 @@ using VectorTree = Vec3fTree;
using BoolGrid = Grid<BoolTree>;
using DoubleGrid = Grid<DoubleTree>;
using FloatGrid = Grid<FloatTree>;
using Int8Grid = Grid<Int8Tree>;
using Int32Grid = Grid<Int32Tree>;
using Int64Grid = Grid<Int64Tree>;
using MaskGrid = Grid<MaskTree>;
Expand All @@ -90,7 +92,7 @@ using VectorGrid = Vec3fGrid;
/// The floating point Grid types which OpenVDB will register by default.
using RealGridTypes = TypeList<FloatGrid, DoubleGrid>;
/// The integer Grid types which OpenVDB will register by default.
using IntegerGridTypes = TypeList<Int32Grid, Int64Grid>;
using IntegerGridTypes = TypeList<Int8Grid, Int32Grid, Int64Grid>;
/// The scalar Grid types which OpenVDB will register by default. This is a
/// combination of native floating point and integer grid types. Note that
/// this list does not include Bool or Mask Grids.
Expand Down
1 change: 1 addition & 0 deletions openvdb/openvdb/python/pyIntGrid.cc
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exportIntGrid(nb::module_ m)
{
pyGrid::exportScalarGrid<BoolGrid>(m);
#ifdef PY_OPENVDB_WRAP_ALL_GRID_TYPES
pyGrid::exportScalarGrid<Int8Grid>(m);
pyGrid::exportScalarGrid<Int32Grid>(m);
pyGrid::exportScalarGrid<Int64Grid>(m);
#endif
Expand Down
1 change: 1 addition & 0 deletions openvdb/openvdb/python/pyutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ GRID_TRAITS(openvdb::Vec3SGrid, "Vec3SGrid");
GRID_TRAITS(openvdb::BoolGrid, "BoolGrid");
#ifdef PY_OPENVDB_WRAP_ALL_GRID_TYPES
GRID_TRAITS(openvdb::DoubleGrid, "DoubleGrid");
GRID_TRAITS(openvdb::Int8Grid, "Int8Grid");
GRID_TRAITS(openvdb::Int32Grid, "Int32Grid");
GRID_TRAITS(openvdb::Int64Grid, "Int64Grid");
GRID_TRAITS(openvdb::Vec3IGrid, "Vec3IGrid");
Expand Down