remove clamp_to_box

This commit is contained in:
jan 2018-04-03 15:46:52 -07:00
commit 523db814f8

View file

@ -79,11 +79,3 @@ def voxelize(poly: poly_t,
stack.append((poly_right, slices_right)) stack.append((poly_right, slices_right))
return dest_grid return dest_grid
def clamp_to_box(poly: poly_t,
box: numpy.ndarray,
) -> poly_t:
for face in planes_from_box(box):
poly = clip(poly, face)
return poly