cleanups and add include_ouside to voxelize()

This commit is contained in:
jan 2018-04-05 15:09:36 -07:00
commit 58bbdf84dd

View file

@ -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]),