algorithmic modeling for Rhino
I'm sure that there is a trigonometric/mathematical solution to the attached image... I tried to derive it but I'm afraid my brain's just too small... Currently I'm working around this by just building the inner circles to a diameter of 1, finding the outer diameter of the resulting circumscribed circle and then scaling everything up or down... Works, but not an elegant solution...
Tags:
This is how I solved it:
--
David Rutten
david@mcneel.com
Poprad, Slovakia
Or with the intercept theorem, using David's notations:
|MP'| / |MP| = |P'Q'| / |PQ|
let say r=radius of inside circles, and L = |PQ|
so |MP'|= R-r, |MP|=R and |P'Q'|= 2*r
=> (R-r) / R = 2*r/L
=>...
=> r = R*L / (2*R+L)
Thanks for another approach!
--Mitch
Thanks David! You da man! (of course you know that...)
--Mitch
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by