You probably want to find the arc center first. This should help: http://www.google.com/search?hl=en&source=hp&biw=1920&bih=934&q=find+the+center+of+an+arc+from+two+points&aq=f&aqi=g4g-m4&aql=&oq= The first reference isn't bad. Once you have the center, then it's easier to check around the circumference from arc start to arc stop and check for X or Y values past limits. Would that work for you?
On 03/15/2011 02:40 AM, forget color wrote: > this is more of a math question than an EMC question, but I need the > question for EMC so thought someone else might have run into it. > > I'm trying to figure out how I can calculate whether an arc will go > outside the working area of my CNC. Let's say I have an arc from the > following parameters: > > x1,y1,x2,y2,radius,direction (CW or CCW) > > and that my working area boundaries are: minX = -5, minY = -5, maxX = > 5, maxY = 5 > > how can i tell if the arc will go outside the boundaries? > > so, for example, an arc with these values would go outside the bounds: > > G0 x-4.5 y0 > G02 x-4.5 y4 r2 > > in fact, it's almost entirely outside the bounds. but if I change the > radius to 6, it won't. (or if I change the direction to ccw of course) > > thanks for any help!! > > ------------------------------------------------------------------------------ > Colocation vs. Managed Hosting > A question and answer guide to determining the best fit > for your organization - today and in the future. > http://p.sf.net/sfu/internap-sfd2d > _______________________________________________ > Emc-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/emc-users > > ------------------------------------------------------------------------------ Colocation vs. Managed Hosting A question and answer guide to determining the best fit for your organization - today and in the future. http://p.sf.net/sfu/internap-sfd2d _______________________________________________ Emc-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-users
