Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct radius for starting sphere? #7

Open
mauigna06 opened this issue Nov 22, 2023 · 0 comments
Open

Correct radius for starting sphere? #7

mauigna06 opened this issue Nov 22, 2023 · 0 comments

Comments

@mauigna06
Copy link
Contributor

The multiplier is currently 1.5:

# to make sure the volume is fully included in the sphere, radius must be sqrt(2) times larger
sphereSource.SetRadius(maxRadius*1.5)

But according to this link:
https://math.stackexchange.com/questions/2423669/sphere-and-inscribed-cube

I'm thinking the multiplier should be larger than sqrt(3), for example:

 # to make sure the volume is fully included in the sphere, radius must be sqrt(3) times larger 
 sphereSource.SetRadius(maxRadius*1.75) 
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant