comment updates

This commit is contained in:
jan 2021-02-07 19:46:36 -08:00
commit d5d7663ac8
2 changed files with 2 additions and 2 deletions

View file

@ -69,7 +69,7 @@ def build_polyhedron(vertices: numpy.ndarray, faces: numpy.ndarray) -> poly_t:
has_next = (neighbor_rows == next_vert).any(axis=1) has_next = (neighbor_rows == next_vert).any(axis=1)
# Each vertex touches 3 faces; each vertex triplet (neighbor_row) is a triangle on a face. # Each vertex touches 3 faces; each vertex triplet (neighbor_row) is a triangle on a face.
# Thus, we will never encounter a situation in which prv == nxt. # Thus, we will never encounter a situation in which prev == next.
# If the vertex hasn't been linked to anything yet, set its first two # If the vertex hasn't been linked to anything yet, set its first two
# polyhedron-neighbors to its face-neighbors # polyhedron-neighbors to its face-neighbors

View file

@ -20,7 +20,7 @@ def voxelize(poly: poly_t,
The output array has size [X-1, Y-1, Z-1, N] (include_outside False) or The output array has size [X-1, Y-1, Z-1, N] (include_outside False) or
`[X+1, Y+1, Z+1, N]` (`include_outside` True), where `N` is the number of moments `[X+1, Y+1, Z+1, N]` (`include_outside` True), where `N` is the number of moments
corresponding to the requested order. If include_outside is true, the outer borders corresponding to the requested order. If include_outside is true, the outer borders
of the first three dimensions of the output correspond to portions of the polyhedron of the first three dimensions of the output correspond to portions of the polyhedron
that protruded outside the provided grid. that protruded outside the provided grid.
Args: Args: