我想在等距绘图纸上创建如下图形:
注意:忘记纸张顶部的图画吧;它只是我为了说明我想要的纸张类型而发现的东西。
在空白的等距纸上,我想绘制以下房屋的简单草图:
更新
谢谢赫伯特的回答,我创建了以下内容(这是从另一个角度看的房子):
\documentclass{article}
\usepackage{pstricks-add}
\begin{document}
\begin{figure}
\centering
\psset{linejoin = 2}
\SpecialCoor
\begin{pspicture*}(-0.5,-2.3)(10,8.5)
\pstVerb{gsave [0.8660254 0.5 0 1 0 -400] concat}
{\psset{linewidth = 0.3pt, linecolor = black!50}
\multido{\iA = 0+1}{25}{%
\psline(\iA,-4)(\iA,20)
\psline(!-5 \iA\space 10 sub)(!20 \iA\space 10 sub)
\rput(!0 \iA\space 15 sub){\psline(0,0)(!\iA\space abs dup add dup)}
}
}
\psset{linewidth = 2pt}
\pspolygon(8,2)(8,6)(11,9)(11,5)
\pspolygon(1,2)(1,6)(8,6)(8,2)
\pspolygon(1,6)(2.5,9.5)(9.5,9.5)(8,6)
\psline(11,9)(9.5,9.5)
\psset{linestyle = dashed}
\pspolygon(4,5)(4,9)(11,9)(11,5)
\pspolygon(1,6)(4,9)(4,5)(1,2)
\psline(4,9)(2.5,9.5)
\pstVerb{grestore}
\end{pspicture*}
\end{figure}
\end{document}
答案1
\documentclass{article}
\usepackage{pst-3dplot}
\begin{document}
\psset{coorType=1,Alpha=30}% type 1 for orhtogonal x-z-axes
\begin{pspicture}(-2,-3)(3,3)
\pstThreeDCoor[IIIDticks,zMax=6,yMax=1]
\pstThreeDLine(0,0,0)(3,0,0)(3,0,4)(0,0,4)(0,0,0)
\pstThreeDLine(3,0,4)(1.5,0,6)(0,0,4)
\end{pspicture}
\end{document}
等距线是平面上的简单线。但是,您可以使用变换矩阵并设置值,以便 2d 坐标系中的所有线都是等距的。
\documentclass{article}
\usepackage{pstricks,multido}\SpecialCoor
\begin{document}
\begin{figure}
\begin{pspicture*}(-0.5,-2)(11,10)
\pstVerb{ gsave [1 0.5 0 1 0 -400] concat }
{\psset{linewidth=0.3pt,linecolor=black!30}
\multido{\iA=-0+1,\iB=-10+1,\iC=-15+1}{25}{
\psline(\iA,-4)(\iA,20)
\psline(-5,\iB)(20,\iB)
\rput(0,\iC){\psline(0,0)(!\iA\space abs dup add dup )}}}
\psset{linewidth=2pt}
\pspolygon(0,0)(0,4)(3,4)(3,0)
\psline(0,4)(1.5,6)(3,4)
\psline(3,0)(10,7)(10,11)(3,4)% see isometric grid for the coordinates
\psline(1.5,6)(8.5,13)(10,11)
\pstVerb{grestore }
\end{pspicture*}
\caption{foo}
\end{figure}
\end{document}
查看 PostScript 文档以了解转换矩阵的含义。它与 PDF 中的相同。