cleanups and add include_ouside to voxelize()
This commit is contained in:
parent
f5ba19f567
commit
58bbdf84dd
1 changed files with 90 additions and 15 deletions
|
|
@ -67,6 +67,7 @@ def planes_from_box(box_corners: numpy.ndarray) -> List[plane_t]:
|
|||
two diagonally-opposite corners of the box.
|
||||
:return: List of planes, facing inwards.
|
||||
'''
|
||||
box_corners = numpy.array(box_corners)
|
||||
faces = [
|
||||
(( 0, 0, 1), -box_corners[0, 2]),
|
||||
(( 0, 0, -1), box_corners[1, 2]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue