\documentclass[a4paper]{article}
\usepackage{pst-solides3d}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\pagestyle{empty}
\date{8 septembre 2\,006}
\author{JPV \& ML}

\title{test cone}

\begin{document}
\maketitle
\begin{enumerate}
  \item couleur d'une face + définition utilisateur du maillage
\end{enumerate}

%% avec mode = 0
\begin{center}
%%
\psset{unit=0.5}
%
\begin{pspicture}(-5,-5)(5,5)
\psframe(-5,-5)(5,5)
\psset{Decran=20}
\psset{acolor=cyan,bcolor=red}
\psSolid[
   typedrawsolid=solid*,
   fcol=1 (OliveGreen) 0 (acolor) 4 (bcolor),
   object=cube,
   RotZ=30
](0,0,0)
\end{pspicture}
%%
\begin{pspicture}(-5,-5)(5,5)
\psframe(-5,-5)(5,5)
\psset{Decran=20}
\psset{acolor=cyan,bcolor=red}
\psSolid[
   typedrawsolid=solid*,
   fcol=0 (OliveGreen) 2 (acolor) 3 (bcolor),
   object=cylindre,
   ngrid=10 10,
   RotZ=30
](0,0,0)
\end{pspicture}
%%
\end{center}

\begin{center}
%%
\psset{unit=0.5}
%%
\begin{pspicture}(-5,-5)(5,5)
\psframe(-5,-5)(5,5)
\psset{Decran=20}
\psset{acolor=cyan,bcolor=red}
\psSolid[
   typedrawsolid=solid*,
   fcol=0 (OliveGreen) 2 (acolor) 3 (bcolor),
   object=sphere,
   ngrid=10 10,
   RotZ=30
](0,0,0)
\end{pspicture}
%%
%%
\begin{pspicture}(-5,-5)(5,5)
\psframe(-5,-5)(5,5)
\psset{Decran=20}
\psset{acolor=cyan,bcolor=red}
\psSolid[
   typedrawsolid=solid*,
   fcol=0 (OliveGreen) 2 (acolor) 3 (bcolor),
   object=sphere,
   ngrid=4 4,
   RotZ=30
](0,0,0)
\end{pspicture}
%%
\end{center}

\end{document}
