Just for fun, I want to solve this classical math geometry problem to find the cylinder (r and h) whose volume will be maximum inside a sphere of a particular radius (R = 50).

How do I approach this problem in Dynamo without taking the help of mathematical formulas?

@theshysnail it could be done with lesser nodes :

1 Like

Seems like a good exercise for Generative Design.

3 Likes

So the accuracy would depend upon the number of planes?

Yeah, Iām going to try this.

Perhaps Curve. ByIsoCurveOnSurface can simplify the run time some.

The one input would be with a number slider from 0.01 to 0.49 with a step value of 0.01, feeding into a code block along the lines of `[a,1-a];`

and feeding that into the parameter value of the Curve.ByIsocurveOnSurface node (leaving the direction at 0). You can then create a solid by lofting between the two circles, and pull the area of the solid as the optimized outcome.

1 Like