1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE MAN SYSTEM "../../manrev.dtd">
4
<LANGUAGE>fr</LANGUAGE>
6
<TYPE>Scilab Function </TYPE>
7
<DATE>April 1993 </DATE>
8
<SHORT_DESCRIPTION name="geom3d"> projection 3D vers 2D apr�s une instruction de dessin 3D </SHORT_DESCRIPTION>
10
<CALLING_SEQUENCE_ITEM>[x,y]=geom3d(x1,y1,z1) </CALLING_SEQUENCE_ITEM>
15
<PARAM_NAME>x1,y1,z1 </PARAM_NAME>
18
: vecteur r�els de m�me taille (points 3D).
23
<PARAM_NAME>x,y </PARAM_NAME>
26
: vecteurs r�els de m�me taille que <VERB>x1</VERB>, <VERB>y1</VERB> et <VERB>z1</VERB>.
34
Apr�s l'utilisation d'une instruction de dessin 3D du type <VERB>plot3d</VERB>, <VERB>plot3d1</VERB>
35
ou <VERB>param3d</VERB>, <VERB>geom3d</VERB> permet de faire la correspondance
36
entre un point de l'espace 3D <VERB>(x1(i),y1(i),z1(i))</VERB>
37
et le point correspondant <VERB>(x(i),y(i))</VERB> dans le plan projet� 2D.
38
On peut ainsi utiliser les primitives graphiques avec <VERB>(x,y)</VERB> pour superposer des dessins.
42
deff("[z]=surf(x,y)","z=sin(x)*cos(y)")
44
// dessin 3D de la surface
45
fplot3d(t,t,surf,35,45,"X@Y@Z")
46
// maintenant (t,t,sin(t).*cos(t)) est une courbe sur la surface
47
// pouvant �tre dessin�e avec geom3d et xpoly
48
[x,y]=geom3d(t,t,sin(t).*cos(t));
50
// ajout d'un commentaire
51
[x,y]=geom3d([0,0],[0,0],[5,0]);
53
xstring(x(1),y(1),"point (0,0,0)")
55
<AUTHOR>J.Ph.C. </AUTHOR>