vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.56k stars 532 forks source link

Solids union #1037

Open MARIOBASZ opened 5 years ago

MARIOBASZ commented 5 years ago

@Harvie, a small modification of your plugin difference allows you to join solids: 3 isolated shapes

image

to solid form image To join two circles I had to use your linearize t would be fantastic if you can improve your excellent even in development difference:

Example2 It works even if you must perform two external union paths:

image

image

When wanting to unite the 3 shapes, in a single operation there is an error in the path between the second and the third silhouette. image

The problem happens when you want to join the third silhouette, starting from the previous one that has two separate contours: there is an error in the path of union, and generates an extra figure/block
(also depends on the order of the shapes). Possible solution? (My goal is for pcb tracks)

MARIOBASZ commented 5 years ago

I do not know parts of the operation (because it generates two blocks at the exit? But luckily it does!). Solved segment error image

MARIOBASZ commented 5 years ago

There is still conflict if the two figures come together in more than one place (like shapes 1 and 2) according to the cutting direction of cut

MARIOBASZ commented 5 years ago

I have advanced a lot. The union of the forms is done sequentially according to the order of blocks chosen. Someone interested in improving this complement in development, mainly in specific cases such as edges of matching shapes, shapes that do not join sequentially but skip if (1-2 = false but 1-3 = true and 2-3 = true: 1- 2 -3 must be part of the union, at this moment block 1 is isolated. Anyone interested in advancing in this?