Skip to content

Commit

Permalink
make _cylinder_divisions publicly accessible
Browse files Browse the repository at this point in the history
  • Loading branch information
e-pettersen committed Nov 15, 2024
1 parent 3473b4c commit d845bdb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bundles/shape/bundle_info.xml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<BundleInfo name="ChimeraX-Shape" version="1.0.1"
<BundleInfo name="ChimeraX-Shape" version="1.1"
package="chimerax.shape"
minSessionVersion="1" maxSessionVersion="1">

Expand Down
3 changes: 3 additions & 0 deletions src/bundles/shape/src/shape.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ def _cylinder_divisions(radius, height, divisions):
nc = max(3, int(ceil(divisions)))
nz = max(2, int(ceil(nc * height / (sqrt(3)*pi*radius))))
return nz, nc
# Make above function publicly accessible, since it's frequently needed to
# compute the input parameters for the next function
cylinder_divisions = _cylinder_divisions

# -----------------------------------------------------------------------------
#
Expand Down

0 comments on commit d845bdb

Please sign in to comment.