我正在尝试表示多面体,但 GhostScript 似乎不允许我对立方体进行多次切片。具体来说,我尝试了以下操作:
\psset{unit=0.6cm,labelsep=20pt}
\psset{viewpoint=150 -110 10 rtp2xyz,Decran=120}
\begin{pspicture*}(-5,-1)(15,20)
\psset{solidmemory}
\psSolid[object=cube,action=none,a=10,plansepare={[1 1 1 -3]},name=A](5,5,5)
\psSolid[object=load,load=A0,plansepare{[1 1 0 -2]},action=none,name=B]
\psSolid[object=load,load=B,action=draw**]
\composeSolid
\axesIIID[axisnames={A,B,C}](0,0,0)(11,11,11)
\end{pspicture*}
上面的代码可以编译,但当然只显示第一次剪切的结果。如果我将最后\psSolid
一行替换为
\psSolid[object=load,load=B0,action=draw**]
然后 GhostScript 失败并给出以下错误:
Output written on dual_example.dvi (1 page, 36936 bytes).
SyncTeX written on dual_example.synctex.gz.
Transcript written on dual_example.log.
### /usr/texbin/dvips -R -Poutline -o /tmp/altpdflatex.14198-1361245018/dual_example.ps dual_example.dvi
This is dvips(k) 5.992 Copyright 2012 Radical Eye Software (www.radicaleye.com)
' TeX output 2013.02.18:1936' -> /tmp/altpdflatex.14198-1361245018/dual_example.ps
</usr/local/texlive/2012/texmf/dvips/base/tex.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pstricks/pstricks.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pstricks/pst-algparser.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pstricks/pst-tools.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pstricks/pst-dots.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pst-node/pst-node.pro>
</usr/local/texlive/2012/texmf-dist/dvips/pst-solides3d/pst-solides3d.pro>
</usr/local/texlive/2012/texmf/dvips/base/texps.pro>
</usr/local/texlive/2012/texmf/dvips/base/special.pro>
</usr/local/texlive/2012/texmf/dvips/base/color.pro>.
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx12.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi12.pfb>
</usr/local/texlive/2012/texmf-dist/fonts/type1/public/amsfonts/cm/cmr12.pfb>
[1]
### ps2pdf13 /tmp/altpdflatex.14198-1361245018/dual_example.ps /tmp/altpdflatex.14198-1361245018/dual_example.pdf
Error: /undefined in B0
Operand stack:
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1894 1 3 %oparray_pop 1893 1 3 %oparray_pop 1877 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval--
Dictionary stack:
--dict:1157/1684(ro)(G)-- --dict:0/20(G)-- --dict:113/200(L)-- --dict:751/1012(L)-- --dict:182/300(L)-- --dict:38/200(L)-- --dict:203/300(L)-- --dict:751/1012(L)--
Current allocation mode is local
Last OS error: 2
Current file position is 419337
GPL Ghostscript 9.05: Unrecoverable error, exit code 1
### FAILED to generate /tmp/altpdflatex.14198-1361245018/dual_example.pdf ()
谁能告诉我我做错了什么?