Given chord length c and segment height m (this is called a "sagitta"),
radius = (m^2 + (c^2)/4) / (2 m)
In OpenSCAD:
c=20;
m=5;
radius=(pow(m,2) + pow(c,2)/4)/(2*m);
https://softsolder.com/2013/08/02/making-finger-grip-dents-the-chord-equation
https://en.wikipedia.org/wiki/Circle#Sagitta
blogodex = {"idx": ["openSCAD", "circle"]};
Subscribe to:
Post Comments (Atom)
-
A while back I answered a question on Stack Overflow asking about the relative popularity of The Art of Computer Programming . I replied wit...
-
First, let's draw a cube: cube(10,true); Now, let's animate a 360 degree turntable view of the cube: rotate([0,0,$...
-
There's a lot of notes written for getting Vim + Go up and running, but a lot of the notes assume you're already in modern Vim-land....
No comments:
Post a Comment