Divide arc by measurin leight and radius
Divide arc by measurin leight and radius
I need lisp that can divide any arc on segments by formula : X= L / 2*sqrt((R^2-(R-0.2)^2);
X - number of segments (first integer bigger than result of formula)
L - arc leight
R - radius of arc
X - number of segments (first integer bigger than result of formula)
L - arc leight
R - radius of arc
Re: Divide arc by measurin leight and radius
Here's a skeleton:
Code: Select all
(defun arc-segments (L R)
"Returns X= L / 2*sqrt((R^2-(R-0.2)^2)"
(/ L
(* 2 (sqrt .... ) ) )
Re: Divide arc by measurin leight and radius
could you be more precisely? please...
Re: Divide arc by measurin leight and radius
To calculate R^2, use (expt R 2). Beyond that, I could write the whole formula, but feel that you might gain more by filling in the blanks.
Re: Divide arc by measurin leight and radius
OK, I get X from arc that I selected, but how to round result (x=7.2545) to first bigger integer?
and than how to make code to divide that selected arc to X segments?
THANKS....
and than how to make code to divide that selected arc to X segments?
THANKS....
Re: Divide arc by measurin leight and radius
i made it!!!
thanks....
regards
thanks....
regards