Hi All!
I need to convert radius elbow to segmented like shown in a picture..
(see attachments)
I find the appropriative routine to convert arc to segmented pline with user defined number of segments
(see attachments) and now I need a little improvement in this program to draw line or plines from segment vertex’s to center of selected arcs
Can somebody help me to do it?
Any help will be very appreciated
Solved! Go to Solution.
Solved by ВeekeeCZ. Go to Solution.
Presuming you know the beginning and ending points of the arced segment,
say P1 and P2, and the Bulge, then... (setq Chord (distance P1 P2) Sign (if (minusp Bulge) -1.0 1.0) Delta (* 4 (atan (abs Bulge))) R (abs (/ Chord 2 (sin (/ Delta 2)))) RP (polar P1 (+ (angle P1 P2) (* (- pi Delta) Sign 0.5)) R) ) where R is the radius and RP is the radius point or center of the arc. Maybe it can be simplified by removing the sign and (abs ...),
but I need to follow my own work, so it usually has extra explicit steps.
John F. Uhden
Thank you soo much
Your approach work perfect! I really don't know who is the author of main routine, ( I find it in office "storage" place on one of the network disks) but if you sure about @_gile
I'll pay a great respect to the author and to you too
I appreciate a good work of both of you.
I even published a "final" approach in my blog with respect to both of you. ( see the link)
Can't find what you're looking for? Ask the community or share your knowledge.