From f38e27d33d9e47bfbed72d3efb36cd4b37ca58f7 Mon Sep 17 00:00:00 2001 From: Jan Petykiewicz Date: Fri, 19 Aug 2022 00:27:52 -0700 Subject: [PATCH] use alternate arg formatting --- adze/boundary.py | 7 ++++--- adze/voxel.py | 11 ++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/adze/boundary.py b/adze/boundary.py index bef0e7a..1c31ba1 100644 --- a/adze/boundary.py +++ b/adze/boundary.py @@ -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. diff --git a/adze/voxel.py b/adze/voxel.py index 99f64de..38851e7 100644 --- a/adze/voxel.py +++ b/adze/voxel.py @@ -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.