Skip to content

Commit

Permalink
fix radius for spherize
Browse files Browse the repository at this point in the history
  • Loading branch information
dnanto committed Aug 21, 2024
1 parent 3440769 commit b57feb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/src/democapsid/democapsid.py
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ def spherize(coor, verts, sphericity):
Returns:
np.array: The spherized coordinate.
"""
return coor + uvec(coor) * (np.abs(sd_sphere(coor, np.linalg.norm(verts[6] - verts[6][2]))) * -sphericity)
return coor + uvec(coor) * (np.abs(sd_sphere(coor, np.linalg.norm(verts[0]))) * sphericity)


def cylinderize(coor, verts, sphericity, a=5):
Expand Down

0 comments on commit b57feb6

Please sign in to comment.