Inkscape Gcodetools plug-in English support forum

cnc-club.ru for English speaking users

What function should we develope next?

Можно выбрать до 5 вариантов ответа

 
 
Результаты голосования

Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Generated Gcode in EMC2 (1356536 просмотров) <a class='original' href='./download/file.php?id=508&mode=view' target=_blank>Загрузить оригинал (21.99 КБ)</a>
Generated Gcode in EMC2
TypeExtension of vector
graphics editor Inkscape
DeveloperGcodetools develop team
Written inPython
OSCross-Platform (Windows, Linux, MacOS)
Version1.6.03
LicenseGNU GPL
Downloads7800+

Gcodetools

Gcodetools is a plug-in for Inkscape. It prepares and converts paths from Inkscape to Gcode, using biarc interpolation.
This article is unfinished. You can help cnc-club expanding it.
Screenshots and photos are needed. Please post them at this thread.
Features (для просмотра содержимого нажмите на ссылку)

Features

Preview of the generated Gcode in EMC (1359460 просмотров) <a class='original' href='./download/file.php?id=130&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1345563 просмотра) <a class='original' href='./download/file.php?id=772&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1351884 просмотра) <a class='original' href='./download/file.php?id=642&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1352049 просмотров) <a class='original' href='./download/file.php?id=631&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1287507 просмотров) <a class='original' href='./download/file.php?id=5429&mode=view' target=_blank>Загрузить оригинал (89.93 КБ)</a>
Bears by Durachko
Export to Gcode
  • Export paths to Gcode
  • Using circular (biarc approximation) or straight line interpolation
  • Automatic path subdivision to reach defined tolerance
  • Multiply tool processing
  • Export Gcode in parametric of flat form
  • Including personal headers and footers
  • Choosing units
  • Multi-pass processing
  • Numeric suffix is added to generated files to avoid overwriting
Lathe Gcode
  • Compute trajectories for lathe
  • Fine cut
  • Define fine cut's depth
  • Define fine rounds
  • Two different computation functions for fine cut
  • Standard axis remapping

Path's area processing
  • Building area paths
  • Area paths could be modified
Engraving
  • Building trajectory according to the cutter's shape
  • Defining different cutter's shapes
Tool's library
  • Defining different tool's parameters (diameter, feed, depth step, penetration feed, personal Gcode before/after each path, cutters shape, personal tool's changing Gcode)
  • Tools can be managed by Inkscape's standard procedures (copy, delete, assigned to different layer)
  • Multiply tools processing
Orientation system
  • Applying scale along any axis
  • Apply rotate in the ХY plane
  • Apply translation along any axis
  • Apply transforms according to arbitrary points
Post-processor
  • You can create custom post-processor by writing down the commands or choose from the list of default post-processors
  • Scale and offset Gcode
  • Gcode commands remapping
  • Parameterize Gcode
  • Round floating point values to specified precision
Verifying tools for the scene
  • Select and remove small paths (area artefacts)
  • Tool's alignment check
  • Cutting order check
Plotter cutting
  • Export to Gcode for plotter with tangential knife. Forth axis A is knife's rotation.
Install (для просмотра содержимого нажмите на ссылку)

Install

Windows
Unpack and copy all the files to the following directory Program Files\Inkscape\share\extensions\ and restart inkscape
Linux
Unpack and copy all the files to the following directory /usr/share/inkscape/extensions/ and restart inkscape
Screenshots (для просмотра содержимого нажмите на ссылку)

Screenshots

Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb) (1359463 просмотра) <a class='original' href='./download/file.php?id=127&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1359469 просмотров) <a class='original' href='./download/file.php?id=103&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1359460 просмотров) <a class='original' href='./download/file.php?id=130&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Get latest version (для просмотра содержимого нажмите на ссылку)

Get latest versions

Latest stable version Gcodetools 1.7
gcodetools.tar.gz
Gcodetools 1.7
(75.25 КБ) 103133 скачивания
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 15526 скачиваний
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 11068 скачиваний
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27862 скачивания
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10876 скачиваний

Dev-version

You can try the newest development version by getting it from github repository https://github.com/cnc-club/gcodetools via web interface or using git clone git@github.com:cnc-club/gcodetools.git .
You'll need to run python create_inx.py to create inx files. After that install procedure is the same with the stable version.

Translations

Gcodetools is included into Inkscape v 0.49 so it will have native translations as other Inkscape's extensions. Until it is released you can use some self made translation packs:
Credits (для просмотра содержимого нажмите на ссылку)

Credits

Developers:
  • Nick Drobchenko (Nick)
  • Vladimir Kalyaev (Dormouse)
  • Henry Nicolas (Alfcnc)
  • Chris Lusby Taylor (ChrisInNewbury)
Translators:
  • John Brooker (greybeard from cnczone.com)
Develop (для просмотра содержимого нажмите на ссылку)

Develop

At the moment following features are being developed:
  • Plasma cutter extension
  • Turning lathe extension
  • Plotter extension
You can help us improve Gcodetools in several ways
  • Writing a report / bug report
  • Improve help and manuals
  • Publish G-codes / SVGs / other code
  • Publish photos / videos
  • Make a bug report
  • Help develop new features
  • Suggest a new feature
Tested on (для просмотра содержимого нажмите на ссылку)

Tested on

Linux
Ubuntu 9.10 14.04 + inkscape 0.48 (older Gcodetools versions also work with 0.46, 0.47)
Windows
Windows XP, Windows Vista, Windows 7 + inkscape 0.46, inkscape 0.47
MacOS
There are some reports on successful work on MacOs.
KeerBot
Новичок
Сообщения: 1
Зарегистрирован: 25 май 2013, 14:10
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение KeerBot »

Hi,

Just used your great plugin for my project: http://www.KeerBot.com
have a look at my blog post: http://www.keerbot.com/generating-gcode-using-inkscape/

Thanks :)
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Have you seen the Grafity function of the Gcodetools?
It adds some paths to make corners smoother. So there will me less oscilations on the corners.
http://translate.google.com/translate?j ... tart%3D120
tjmarch
Новичок
Сообщения: 2
Зарегистрирован: 27 сен 2013, 03:26
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение tjmarch »

Would like to see tabing or another name bridges for holding parts in place while machining.
fritzerik
Новичок
Сообщения: 5
Зарегистрирован: 30 сен 2013, 21:57
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение fritzerik »

Hi all,

I'm using gcodetools for a laser engraver. Currently it works nice, but it takes ages to complete a big image (using a low power DVD writer diode). At the moment it cuts different paths, goes back and forth in not always the most efficient way. I tried to use the option to reduce the fast movements but that did not help too much.
I was wondering if it is possible to have the laser 'scan' the page from top to bottom, so it starts from the top, goes from left to right cutting where needed in one go, then goes down one line, repeating this until finished.

The way I currently use the plasma cutter tool, using the area plugin, first filling it zig zag at 0 degree, 0,5 shift and generating the g code with the reduced fast movement option. I manually remove all the Z-axis by means of notepad search and replace :)

Does anyone have an idea if this is possible?

Thanks!
Erik
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Hi!

Can you attach original svg, and a photo of the finished work?
fritzerik писал(а):I manually remove all the Z-axis by means of notepad search and replace
To remove Z moves you can use a "postprocessor". Inside Additional postprocessor field write something like regexp("G0?(0|1)\s*Z\s*[\-0-9\,\.]+.*", "(removed Z)");
( How to use gcodetool extension in inksacpe ? #6 )
fritzerik писал(а):Does anyone have an idea if this is possible?
What OS are you using (win,linux)?
fritzerik
Новичок
Сообщения: 5
Зарегистрирован: 30 сен 2013, 21:57
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение fritzerik »

Hi Nick,

Thanks for you answer! The link contains the picture and SVG. The SVG is not the original but it reproduces the same issue. Using path by path and reduce fast movements results in the fastest cutting, subpath by subpath and reduce fast movements does not.
But, I can live with it if it is not possible otherwise. An additional problem is the following (as you can see in the picture). It also cuts the outline of the 'black parts' that are engraved. Is it possible to prevent this?
The OS is Win8, using Inkscape 0.48 and gcodetools v1.7.
Using your postprocessor code (regexp...) results in an error, I think I need the dev version for this (dev version works the same as 0.48?).

Thanks!
Erik

https://www.dropbox.com/s/52ykhzc58j05ywh/drawing.rar

PS additional options I selected in gcodetools are:
angle: 0,0 deg
area fill shift: 1,0
biarc: 0,01 (thought this would reduce the outline problem)
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

fritzerik писал(а):Using your postprocessor code (regexp...) results in an error, I think I need the dev version for this (dev version works the same as 0.48?).
try "regex" instead "regexp", I always forget it...

To remove outline just delete it in inkscape, or do not select when making Path to Gcode.

PS in LinuxCNC there's a image-to-gcode which can easily make Gcode from greyscale image... I think it can be useful for you...
fritzerik
Новичок
Сообщения: 5
Зарегистрирован: 30 сен 2013, 21:57
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение fritzerik »

Hi Nick,

Thanks for the tip, but I've never used Linux so that will be an experience :) but I'd rather get it to work on this platform.

I've tried to remove the outline by removing the stroke, but this results in the same (outlines are still used as a path). Since I'm not very used to Inkscape yet, do you have a hint on how to do this (removing the outline in steps)?
The way I do it now is as following:
1. Import .AI file that I generated using adobe illustrator, resize, remove stroke (set to none)
2. object to path
3. do all the settings (orientation points, slect plasma tool, diameter, M03/M05 before/after path)
4. area fill 0 degrees, fill shift both 1.0, zig zag
5. apply (look at image what I get, I expected blue lines only in the black areas... is this normal?)
6. select entire image again
7. path to g code (without regex as of yet)
8. wait, get coffee
9. remove Z manually

Thanks,
Erik


Clipboard01.jpg (14669 просмотров) <a class='original' href='./download/file.php?id=19249&mode=view' target=_blank>Загрузить оригинал (173.42 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

I do not think that inskcape is a good software for this kind of machining.
You'll rather use some kind of image to gcode for windows.....
Hmmm probably you will be able to use image-to-gcode from LinuxCNC in win because it's written in python...
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Yep, probably you will be able to do that...

So, download this archive:

unpack and run in python file image-to-gcode which is in the bin directory...
The only thing - it outputs Gcode into standard output, i.e. to the console. In linux you can easily redirect standard output into file just write >out.ngc (python image-to-gcode >out.ngc) and that's it... I'm not sure that will in work in windows or not...
Вложения
image-to-gcode.zip
(47.32 КБ) 692 скачивания
fritzerik
Новичок
Сообщения: 5
Зарегистрирован: 30 сен 2013, 21:57
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение fritzerik »

Hey Nick,

Thanks for the link. I'll give it a try soon. As of now, I've tried to remove the outline and that took some work, but that seemed to have solved it. What I did is select all the black parts and copied them to another place and used that to generate the area and path. Now no discrepancies occur. The laser is currently cutting and it will take another 7 to 8 hours before it's done. When it's done I'll upload a photo.

Thanks for everything!
Cheers,
Erik
IMG_1322.JPG (14594 просмотра) <a class='original' href='./download/file.php?id=19320&mode=view' target=_blank>Загрузить оригинал (110.09 КБ)</a>
fritzerik
Новичок
Сообщения: 5
Зарегистрирован: 30 сен 2013, 21:57
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение fritzerik »

Hi Nick,

So this is the result of 9 hours of cutting :) Well at least it looks okay so no problem there. Now I just need to fix the outline of the whole thing and glue a peg to the rear so it stands on its owm.

Thanks so much for all your help!
Cheers,
Erik

IMG_1323.JPG (14538 просмотров) <a class='original' href='./download/file.php?id=19440&mode=view' target=_blank>Загрузить оригинал (42.14 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

9 hours... that's a quite time :)

Good result!
But I would suggest you to try some graphics effects. You can try Gimp and it's fixed color distribution effect to get picture like these:
(it's in Russian, but at least you can see the pictures, or you can use google translate to get the text (there are small buttons at the top right of the forum, to translate the page).)
http://cnc-club.ru/forum/viewtopic.php? ... lit=burner

Or there's another great effect:
http://wiki.evilmadscientist.com/StippleGen
http://cnc-club.ru/forum/viewtopic.php? ... 986#p75986

Or this amazing effect:
http://maxim-s-barabash.github.io/ZebraTrace/
billt
Новичок
Сообщения: 8
Зарегистрирован: 21 окт 2013, 18:11
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение billt »

Nick -

Great program!

Would you be willing to add a drag-knife feature as well?

The purpose is similar to the tangential knife that you already have available, however the cutting tool rotation is not powered, it swivels on bearings within the tool holder and the knife tip is offset from the tool centerline which "drags" behind the machine path. This type of tool cuts sign vinyl, cardboard, wood veneer, ...
A lot of information and videos can be found at http://www.donektools.com.

Without compensation, sharp corners are rounded due to the drag-knife tip offset.
"Corner features" can be added for an overcut and swivel arc to the next cut segment.
Also a "retract" feature at the corners which retracts during the swivel motion for thick materials.
Note, the blade must first be oriented toward the +X direction which allows the first point to be precisely located.

I have written a python script for CamBam which creates these features.
Hopefully it can be incorporated into your GCodeTools fairly easily.

The script also includes calculations for the knife tip to exactly follow arc paths.
The concept is based on bicycle front/rear wheel paths.
The "front wheel" is driven by the machine engrave path, and the knife tip is the "rear wheel".
The tool offset (distance from the tool centerline to knife tip) correlates to the bike wheelbase.
Basic gormulas for bike wheel path are found at: http://math.ucsd.edu/~ebender/87/bicycle.pdf

CamBam uses "Polylines" which are composed of two end points and a "Bulge"
Bulge is defined as tan(sweep angle/4) for arc segments, so bulge=0 produces a straight line.
My script uses the Bulge quantity, so a bit of tweaking might be necessary to work with biarc segments (3 points?).

I can of course help with modifying the script if I can get a bit of help on your functions and variables.

Thanks! BillT
billt
Новичок
Сообщения: 8
Зарегистрирован: 21 окт 2013, 18:11
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение billt »

Sorry, forgot to attach the file.
.py files do not load so I needed to change to .txt
Cheers - BillT
drag_knife.txt
Drag-Knife python script (written for CamBam)
(7.07 КБ) 1376 скачиваний
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Hi!

I'm glad that you've found gcodetools useful! :)

Dragknife is not implemented yet. But probably somte things can be made to make that trajectories. Can you provide any examples of original path + drag-knife path. We have extension that prepares paths for plasma cutter it makes additional trajectory at the angles... (hmmmm... it seems that id does not do drag-knife job).

How do you think how hard will it be to make the drag-knife path code for arcs / or biarc curves? (not only for polylines?)


PS sorry for thelate answer! Right now I have several projects that are have to be done, and not as much free time.
PSS have you seen another inkscapes extension for cutting plotters? (http://inkcut.sourceforge.net/ )
billt
Новичок
Сообщения: 8
Зарегистрирован: 21 окт 2013, 18:11
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение billt »

Nick -
Regarding Drag-Knife, it should be really easy to implement, considering the similar tools you have already implemented.
See the attached picture for an example of "G" cut out using a drag-knife path.
I used a large knife offset value to show the corner features.
You can see that the cut direction is CCW, and at the end of each segment the path is extended and then swivels to the tangent of the next segment.
On curved paths the tool path lags the cut line, as the rear wheel of a bicycle lags the front wheel on a curve.
In a following post I can list a pseudo-code for this and some additional features of the path.
Cheers - BillT
&quot;G&quot; drag-knife path - from CamBam script (14020 просмотров) <a class='original' href='./download/file.php?id=20019&mode=view' target=_blank>Загрузить оригинал (69.1 КБ)</a>
"G" drag-knife path - from CamBam script
billt
Новичок
Сообщения: 8
Зарегистрирован: 21 окт 2013, 18:11
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение billt »

Nick -
I was not aware of the InkCut extension that you suggested, which outputs to HPGL devices.
Great suggestion, however my CNC machine is driven by LinuxCNC using G-Code (unless LinuxCNC can accept HPGL input?)
TuxPlot http://www.securetech-ns.ca/camm-linux.html looks promising for vinyl cutting and has G-code output as an option.
But your Gcodetools has many additional features (especially Engrave!) and is integrated into Inkscape.
Cheers - BillT
billt
Новичок
Сообщения: 8
Зарегистрирован: 21 окт 2013, 18:11
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение billt »

The drag-knife process is detailed on an excellent video from DonekTools.com
http://www.youtube.com/watch?v=fOf_tCefl6Q#t=560

Drag-Knife Tool Variables - for creation of a new tool item in Gcodetools:
KnifeOffset: distance of the knife tip from the machine centerline - this is equivalent to the "wheelbase" of a bicycle for calculations between front and rear wheels.
CutDepth: this would be set to the material thickness to be cut, or possibly slightly larger if using a spring-loaded tool or cutting through the material into a waste board.
RetractDepth: a smaller depth used for retract/swivel move - tool retracts during swivel moves to reduce "mangling" of the corners - note the tool tip must remain in the material during swivels to orient it toward the next cut path since the knife is unpowered.
SwivelAngle: if the angle between two segments is larger than this angle, the tool retracts between segments - prevents "retract" move for shallow angles where a retract is not really necessary.
Feed: cutting speed
PenetrationFeed: speed for Z moves
SwivelFeed: speed for swivel moves

Drag-Knife Path Start Point:
Cutting will work either CW or CCW, however the start point location should be specified either manually or programmatically. The reason is that the knife is manually positioned toward the X-direction prior to the first cut, and if the starting point was at the bottom of a circle (6:00) with cut direction CW, the tool would need to swivel a full 180 degrees to start the first cut, and again a full 180 degrees at the end of the cut to position the tool to +X for the next path. This is an excessive move and could result in damage to the material at this point. An ideal start/end point of a circle would be the top of the circle (12:00) for CW or the bottom of the circle (6:00) and CCW.

Pseudocode for Start Point (SP) and Cut Direction (CD):
HUV = Horizontal Unit Vector = (0,0),(1,0)
Sequence through all segments in CCW direction
Check angle of tangents between P1 to HUV, and P2 to Huv
If angle P1 to HUV = 0, then set SP = P1 and set CD = CCW
If angle P2 to HUV = 0, then set SP = P2 and set CD = CCW
Repeat above sequence in CW direction and set CD = CW
Check curved segments, if curve has a point with slope = 0, set SP to this point (I can detail this later)
If no angles = 0, then select the smallest angle from previous checks and set SP and CD

Pseudocode for Generating Cut Path:
Sequence through each path segment in the direction set by CD
Calculate points C1 and C2 and Sweep based on "Bicycle Wheel" of original path.
If First Segment:
Place Point at SP+(Offset,0) @RetractDepth
Swivel Path to tangent of First Segment @SwivelFeed
Place Point C1 @CutDepth

Elif SwivelAngle >= Angle from previous segment:
Place Point C1 @CutDepth

Else:
Swivel from Previous C2 to C1 @RetractDepth
C1 @CutDepth

If Last Segment:
Place Point C2 @CutDepth
C2 @RetractDepth
Swivel to Horizontal

Else:
Place Point C2 @CutDepth


Curved Path Calculations:
These are fairly simple, and are based on the formulas provided on the "Bicycle Wheel" article link. Knowing the path that the knife must follow (rear wheel) we want to calculate the path of the front wheel (machine). Two factors added to the calculation account for the Offset distance and a sign for the direction.

For example, the CamBam script lines for this ended up being:
C2X = P2X+Offset/((1+(V2.Y/V2.X)**2)**.5)*Math.Sign(V2.X)
C2Y = P2Y+(Offset*V2.Y/V2.X)/((1+(V2.Y/V2.X)**2)**.5)*Math.Sign(V2.X)


As you see, pretty straightforward.
Most of the work would be to change the curve calculations from the CamBam "Bulge" to the Gcodetools Biarc segments (3 points?)

Cheers - BillT
Atrain
Новичок
Сообщения: 1
Зарегистрирован: 06 ноя 2013, 09:53
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Atrain »

Hi Nick, awesome tool!

We use gcodetools at our hackerspace (Hacklab.to) to generate gcode for our laser cutter. I've created a new mode for the area tool to allow for a simpler path (scans back and forth across in one direction) as this makes a huge quality difference when rastering images. The patch is attached, would be hugely appreciated if you considered adding this to the next version!

Compare the artifacts created with the "zig-zag" method (right) vs scan (left)
Scan_vs_zigzag.jpg (13595 просмотров) <a class='original' href='./download/file.php?id=20566&mode=view' target=_blank>Загрузить оригинал (743.71 КБ)</a>
Вложения
gcodetools-area-scan.zip
Gcodetools changes for scanned path
(73.77 КБ) 747 скачиваний
Ответить

Вернуться в «English forum»