I created a white circle inside a black square. Pressed combine and the shape turned whole black.
Created the shape again and instead exported as png. Imported the png and pressed trace bitmap. Now I got what I wanted. A combined shape with an empty circle in the middle.
Is it possible to make this combined shape in a simpler way?
@Polygon That's what I understood, Polygon. I tought it was tore's problem and tried to explain him why his created shape was white.
@tore Now, I read again your post and see that the shape is full black instead of full white. I don't understand, to be honest. Maybe did you modify the fill color to black and the fill rule explains why everything is black : open fill and stroke menu, tab fill, the two heart shaped icons - choose the left one.
If I doesn't work, please send us a screenshot of your shape selected with node tool (to see if the circle appears) : use paperclip icon bottom left of reply window.
@tore : your #6 post (second screenshot) confirms it's a matter of fill rule. The result of path > combine inherits of the fill rule of the upper object (the circle). It's fill rule was set to non-zero : that means that if subpaths have the same orientation (clockwise in my example below), the object appears full black. To cure that, you can reverse one subpath or set the fill rule to evenodd.
To display path orientation (red arrows when using node tool), go to preferences > Tools > Node tool and enable Show Path direction on outlines (and Always show outlines).
I created a white circle inside a black square. Pressed combine and the shape turned whole black.
Created the shape again and instead exported as png. Imported the png and pressed trace bitmap. Now I got what I wanted. A combined shape with an empty circle in the middle.
Is it possible to make this combined shape in a simpler way?
Yes:
1. Draw square
2. Draw ellipse and go Path->Stroke to Path
3. Select both elements and go Path->Combine - adjust Fill color
When combining two objects, the results inherits of the style of the upper object : it's just white (as your circle), turn its fill to black.
You could also use difference : here the results inherits of the style of the lower object.
ThatΒ΄s why I added "adjust Fill color" as a last step.
@Polygon That's what I understood, Polygon. I tought it was tore's problem and tried to explain him why his created shape was white.
@tore Now, I read again your post and see that the shape is full black instead of full white. I don't understand, to be honest. Maybe did you modify the fill color to black and the fill rule explains why everything is black : open fill and stroke menu, tab fill, the two heart shaped icons - choose the left one.
If I doesn't work, please send us a screenshot of your shape selected with node tool (to see if the circle appears) : use paperclip icon bottom left of reply window.
Β
I created white circle on top of a black rectangle first (simple shapes). (White_circle_on_top_of_black_rectangle.PNG)
Path->combine (combine.PNG) => all white. Changed fill to black for visibility
Did undo till I got the first shapes and then File->Export. Created PNG file. Opened the PNG file and pressed trace bitmap (tracebitmap.PNG).
I am creating a file for cutting out a shape. Both versions will work for that but the latter one has a better visibility.
I just figured "Path->difference" made my day
And I thought this was your goal:
@tore : your #6 post (second screenshot) confirms it's a matter of fill rule. The result of path > combine inherits of the fill rule of the upper object (the circle). It's fill rule was set to
non-zero
: that means that if subpaths have the same orientation (clockwise in my example below), the object appears full black. To cure that, you can reverse one subpath or set the fill rule toevenodd
.To display path orientation (red arrows when using node tool), go to preferences > Tools > Node tool and enable
Show Path direction on outlines
(andAlways show outlines
).