use alternate arg formatting

This commit is contained in:
Jan Petykiewicz 2022-08-19 00:27:52 -07:00
commit f38e27d33d
2 changed files with 10 additions and 8 deletions

View file

@ -7,9 +7,10 @@ from . import poly_t, plane_t
from .util import _get_maps, find_components, find_faces
def planes_from_boundary(vertices: ArrayLike,
faces: List[ArrayLike]
) -> List[plane_t]:
def planes_from_boundary(
vertices: ArrayLike,
faces: List[ArrayLike]
) -> List[plane_t]:
'''
Generate a list of planes (normal, signed distance) from the faces of a boundary-
representation polyhedron.

View file

@ -8,11 +8,12 @@ from .moments import get_moments, number_of_moments
from .shapes import planes_from_box
def voxelize(poly: poly_t,
planes: List[ArrayLike],
include_outside: bool = False,
order: int = 0,
) -> NDArray[numpy.float64]:
def voxelize(
poly: poly_t,
planes: List[ArrayLike],
include_outside: bool = False,
order: int = 0,
) -> NDArray[numpy.float64]:
'''
Voxelize a Schelegel-representation polyhedron on an arbitrary rectangular grid.