%&latex
\documentclass[12pt]{article}
\usepackage{pstcol,pst-vue3d,pst-grad,multido}
\usepackage[a4paper]{geometry}
\usepackage[T1]{fontenc}
\usepackage[ansinew]{inputenc}%
% Mluque5130@aol.com
% les couleurs
\definecolor{Beige} {rgb}{0.96,0.96,0.86}
\definecolor{GrisClair} {rgb}{0.8,0.8,0.8}
\definecolor{GrisTresClair} {rgb}{0.9,0.9,0.9}
\definecolor{OrangeTresPale}{cmyk}{0,0.1,0.3,0}
\definecolor{OrangePale}{cmyk}{0,0.2,0.4,0}
\definecolor{BleuClair}{cmyk}{0.2,0,0,0}
\definecolor{LightBlue}{rgb}{.68,.85,.9}
\definecolor{DarkGreen}{rgb}{0,.85,0}
\definecolor{Copper}{cmyk}{0,0.9,0.9,0.2}

\newcommand\axeOZ{%
\PointThreeD(0,0,5){O}
\PointThreeD(0,0,25){Z}
\PointThreeD(0,0,12.5){Z'}
{\psset{linecolor=red,linestyle=dashed}
\psline(O)(Z)
\uput[0](Z){Z}}}
\newcommand\tapis{
\PointThreeD(-20,-20,-5){P1}
\PointThreeD(20,-20,-5){P2}
\PointThreeD(20,20,-5){P3}
\PointThreeD(-20,20,-5){P4}
\pspolygon*[linecolor=green](P1)(P2)(P3)(P4)
\multido{\iX=-20+10}{5}{%
\PointThreeD(\iX,-20,-5){X1}
\PointThreeD(\iX,20,-5){X2}
\psline[linecolor=black](X1)(X2)}
\multido{\iY=-20+10}{5}{%
\PointThreeD(-20,\iY,-5){Y1}
\PointThreeD(20,\iY,-5){Y2}
\psline[linecolor=black](Y1)(Y2)}}
%
\def\Plans{%
% les plans de référence
% plan de front OYZ
{\psset{normaleLongitude=180,%
                normaleLatitude=0,%
                Xorigine=0,%
                Yorigine=0,%
                Zorigine=0}
\QuadrillageThreeD[linecolor=blue,linewidth=0.2mm,grille=10,%
                  Ymin=-50,Ymax=50,Xmax=50,Xmin=-50]}
% plan vertical OXZ
{\psset{normaleLongitude=90,%
                normaleLatitude=0,%
                Xorigine=0,%
                Yorigine=0,%
                Zorigine=0}
\QuadrillageThreeD[linecolor=red,linewidth=0.2mm,grille=10,%
                  Ymin=-50,Ymax=50,Xmax=50,Xmin=-50]}
% plan horizontal OXY
{\psset{normaleLongitude=0,%
                normaleLatitude=90,%
                Xorigine=0,%
                Yorigine=0,%
                Zorigine=0}
\QuadrillageThreeD[linecolor=green,linewidth=0.2mm,grille=10,%
                  Ymin=-50,Ymax=50,Xmax=50,Xmin=-50]}
\PointThreeD(0,0,0){O}
\PointThreeD(0,0,100){Z}
\PointThreeD(100,0,0){X}
\PointThreeD(0,100,0){Y}
{\psset{linestyle=dashed}
\psline[linecolor=blue](O)(Z)
\psline[linecolor=red](O)(X)
\psline[linecolor=green](O)(Y)}
\uput[0](Z){Z}
\uput[0](X){X}
\uput[0](Y){Y}}
\pagestyle{empty}
\parindent0pt
\begin{document}
\input{figN.tex}
\end{document}
