Hi,
After extracting vertex data from a dxf file I have the following information:
- 3D location point of the vertex
- a bulge
I have been spending alot of time to figure out how to construct the arc between vertices, I realized that I need atleast one point on the arc itself. I can't really figure out how to compute the point(s) even with the angle, sagitta formulas etc.
Can somebody help please?
/Hakan
vertex bulge - point on arc
Moderator: andrew
Re: vertex bulge - point on arc
The bulge is indeed the key to the puzzle.
From the DXF reference (http://www.autodesk.com/techpubs/autocad/dxf/reference/):
-> VERTEX
-> 42, bulge
"Bulge (optional; default is 0). The bulge is the tangent of one fourth the included angle for an arc segment, made negative if the arc goes clockwise from the start point to the endpoint. A bulge of 0 indicates a straight segment, and a bulge of 1 is a semicircle."
From the DXF reference (http://www.autodesk.com/techpubs/autocad/dxf/reference/):
-> VERTEX
-> 42, bulge
"Bulge (optional; default is 0). The bulge is the tangent of one fourth the included angle for an arc segment, made negative if the arc goes clockwise from the start point to the endpoint. A bulge of 0 indicates a straight segment, and a bulge of 1 is a semicircle."
Re: vertex bulge - point on arc
Thanks for the answer. I found an alternative solution, which is to 'explode' the vertices. Instead of having vertices I know have arc segments build of circle geometry, i.e. center point, radius, start- and end angle. There might be pros and cons with this solution, but it is suitable for my application.
/Hakan
/Hakan