Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\begin{document}
\psset{unit=0.08cm}
\begin{pspicture}(45,150)
\pspolygon(0,0)(1.147,8)(43.853,8)(45,0)
\pspolygon(2.147,8)(22.5,150)(42.853,8)
\pspolygon(3.147,8)(5.727,26)(39.273,26)(41.853,8)
\pspolygon(5.870,27)(8.450,45)(36.550,45)(39.130,27)
\pspolygon(8.593,46)(11.173,64)(33.827,64)(36.407,46)
\pspolygon(11.317,65)(13.897,83)(31.103,83)(33.683,65)
\pspolygon(14.040,84)(16.620,102)(28.38,102)(30.96,84)
\multido{\i=17+19}{5}{\pscircle(22.5,\i){1.5}}
\end{pspicture}
\end{document}
Output
Question
I do have the desired output but the coordiates are calculated manually using the following criteria for the chest of drawers:
- Height: 150
- Width: 45
- Height of base: 8
- Height of drawer: 18
- Distance between two consecutive drawers: 1
I would like to draw it without having to calculate the coordiates manually. How do I do that?
:)