Union in SVG

Discuss SVG code, accessible via the XML Editor.
adobeas3
Posts: 4
Joined: Tue Jan 27, 2015 5:51 am

Union in SVG

Postby adobeas3 » Tue Jan 27, 2015 6:10 am

Hello,
I am trying to convert svg to one shape(path) by using Union command but Inkscape tells me that one of objects is not a path
When I am trying to convert object to path it tells me that No objects to convert to path in the selection.
http://screencast.com/t/SXo1gaFsy

Please let me know if there is a solution for converting all elements in svg to one path.
in the attached svg I want to get a rounded rectangle path after the union (this is just an example, will need to process more icons using union command later).

Thanks in advance
Attachments
icon-8.svg
(11.53 KiB) Downloaded 261 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Union in SVG

Postby Lazur » Tue Jan 27, 2015 6:56 am

Hi.


You did use a weird cloning on your objects, preventing them from converting to anything.
But I have no idea how you want all the elements to be one path.
Attachments
icon-8III.svg
(24.13 KiB) Downloaded 257 times

adobeas3
Posts: 4
Joined: Tue Jan 27, 2015 5:51 am

Re: Union in SVG

Postby adobeas3 » Tue Jan 27, 2015 7:38 am

Here is how Illustrator does it: http://screencast.com/t/y8kIOmexZol
I want to do the same in Inkscape because it can be called from command line.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Union in SVG

Postby Lazur » Tue Jan 27, 2015 7:43 am

You can do that with my previous attachment, but on what end?
Wouldn't deleting all objects except the one at the bottom result in the same thing?

adobeas3
Posts: 4
Joined: Tue Jan 27, 2015 5:51 am

Re: Union in SVG

Postby adobeas3 » Tue Jan 27, 2015 7:55 am

I need to process 10 000+ icons. The one that I have uploaded is just an example.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Union in SVG

Postby Lazur » Tue Jan 27, 2015 8:06 am

Knowing appstore icons are processed automatically to that shape, and gloss is added automatically I cannot see a reason why to do such horrid amount of work.
Like, boolean operations -the union- have some rounding errors too.

And if those icons all have such overcomplicated structure as in the example, it's almost (if not) impossible from command line.

adobeas3
Posts: 4
Joined: Tue Jan 27, 2015 5:51 am

Re: Union in SVG

Postby adobeas3 » Tue Jan 27, 2015 8:22 am

Can you please tell me what operations have you done to make the icon-8III.svg?

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Union in SVG

Postby Lazur » Tue Jan 27, 2015 8:36 am

Released clone links (Shift+Alt+D) on all objects except the text, and ungrouped (Ctrl+Shift+G) them.
Unset masking on the text object, ungrouped it twice, released clone link, ungrouped it again.
Converted object to path, ungrouped character, merged double nodes with the node tool and adjusted size and position manually after; wasn't sure how the original supposed to look, even though if it's for an union, it doesn't matter.


Return to “SVG / XML Code”