CAD CAM EDM DRO - Yahoo Group Archive

Re: [CAD_CAM_EDM_DRO] Geometry Problem

Posted by Jon Anderson
on 2000-03-29 06:46:48 UTC
Ron,

I assume you are talking about determining this in code?
Since I'm not a programmer by any stretch of the imagination, I
think the following is quite doable. Feel free to correct me if
I'm wrong...<G>

Since you know what side of the line you are on, and you know the
start/stop point of both segments, could you not calculate the angle
between the two lines based on the end points, and then decide if it's
greater or lesser than 180 degrees by which side of the line you are on?
Most CAD programs I've seen set zero degrees at 3 oclock. If you
calculate that relative to the toolpath the first line is coming in
through 6 oclock towards the center of this imaginary clock, the next
line travels out through 9 oclock, then if you are on the right side of
the line it's an outside angle, if you are on the left side it's an
inside angle.

It sounds fairly simple to me, but I don't have to code it...

Jon

Discussion Thread

Jon Anderson 2000-03-29 06:46:48 UTC Re: [CAD_CAM_EDM_DRO] Geometry Problem Harrison, Doug 2000-03-29 07:17:19 UTC RE: [CAD_CAM_EDM_DRO] Geometry Problem Andy Anderson 2000-03-29 07:19:06 UTC Re: [CAD_CAM_EDM_DRO] Geometry Problem Harrison, Doug 2000-03-29 08:24:27 UTC RE: [CAD_CAM_EDM_DRO] Geometry Problem Jon Elson 2000-03-29 20:39:47 UTC Re: [CAD_CAM_EDM_DRO] Geometry Problem