\chapter{Dessin 3D}

\begin{center}
\captionof{figure}{Point col en $M(0,0,0)$ ($z=x^2-y^2$)}\label{pointcol}\par
\begin{luadraw}{name=point_col}
local ld = luadraw
local pt3d = ld.pt3d
local Origin, vecI, vecJ, vecK, M = pt3d.Origin, pt3d.vecI, pt3d.vecJ, pt3d.vecK, pt3d.M

local g = ld.graph3d:new{window3d={-2,2,-2,2,-4,4}, window={-3.5,3,-5,5}, size={8,9,0}, viewdir={120,60}}
local S = ld.cartesian3d(function(u,v) return u^2-v^2 end, -2,2,-2,2,{20,20}) -- surface d'équation z=x^2-y^2
local Tx = g:Intersection3d(S, {Origin,vecI}) --intersection entre S et le plan yOz
local Ty = g:Intersection3d(S, {Origin,vecJ}) --intersection entre S et le plan xOz
g:Dboxaxes3d({grid=true,gridcolor="gray",fillcolor="LightGray",drawbox=true})
g:Dfacet(S,{mode=ld.mShadedOnly,color="ForestGreen"}) -- dessin de la surface
g:Dedges(Tx, {color="Crimson", hidden=true, width=8}) -- dessin de l'intersection avec yOz
g:Dedges(Ty, {color="Navy",hidden=true, width=8}) -- dessin de l'intersection avec xOz
g:Dpolyline3d( {M(2,0,4),M(-2,0,4),M(-2,0,-4)}, "Navy,line width=.8pt")
g:Dpolyline3d( {M(0,-2,4),M(0,2,4),M(0,2,-4)}, "Crimson,line width=.8pt")
g:Show()
\end{luadraw}
\end{center}



\input{body-fr/luadraw-doc3d-section-1-Introduction.tex}%
\input{body-fr/luadraw-doc3d-section-2-La-classe-pt3d.tex}%
\input{body-fr/luadraw-doc3d-section-3-Methodes-graphiques.tex}%
\input{body-fr/luadraw-doc3d-section-4-Solides-a-facettes.tex}%
\input{body-fr/luadraw-doc3d-section-5-La-methode-Dscene3d.tex}%
\input{body-fr/luadraw-doc3d-section-6-Constructions-geometriques.tex}%
\input{body-fr/luadraw-doc3d-section-7-Transformations-calcul-matriciel-fonctions-mathematiques.tex}%
\input{body-fr/luadraw-doc3d-section-8-Exemples-plus-pousses.tex}%
