This is a minimal workable code of my code
\documentclass{article}
\usepackage{pstricks-add,pst-plot}
\usepackage[paperheight=16cm,paperwidth=21cm,margin=0pt]{geometry}
\pagestyle{empty}
\def\prism{\pspolygon[](0.62,0.62)(4.62,0.62)(4,0)(0,0)} % prism
\begin{document}
\psset{algebraic,xunit=1cm,yunit=1cm}
\noindent
\begin{pspicture}(0,0)(21,16)
\uput[r](0.85,1.2){
\rput(8,10){\psrotate(0,0){0}{\prism}}
}
\end{pspicture}
\end{document}
As you can see, I'm defining a pspolygon before the \begin{document}
and then I'm calling it inside the pspicture
with a rput
command. This allows me to draw the polygon only once and then use it as many times as I want in the picture. I will have to place several of them in my code, some rotated, some translated and the way my code is now I can do it without problem.
The problem is that I want some of the polygons to be larger than others. How can I rescale an object like this \prism
inside the pspicture
? If, for example, I would like the polygon to be half its size, I'd like a command like
\rput[scale=0.5](8,10){\psrotate(0,0){0}{\prism}}
Can you help me with this?
Thank you.