Fit a trapezoid into a rectangle

Post questions on how to use or achieve an effect in Inkscape.
Ggasse
Posts: 2
Joined: Tue Feb 26, 2013 5:10 am

Fit a trapezoid into a rectangle

Postby Ggasse » Tue Feb 26, 2013 5:44 am

Hi

I would like to fit a trapezoid (and everything inside it) into a rectangle.

My first guess was to use the perspective effect. With the perspective effect, I can easily fit a rectangle into a trapezoid, but when i try to go back the other way (trapezoid to rectangle) the perspective effect doesn't quite do the job. It doesn't adjust all four sides to the rectangle. It only adjust the base line and the height of the trapezoid. (see attach file for visual example)

I searched the web for solutions but didn't find anything related to this situation.

Is there a way to make the perspective affect to work properly or is there another tool i could use to acheive this?

Thanks for your help!

Ggasse
Attachments
trapezoid&rectangle.svg
(10.04 KiB) Downloaded 201 times

User avatar
druban
Posts: 1917
Joined: Fri Nov 20, 2009 10:48 pm

Re: Fit a trapezoid into a rectangle

Postby druban » Tue Feb 26, 2013 6:38 pm

Hi. I looked at your file. I did not see any trapezoids in there. :P There were some quadrilaterals in which NO sides were parallel. But that would not be a trapezoid, just a quadrilateral. Maybe it's an European/English thing? Trapezium?Trapezoid? :?
I'm being pedantic here, perhaps, but the point I am getting to is that although it is possible to do what you want to do in Inkscape, it requires some analysis, and gets progressively more difficult with each increasing asymmetry and aparallelism(and also harder to explain, as you might imagine).
Being lazy I will take the simplest case - a quadrilateral with parallel top and bottom sides, and possessing horizontal symmetry - and illustrate how to transform it. Wth some brainsweat you should be able to exend the method to any degree of asymmetry...

rect5714sm.png
rect5714sm.png (212.19 KiB) Viewed 1855 times
Your mind is what you think it is.

Ggasse
Posts: 2
Joined: Tue Feb 26, 2013 5:10 am

Re: Fit a trapezoid into a rectangle

Postby Ggasse » Tue Feb 26, 2013 11:59 pm

Thanks a lot!

As for the trapezoid vs quadrilateral thing I'm actually french, so it is probably a wrong translation from me :)

I'll read through your explanation and try to figure it out.


Return to “Help with using Inkscape”