gotcha

Author Topic: Another dividing way  (Read 1264 times)

January 26, 2018, 03:53:16 AM
Read 1264 times

stellatus

  • Jr. Member

  • Offline
  • ***

  • 11
How in automatic way to divide objects superimposed each other, so as to keep everything what is visible and remove everything what is hided?
In Inkscape look what I mean:
http://wolniludzie.com/inkscape/sp%C5%82aszczenie%20grupy%20obiekt%C3%B3w.svg
  • 0.92
  • Windows 8

January 26, 2018, 04:38:23 AM
Reply #1

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
There is no such real option as per se. Or if you think about it there cannot really be such a substitute in every case nor would it be fitting for every need.

What if those objects are drawn with the 3D box tool? What should remain after the cut? Clearly they couldn't work as boxes after.

Also, if objects would be cut, the rendering gap issue would show in between them.

Having said that, you can achieve a similar result by creating a large raster image double (Ctrl+A to select all, Alt+B for the bitmap copy) and trace bitmap that image.
This won't place nodes exactly where they were nor can distinguish strokes from filled areas. Colour palette is limited to 256 colours and gradients nor transparency would work. Frankly it's a sloppy workaround but may suit your need.
« Last Edit: January 26, 2018, 09:41:32 AM by Lazur »

January 26, 2018, 05:17:09 AM
Reply #2

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
It looks like you found a way to delete the overlap, in the SVG image you provided.  Did you use Difference?  Are you asking how to do it all at once?

In that particular example, I don't know of any way to do it all at once.  It can only be one operation at a time.....as far as I know.
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

January 27, 2018, 04:13:39 AM
Reply #3

stellatus

  • Jr. Member

  • Offline
  • ***

  • 11
Quote (selected)
What should remain after the cut?
Only what we see.

Quote (selected)
Also, if objects would be cut, the rendering gap issue would show in between them.
Why?

Quote (selected)
Having said that, you can achieve a similar result by creating a large raster image double (Ctrl+A to select all, Alt+B for the bitmap copy) and trace bitmap that image.
This won't place nodes exactly where they were nor can distinguish strokes from filled areas. Colour palette is limited to 256 colours and gradients nor transparency would work. Frankly it's a sloppy workaround but may suit your need.
No, I reject this solution. You said very good: "it's a sloppy workaround".

Quote (selected)
It looks like you found a way to delete the overlap, in the SVG image you provided.  Did you use Difference?  Are you asking how to do it all at once?
Yes, I used Difference and I would like do it all at once.

  • 0.92
  • Windows 8

January 27, 2018, 05:23:24 AM
Reply #4

Lazur

  • IC Mentor

  • Offline
  • ******
  • Inkscape Filters Wizard

  • 1,154
  • Gender
    Male

    Male
Also, if objects would be cut, the rendering gap issue would show in between them.
Why?

Because semi-transparent pixels are not rendered in an "additive alpha" mode. It's a conceptual problem, not just inkscape-specific.
Here is a topic dedicated to the issue.

January 28, 2018, 10:40:47 AM
Reply #5

brynn

  • Administrator

  • Offline
  • ******

  • 3,941
  • Gender
    Female

    Female
    • Inkscape Community
Yes, I used Difference and I would like do it all at once.

In this case, it's not possible to do it all at once.

For example, if you have one object, in one position, which you want to use to cut through many other objects, then yes, there is a way to do it....more or less, all at once.  But in this case, even though all the ellipses are identical, the one which will be used for cutting through other different objects needs to be moved into different position each time.

In general, those path operations (booleans) can only work with 2 selected objects.  Union can be done with more than one selected object.  And sometimes Intersection can be done with more than one selected object.  But all the rest, only 2 objects....except....

We have a relatively new extension which will allow multiple boolean operations, when the situation is one object in one position, which needs to difference, division or cut path, through many other objects.  For these, you still have to wait for Inkscape to do them one at a time.  But at least you don't have to keep duplicating and commanding for each pair.  Here's a link to that extension:  https://inkscape.org/en/~Moini/%E2%98%85multi-bool-extension-cut-difference-division 

(Actually there's an upgrade for that, but I'm not sure it's working yet....  https://gitlab.com/su-v/inx-pathops  Someone recently tried to use it but got a traceback error with no results.  They gave up and went a different route.  But if you wanted to try it, I'm sure the authors would welcome your input, by reporting any errors, providing test file, etc.)
« Last Edit: January 28, 2018, 01:18:33 PM by brynn »
  • Inkscape version 0.92.3
  • Windows 7 Pro, 64-bit
Inkscape Tutorials (and manuals)                      Inkscape Community Gallery                        Inkscape for Cutting Design                     



"Be ashamed to die until you have won some victory for humanity" - Horace Mann                       

January 28, 2018, 12:23:25 PM
Reply #6

Moini

  • IC Mentor

  • Offline
  • ******

  • 1,568
    • VektorRascheln
The second extension is working, and it's better, as is said in the description of the first one.