haiqiangwang / heekscad

Automatically exported from code.google.com/p/heekscad
Other
0 stars 0 forks source link

request for sorting/ordering sketch elements #136

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just finished programming a very large engraving job and ran into some
problems related to sketches. It would probably be a good thing to have
some more tools for ordering the elements in sketches in order to use them
with the cnc programming.
1. it would be good to be able to reverse the direction of individual
elements (arc and lines) in sketches as needed.
2. it would be good to be able to sort the individual elements (arcs and
lines) manually in sketches.

the reason that I think this is needed is that I just tried dealing with
some mirrored dxf entities out of Autocad2000 and it was pretty hard.

Thanks,
Dan

Original issue reported on code.google.com by ddfalck2...@yahoo.com on 6 May 2009 at 9:54

GoogleCodeExporter commented 9 years ago
A similar issue:

I tried to generate some text for engraving as well (using InkScape) and 
imported the resulting *.svg or *.dxf into HeeksCAD. Everything looked fine so 
far until I made a contour operation.
A closer inspection of the tool paths showed that not all lines/splines of 
certain characters are actually processed. Looking at the list of entities in 
the sketch shows, that the order of some lines and splines are mixed. I guess 
that prevents HeeksCNC from finding a closed path.

I wonder if HeeksCNC would correctly work, if I would reorder the entities in 
the sketch.

Guido

Original comment by g.mue...@gmail.com on 10 Jun 2010 at 7:44

Attachments:

GoogleCodeExporter commented 9 years ago
Guido,
  the Contour operation uses the OpenCascade libraries to traverse all of its graphics.  This means that the drawing tolerance is used to determine if one piece of graphics is connected to the next.  If it's not, the Contour operation raises up to clearance height and rapids to the location above the next element.

  I added the Sketch Simplification modules to help to repair some of the disconnections due to tolerance.  They have been useful for me but they don't appear to produce a very good result for this file.

  The only way I could get it to work was to change the option 'Drawing->Geometry Tolerance' to 0.001 and then select the sketch and 'reorder'.  This produces a 'clockwise' (and therefore closed) sketch which can then be used by the Contour operation.

  Thanks
  David

Original comment by David.Ni...@gmail.com on 10 Jun 2010 at 10:42

GoogleCodeExporter commented 9 years ago
I believe this is all now possible, now there is drag and drop in the objects 
window. Also, you can drop-down the "order" property of a sketch and choose 
"reverse"

Original comment by danhe...@gmail.com on 9 Dec 2010 at 11:57