Skip to content

Commit

Permalink
Changed miniball random rotations to apply to original vertices
Browse files Browse the repository at this point in the history
Co-authored-by: Bradley Dice <bdice@bradleydice.com>
  • Loading branch information
janbridley and bdice committed Feb 21, 2023
1 parent df17105 commit a69457c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coxeter/shapes/polyhedron.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def verify_inside(points, center, radius, eps=1e-15):
vertices = rowan.rotate(current_rotation, vertices)
except AssertionError:
current_rotation = rowan.random.rand(1)
vertices = rowan.rotate(current_rotation, vertices)
vertices = rowan.rotate(current_rotation, self.vertices)

Check warning on line 586 in coxeter/shapes/polyhedron.py

View check run for this annotation

Codecov / codecov/patch

coxeter/shapes/polyhedron.py#L584-L586

Added lines #L584 - L586 were not covered by tests
else:
raise RuntimeError("Unable to solve for a bounding sphere.")

Expand Down

0 comments on commit a69457c

Please sign in to comment.