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 from .util import _get_maps, find_components, find_faces
def planes_from_boundary(vertices: ArrayLike, def planes_from_boundary(
faces: List[ArrayLike] vertices: ArrayLike,
) -> List[plane_t]: faces: List[ArrayLike]
) -> List[plane_t]:
''' '''
Generate a list of planes (normal, signed distance) from the faces of a boundary- Generate a list of planes (normal, signed distance) from the faces of a boundary-
representation polyhedron. representation polyhedron.

View file

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