Straight line does not divide the rectangle

Post questions on how to use or achieve an effect in Inkscape.
Ian

Straight line does not divide the rectangle

Postby Ian » Wed Nov 07, 2007 4:21 am

I am drawing a rectangle and a straight line across it (using pencil or pen). Then I select them and use Path->Divide and both shapes disappear while when I draw curved line instead of straight, rectangle divides as I expected. Why is that?

Here is a picture if I did not explain clearly:
Image


Sorry, if it is a stupid question, but I am new to Inkscape and I could not find an answer in manual. Please be understanding.

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: Straight line does not divide the rectangle

Postby heathenx » Wed Nov 07, 2007 5:04 am

That's a good question. I would like to know the answer too. In the meantime you'll have to use the Path>Cut Path option and then re-set the fill (as your items will become transparent).

User avatar
hash
Posts: 30
Joined: Thu Jun 14, 2007 12:34 am
Location: Poland
Contact:

Re: Straight line does not divide the rectangle

Postby hash » Wed Nov 07, 2007 5:19 am

try to give fill and stroke to the both and experiment with closed and opened paths,
if you select both nodes with :tool_node: and close them with "Join two selected end nodes with a path segment.", then do Path->Divide and it will give you effect you want. :D

User avatar
heathenx
Posts: 388
Joined: Thu Jun 07, 2007 11:51 pm
Location: USA
Contact:

Re: Straight line does not divide the rectangle

Postby heathenx » Wed Nov 07, 2007 5:40 am

@hash

joining both end nodes is a nice little trick. i actually like that better since you don't have to re-select the fills with Cut Path. nice tip. ;)


Return to “Help with using Inkscape”