\documentclass{article} \usepackage{pst-solides3d,pst-node,pst-plot,multido,url} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} \usepackage{colortbl} \usepackage{array} \usepackage[a4paper,bottom=2.5cm,top=2cm]{geometry} %%\usepackage[frenchle]{babel} \makeatletter \pagestyle{empty} %% \title{\texttt{pst-solides3d} :\\ %% Test 1} %% \date{\today } \begin{document} %\maketitle %\psset{lightsrc=10 20 30,viewpoint=50 20 30 rtp2xyz} %\psset{viewpoint=50 20 30 rtp2xyz} %\section {Coupe de pyramide par des plans parallèles} \begin{center} %\psset{unit=0.75} \psset{viewpoint=50 -20 30 rtp2xyz,Decran=50} \begin{pspicture*}(-5,-4)(6,9) \psSolid[object=grille, base=-5 5 -5 5, linecolor=gray] %% create the pyramid with base area in xy-plane \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] }, %% %% to create your pyramid, uncomment follow lines : %% num=all, %% show=all, action=draw, intersectiontype=0, intersectionplan={ [0 0 1 -1] [0 0 1 -2] }, intersectionlinewidth=1 2, intersectioncolor=(bleu) (rouge), ] \end{pspicture*} \end{center} \end{document}