Mark,

It would help to tell us what you are trying to accomplish.  From your last
statement:

> Now I just have to figure out how to draw a helix...

The problem that I see is that you might not be able to get there from arc's
and might have to approximate arcs as lines only.  The issue is that g02/03
(arcs) are assumed to be planar -- which means you cannot get there from where
you are.  If there is some way to generate an arc that also moves in another
dimension/axis then you will have to account for that and can actually
generate a helix.  Maybe I am just missing the point from skimming this
thread, but I'm getting the feeling that something is a little off...

BTW, this is one of the reasons that I advocated NURBs years ago since a helix
can be generated by skewing the control polygon of a circle.

  EBo --


Mark <[email protected]> said:

> --0016362834ee85fb7f04643b1f21
> Content-Type: text/plain; charset=ISO-8859-1
> Content-Transfer-Encoding: 7bit
> 
> Thanks.  For right now, I'll stick with the SAI output, since I'm already
> using it.
> I tried to find the functions (ARC_FEED etc) before, but whatever string I
> searched for only showed up in emccannon.cc - which doesn't have the
> printf's.
> 
> Does the interpreter take care of offsets, cutter radius compensation, etc,
> or is that taken care of somewhere else?  I see functions in test.cc related
> to both, but I am wishing really, reeeeally hard that it's taken care of for
> me :)
> 
> I just remembered gdepth.  I will take a look at it.  I'm trying to do about
> the same thing, only using Open Cascade.  I hope the accuracy will be high
> enough to compare the volume of the model generated from g-code with the
> volume of the original model, to see if there are differences.
> 
> Now I just have to figure out how to draw a helix...
> 
> Mark
> 
> On Tue, Mar 3, 2009 at 12:36 PM, Alexey Starikovskiy 
> <[email protected]>wrote:
> 
> > You may insert code into ARC_FEED/STRAIT_FEED of the attached program.
> > command line to compile it (put your paths to emc source):
> > g++ -I../x/emc2-trunk/include/ -L../x/emc2-trunk/lib/
> > -R../x/emc2-trunk/lib/ -lrs274 -lemcini test.cc -o t
> >
> > Mark wrote:
> >
> >> What I want is a way to get lines and arcs from a gcode file.
> >>
> >> Question: if changes are made to the main interp, do they propagate to the
> >> Axis version or must the Axis version be edited by hand?
> >>
> >> Mark
> >>
> >> On Tue, Mar 3, 2009 at 11:55 AM, Jeff Epler <[email protected]>
> >> wrote:
> >>
> >>
> >>
> >>> The so-called "stand-alone" interpreter is available as the program
> >>> "rs274".
> >>> I'm not 100% sure this is in the precompiled package (I think it is),
> >>> but I know you get it when you build emc2 yourself.
> >>>
> >>> However, axis uses a different method (embed rs274 as a shared library)
> >>> to generate the preview plot.
> >>>
> >>> Jeff
> >>>
> >>>
> 
> --0016362834ee85fb7f04643b1f21
> Content-Type: text/html; charset=ISO-8859-1
> Content-Transfer-Encoding: quoted-printable
> 
> Thanks.=A0 For right now, I&#39;ll stick with the SAI output, since I&#39;m=
>  already using it.<br>I tried to find the functions (ARC_FEED etc) before, =
> but whatever string I searched for only showed up in emccannon.cc - which d=
> oesn&#39;t have the printf&#39;s.<br>
> <br>Does the interpreter take care of offsets, cutter radius compensation, =
> etc, or is that taken care of somewhere else?=A0 I see functions in test.cc=
>  related to both, but I am wishing really, reeeeally hard that it&#39;s tak=
> en care of for me :)<br>
> <br>I just remembered gdepth.=A0 I will take a look at it.=A0 I&#39;m tryin=
> g to do about the same thing, only using Open Cascade.=A0 I hope the accura=
> cy will be high enough to compare the volume of the model generated from g-=
> code with the volume of the original model, to see if there are differences=
> .<br>
> <br>Now I just have to figure out how to draw a helix...<br>
> <br>
> Mark<br><br><div class=3D"gmail_quote">On Tue, Mar 3, 2009 at 12:36 PM, Ale=
> xey Starikovskiy <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]=
> ">[email protected]</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_qu=
> ote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0p=
> t 0.8ex; padding-left: 1ex;">
> You may insert code into ARC_FEED/STRAIT_FEED of the attached program.<br>
> command line to compile it (put your paths to emc source):<br>
> g++ -I../x/emc2-trunk/include/ -L../x/emc2-trunk/lib/ -R../x/emc2-trunk/lib=
> / -lrs274 -lemcini test.cc -o t<br>
> <br>
> Mark wrote:<br>
> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
> 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><=
> div class=3D"h5">
> What I want is a way to get lines and arcs from a gcode file.<br>
> <br>
> Question: if changes are made to the main interp, do they propagate to the<=
> br>
> Axis version or must the Axis version be edited by hand?<br>
> <br>
> Mark<br>
> <br>
> On Tue, Mar 3, 2009 at 11:55 AM, Jeff Epler &lt;<a href=3D"mailto:jep...@un=
> pythonic.net" target=3D"_blank">[email protected]</a>&gt; wrote:<br>
> <br>
>  =A0<br>
> <blockquote class=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, =
> 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
> The so-called &quot;stand-alone&quot; interpreter is available as the progr=
> am<br>
> &quot;rs274&quot;.<br>
> I&#39;m not 100% sure this is in the precompiled package (I think it is),<b=
> r>
> but I know you get it when you build emc2 yourself.<br>
> <br>
> However, axis uses a different method (embed rs274 as a shared library)<br>
> to generate the preview plot.<br>
> <br>
> Jeff<br>
> <br></blockquote></div></div></blockquote></blockquote></div><br>
> 
> --0016362834ee85fb7f04643b1f21--
> 
> 



-- 




------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Emc-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to