add filters in python bindings

This commit is contained in:
AndreaRigoni
2026-03-05 15:03:19 +00:00
parent 42db99759f
commit 554eff9b55
8 changed files with 269 additions and 8 deletions

View File

@@ -327,7 +327,8 @@ void init_math(py::module_ &m) {
// 6. High-level Structures
py::class_<Voxel>(m, "Voxel")
.def(py::init<>())
.def_readwrite("Value", &Voxel::Value);
.def_readwrite("Value", &Voxel::Value)
.def_readwrite("Count", &Voxel::Count);
py::class_<Abstract::VoxImage, StructuredGrid>(m, "AbstractVoxImage")
.def("GetValue", py::overload_cast<const Vector3i &>(&Abstract::VoxImage::GetValue, py::const_))