- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am attempting to find the center point of a bulge between 2 vertices on a lwpolyline.
Given: p1, p2, and the bulge.
I have been able to calculate the radius and then found the 2 possible center points.
But i have no clue how to determine which is the actual center point.
I found this code describing the process, unfortunately, it is in lisp which I do not know.
;; Bulge Center - Lee Mac
;; p1 - start vertex
;; p2 - end vertex
;; b - bulge
;; Returns the center of the arc described by the given bulge and vertices
(defun LM:BulgeCenter ( p1 p2 b )
(polar p1
(+ (angle p1 p2) (- (/ pi 2) (* 2 (atan b))))
(/ (* (distance p1 p2) (1+ (* b b))) 4 b)
)
)
Any help would be great.
Please note that this is for a standalone application and cannot use any of the AutoCAD API's.
Solved! Go to Solution.
