how to make a rectangle with oval opening inside?

Post questions on how to use or achieve an effect in Inkscape.
glasslady
Posts: 78
Joined: Wed Jun 26, 2013 12:34 am

how to make a rectangle with oval opening inside?

Postby glasslady » Sat Jan 03, 2015 10:28 am

I'm trying to make a "frame" with reclangular outside and oval opening in the middle, but can' figure out or find info about how to do this. then, the shape is to be filled, with the oval interior with nothing in it - just a blank opening. Anyone?

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: how to make a rectangle with oval opening inside?

Postby tylerdurden » Sat Jan 03, 2015 10:56 am

Create both shapes in place, select both objects, Menu: Path>Combine. (Ctrl+K)
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

glasslady
Posts: 78
Joined: Wed Jun 26, 2013 12:34 am

Re: how to make a rectangle with oval opening inside?

Postby glasslady » Sat Jan 03, 2015 11:07 am

Ok - I tried as you suggested. The shapes combined, however, when I tried fill everything filled, even the center oval that needs to be empty (transparent?). ??

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: how to make a rectangle with oval opening inside?

Postby tylerdurden » Sat Jan 03, 2015 11:12 am

Works here...

SVG Image
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: how to make a rectangle with oval opening inside?

Postby tylerdurden » Sat Jan 03, 2015 11:14 am

When you say "tried fill", did you use the fill/stroke menu, or...?
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: how to make a rectangle with oval opening inside?

Postby tylerdurden » Sat Jan 03, 2015 11:18 am

Ensure fill-rule is set to Even-Odd...
Attachments
Fill-Rule1.jpg
Fill-Rule1.jpg (89.24 KiB) Viewed 2839 times
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

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

Re: how to make a rectangle with oval opening inside?

Postby Lazur » Sat Jan 03, 2015 11:18 am

Keep in mind the fill rule and the path's direction.

Probably if you flip the rectangle first (h) and combine it with the ellipse right after, it "corrects" the rendering.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: how to make a rectangle with oval opening inside?

Postby Espermaschine » Sat Jan 03, 2015 11:27 am

you guys are way too quick :lol:
i was just uploading a screenshot about the fill rule, when there were already two replies and a screenshot

also: whats wrong with doing a Difference ?

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

Re: how to make a rectangle with oval opening inside?

Postby Lazur » Sat Jan 03, 2015 11:33 am

It is a boolean operation based on anti-aliasing; at least in the current stabile it produces about 0,2 px inaccuracy of the re-rendering, while combining preserves the original shapes of the paths.

(Though it doesn't preserve the "shapes" themselves. Some cases clipping or masking would be a better solution.
In this for example.)

glasslady
Posts: 78
Joined: Wed Jun 26, 2013 12:34 am

Re: how to make a rectangle with oval opening inside?

Postby glasslady » Sat Jan 03, 2015 11:39 am

The fill rule took care of it. Thanks. btw - I do try to check the manual first, but it is hard to search for something when you don't already know the name of the feature.

User avatar
Espermaschine
Posts: 892
Joined: Thu Jun 05, 2014 9:10 pm

Re: how to make a rectangle with oval opening inside?

Postby Espermaschine » Sat Jan 03, 2015 11:51 am

Lazur URH wrote:It is a boolean operation based on anti-aliasing

i see
thanks for the info


Return to “Help with using Inkscape”