AutoCAD 2010/2011/2012 DWG Format
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
I write programs for large CNC routers, and I'm trying to make a parametric program that uses an ellipse in it. I need to know the formula or formulas used to produce the arcs that make up a pellipse so that I can get the radii, and end points of each arc. Any help would be greatly appreciated, Thanks.
-Norm
Solved! Go to Solution.
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
In the past I have used the geometry of http://en.wikipedia.org/wiki/Trammel_of_Archimedes in VBA to generate coordinates along eliptical arcs.
A
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
hayalexj wrote:In the past I have used the geometry of http://en.wikipedia.org/wiki/Trammel_of_Archimedes in VBA to generate coordinates along eliptical arcs.
A
Thanks, I have looked at that already - which is great, but doesn't give enough information. I have also looked into the "five centered arch" in http://mysite.du.edu/~jcalvert/math/ellipse.htm, which is ok, but not as accurate or usable as the pellipse in AutoCAD.
For programming, the current way a pellipse is created is great. Each quadrant is made up of 4 arcs. The end point for each arc is in line with the center of the arcs on either side of it, which flow seamlessly into each other.
For my purposes, I need to be able to calculate the radius, and start & end point of every arc (referenced from the center of the ellipse). Thanks.
-Norm
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I just generated a series of points along the elliptical arc and fed that directly into the tool path.
What more information do you need in addition to that wikipedia page?
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
hayalexj wrote:
I don't know why you would want to create arcs? Surely that's an inaccurate way to do it?
I just generated a series of points along the elliptical arc and fed that directly into the tool path.
What more information do you need in addition to that wikipedia page?
Unfortunately I can't create ellipses on the machines I'm programming. The accuracy of the Pellipse isn't perfect, but good for my application, and easy to check the logic in Excel and AutoCAD. I really like the Trammel of Archimedes, but I don't know how to apply it. The basic parametric programming logic I do can be replicated within excel.
-Norm
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
This is what I've been able to figure out so far...
Based on the picture shown above:
AF is major axis
AB is minor axis
Line IHD is perpendicular to BF
Line JIC is perpendicular to BD
Line HGE is perpendicular to DF
Line GF = First Arc Radius
Line HE = Second Arc Radius
Line IC = Third Arc Radius
Line JB = Fourth Arc Radius
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
The trammel option just requires the ratio of long to short dimension...
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Yes the trammel option gives X and Y coordinates easily (If only it could be that easy
), but the arcs between can't be calculated which means they would not line up. Trammel option doesn't give the radii of the arcs.
The key to making this without being able to program ellipses is to have all the arcs have the same start angle as the one that it connects to.
Re: Does anyone know the formula (s) used for making a PEllipse?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content



