Graphics, Figures & Tables ⇒ pst-solides3d | Drawing a Pyramid
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
pst-solides3d | Drawing a Pyramid
Consider the pst-solides3d manual. I would like to draw the square pyramid in the top left corner of page 127 with just the lowest (blue) intersecting plane.
I simply cannot get the example to work.
If one would be so kind as to show my the complete LaTeX code that produces the pyramid mentioned, I would be most grateful.
Thank you in advance!
-- Zapp Brannigan, Futurama (season 1, episode 4)
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
pst-solides3d | Drawing a Pyramid
What does that exactly mean? Warnings or even error messages? Be more precise in your problem description. Make sure that the version of the manual where you got this code from corresponds to the installed version of the package on your TeX system.svend_tveskaeg wrote:[…] I simply cannot get the example to work. […]
Thorsten
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Re: pst-solides3d | Drawing a Pyramid
I have an updated TeX Live installtion.
I hope this explanation suffices.
-- Zapp Brannigan, Futurama (season 1, episode 4)
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Re: pst-solides3d | Drawing a Pyramid
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
- Stefan Kottwitz
- Site Admin
- Posts: 10350
- Joined: Mon Mar 10, 2008 9:44 pm
pst-solides3d | Drawing a Pyramid
Code: Select all
\documentclass{article}
\usepackage{pst-solides3d}
\begin{document}
\psset{viewpoint=50 20 20 rtp2xyz, Decran=50}
\begin{pspicture*}(-5,-4)(6,9)
\psSolid[object=new,
sommets=
0 -2 0 %% 0
-2 0 0 %% 1
0 4 0 %% 2
4 0 0 %% 3
0 0 5, %% 4
faces={
[3 2 1 0]
[4 0 3]
[4 3 2]
[4 2 1]
[4 1 0]},
intersectiontype=0,
intersectionplan={[0 0 1 -1] [0 0 1 -2]},
intersectionlinewidth=1 2,
intersectioncolor=(bleu) (rouge),
plansepare={[0 0 1 -2]},
name=firstSlice,
action=draw]
\end{pspicture*}
\end{document}
Stefan
- svend_tveskaeg
- Posts: 478
- Joined: Sun Jul 12, 2009 5:31 am
Re: pst-solides3d | Drawing a Pyramid
Thanks for your help.
If I can get you to show me the code for the entire drawing except the red intersecting plan, I will much appreciate that.
Thank you in advance!
P.S. I know I should be able to modify your example in order to get it myself, but I still cannot figure out what code to copy from the manual.

-- Zapp Brannigan, Futurama (season 1, episode 4)