NEWS
LinuxCNC 2.5.2 Release
There are no translations available.

LinuxCNC 2.5.2 Update Released (changelog).
 
LinuxCNC 2.5.1 Release
There are no translations available.

LinuxCNC 2.5.1 Update Released (changelog). If the Package Manager does not prompt you to upgrade see this page.

 
LinuxCNC 2.5.0 Release
There are no translations available.

New major release (changelog). See the instructions to update your system from EMC 2.4 to LinuxCNC 2.5.
 
Home Forum Using LinuxCNC CAD CAM Routing bitmap contour.

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Routing bitmap contour.

Routing bitmap contour. 04 Giu 2012 01:18 #20632

  • eslavko
  • eslavko's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 113
  • Karma: 1
Hello...

Does someone have idea how to solve this problem?
For example (I just grabbed 1'st cartoon from the net) I wan't to route contour from bitmap image.
I tried to trace image in inkscape. It's make nice path but it does all internals too (eys for example)
So I try to erase all that and leave just outer contour and then does bitmap trace. Now I have dxf and I convert it to Gcode with F engrave. I got correct path and machine run ok with that.
But the result is bad as cutter compensation isn't on. So I insert G41.1 D2 in the proper place in beginning of file. And got error few lines lower (something with convex shape problem) and can't run program at all.

So Is there some way to do this? (prefered are free software)
To convert image just to outline....
To convert that outline to Gcode and apply cutter compensation!
For compensation I prefer to have more material where cutting is to narow to be done with current tool. (for example narow space betwen leg should be cutted as one piece.

Any idea?
The administrator has disabled public write access.

Re:Routing bitmap contour. 04 Giu 2012 03:03 #20634

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 679
  • Thank you received: 30
  • Karma: 53
you have the right idea .. but once you have the dxf file , you will need to check the outline that it is complete with no broken lines and repair as required using draftsight for example
copying the raster to vector is only part of the process , it does not produce perfect results everytime unfortunately .

while you have the outline in dxf , try connecting the lines to a polyline first and use that to produce the gcode , this gives a cleaner line , and yes you may need to add additional gcode functions to the file afterwards.. theirs no way of producing the code fully automaticly , but you could modify the post processor later on to add others regularly needed .

whilst a commercial program vectric products are good vcarve .. cut2d etc ..
The administrator has disabled public write access.

Re:Routing bitmap contour. 04 Giu 2012 03:48 #20636

  • Rick G
  • Rick G's Avatar
  • OFFLINE
  • Moderator
  • Posts: 1069
  • Thank you received: 15
  • Karma: 80
What I have done in the past is after you have created the path in your cad program (without compensation) combine that path to one continious path and have your cad program draw a line parallel by 1/2 the tool diameter to the existing path then erase the first path.

Rick G
The administrator has disabled public write access.

Re:Routing bitmap contour. 04 Giu 2012 04:21 #20640

  • eslavko
  • eslavko's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 113
  • Karma: 1
For now I see that best result is if I change image to B/W and fill all internals. After that DXF seems nice.
But still the cutter tool offset problem is present...

(can be done manualy but it isn't only one part....) This attachment is hidden for guests. Please log in or register to see it.
Attachments:
  • Attachment This attachment is hidden for guests. Please log in or register to see it.
The administrator has disabled public write access.

Re:Routing bitmap contour. 04 Giu 2012 09:23 #20649

  • cncbasher
  • cncbasher's Avatar
  • OFFLINE
  • Moderator
  • Posts: 679
  • Thank you received: 30
  • Karma: 53
as you can see the image has jagged edges , this needs to be clean line , if you zoom in on the dxf you can see the zagged lines and also a double image line etc , i find it best to redraw or trace in some cases to a new layer in draftsight , once the drawing is clean adding tool offset if required ( i sometimes then just scale up the dxf by the offset required ) gives you a better file to use .

i have yet to find software that actualy does this better than a Human eye ,
The administrator has disabled public write access.

Re:Routing bitmap contour. 04 Giu 2012 22:14 #20658

  • eslavko
  • eslavko's Avatar
  • OFFLINE
  • Expert Boarder
  • Posts: 113
  • Karma: 1
Now I managed how to do it.

1. Make image as black face (B/W image) in Gimp or similar
2. Import to Inkscape
3. Trace bitmap
4. Delete bitmap - leave traced image
5. Zoom to border and set grid or guide to cutter radius
6. Do multiple Outset (need step small enougth) and observe vhere is enougth.
7. Use GcodeTools Inkscape extension - Path_to_Gcode
That's all....

Step 6 is little tricky. I can't set proper step to do it in one Outset operation. So I set that step to small value and observe result when is right amount. It's easy if the grid is set to the cutter radius and image aligned to grid. Just apply Outset to reach next grid line.
I got good result with that.
The administrator has disabled public write access.
  • Page:
  • 1
Moderators: Dan Falck
Time to create page: 1.001 seconds
Powered by Kunena Forum
© 2013 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.