On 11/19/2013 04:35 PM, David Armstrong wrote:
>> While pondering, I thought it could also be used to visualize the path
>> taken in general. Attached are two images of the gcmc examples as SVG
>> paths images.
> is it feasable to load dxf's the same way as svg ?
> i'd definately have a need for that for 2d laser cutting

There is now a branch in git called "backend_svg" which includes both
SVG and DXF output. If you compile locally, then you can switch branches
to test like:

$ cd ...local/gcmc/git/clone...
$ git pull
$ git checkout backend_svg
$ ./configure
$ make
$ src/gcmc --help

The selection of backend uses command-line switches "--svg" and "--dxf".
It should be intuitive, I hope.

The SVG backend only uses the XY plane and ignores all Z. It also has
the ability to output the goto()s from the script, which it puts in a
separate layer. You can disable that using the --svg-no-movelayer
switch. The line-width of the cut-path can be set with
--svg-toolwidth=XXX, where XXX is in mm or inch, depending the -i switch.

The DXF backend does record XYZ on lines and arcs, but I have not tested
any 3D correctness, only checked that the 2D (XY) mapping lookes correct
(using QCad). It only outputs the cut-path (i.e. move() and arc*()).

Neither SVG nor DXF backend has implemented full circles (the P in the
G2/G3). That I have to look into yet.

I'm rather sure that the SVG backend's output is correct, but the DXF
format may need tuning/fixing (dxf is a format that makes me sigh...).
QCad seems happy, but that is not a general "standard".

-- 
Greetings Bertho

(disclaimers are disclaimed)

------------------------------------------------------------------------------
Shape the Mobile Experience: Free Subscription
Software experts and developers: Be at the forefront of tech innovation.
Intel(R) Software Adrenaline delivers strategic insight and game-changing 
conversations that shape the rapidly evolving mobile landscape. Sign up now. 
http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
_______________________________________________
Emc-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to