Skip to content

Commit bfa83a8

Browse files
committed
🚴🏽‍♂️ Update return type in pip_query function to use PyArray for occupancy results
1 parent 4dde155 commit bfa83a8

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/discretization/_polyhedron.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# todo

src/polyhedron.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ function pip_query(
3030
pts_t = o3d.core.Tensor(py_points.astype(np.float32), device=_dev)
3131
occ = scene.compute_occupancy(pts_t, nsamples=nsamples)
3232
tmp = occ.numpy().astype(pybuiltins.bool)
33-
34-
return pyconvert(Vector{Bool}, tmp)
33+
34+
return PyArray(tmp, copy=false)
3535
end

0 commit comments

Comments
 (0)