fix deprecated use of generator as index

This commit is contained in:
Jan Petykiewicz 2020-03-15 22:17:05 -07:00
commit e497895ae3

View file

@ -93,7 +93,7 @@ def planes_from_tetrahedron(vertices: numpy.ndarray) -> List[plane_t]:
[2, 0, 3, 2],
[1, 3, 0, 3],
[0, 2, 1, 0]))
vertsets = numpy.moveaxis(numpy.dstack(verts[v] for v in vset_inds), 2, 0)
vertsets = numpy.moveaxis(numpy.dstack([verts[v] for v in vset_inds]), 2, 0)
ab = vertsets[:, 0, :] - vertsets[:, 1, :]
cd = vertsets[:, 2, :] - vertsets[:, 3, :]