| 18 | | \psset{SphericalCoor=true,viewpoint=50 20 30} |
|---|
| 19 | | |
|---|
| 20 | | \section {Test equations de plans} |
|---|
| | 18 | %\psset{SphericalCoor=true,viewpoint=50 20 40} |
|---|
| | 19 | |
|---|
| | 20 | \section {Plan défini par son équation} |
|---|
| | 21 | |
|---|
| | 22 | Avec l'équation $z=0$ |
|---|
| | 23 | \begin{center} |
|---|
| | 24 | %\psset{unit=0.75} |
|---|
| | 25 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 26 | \begin{pspicture*}(-5,-4)(6,4) |
|---|
| | 27 | \psframe(-5,-4)(6,9) |
|---|
| | 28 | \psSolid[object=plan, |
|---|
| | 29 | definition=equation, |
|---|
| | 30 | args={[0 0 1 0]}, |
|---|
| | 31 | fillcolor=yellow, |
|---|
| | 32 | base=-2 2 -3 3, |
|---|
| | 33 | ngrid=1. 1., |
|---|
| | 34 | ] |
|---|
| | 35 | \end{pspicture*} |
|---|
| | 36 | \end{center} |
|---|
| | 37 | |
|---|
| | 38 | Avec l'équation $z=0$ et en prenant $(0,3,0)$ comme origine. Si |
|---|
| | 39 | l'origine fournie ne vérifie pas l'équation du plan, alors on ne tient |
|---|
| | 40 | pas compte de l'origine proposée |
|---|
| | 41 | \begin{center} |
|---|
| | 42 | %\psset{unit=0.75} |
|---|
| | 43 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 44 | \begin{pspicture*}(-5,-4)(8,4) |
|---|
| | 45 | \psframe(-5,-4)(6,9) |
|---|
| | 46 | \psSolid[object=plan, |
|---|
| | 47 | definition=equation, |
|---|
| | 48 | args={[0 0 1 0]}, |
|---|
| | 49 | fillcolor=yellow, |
|---|
| | 50 | origine=0 3 0, |
|---|
| | 51 | base=-2 2 -3 3, |
|---|
| | 52 | ngrid=1. 1., |
|---|
| | 53 | ] |
|---|
| | 54 | \end{pspicture*} |
|---|
| | 55 | \end{center} |
|---|
| | 56 | |
|---|
| | 57 | \newpage |
|---|
| | 58 | |
|---|
| | 59 | Avec l'équation $z=0$ et une rotation de $90^\circ $ autour de la normale |
|---|
| | 60 | \begin{center} |
|---|
| | 61 | %\psset{unit=0.75} |
|---|
| | 62 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 63 | \begin{pspicture*}(-5,-4)(6,4) |
|---|
| | 64 | \psframe(-5,-4)(6,9) |
|---|
| | 65 | \psSolid[object=plan, |
|---|
| | 66 | definition=equation, |
|---|
| | 67 | args={[0 0 1 0] 90}, |
|---|
| | 68 | fillcolor=yellow, |
|---|
| | 69 | base=-2 2 -3 3, |
|---|
| | 70 | ngrid=1. 1., |
|---|
| | 71 | ] |
|---|
| | 72 | \end{pspicture*} |
|---|
| | 73 | \end{center} |
|---|
| | 74 | |
|---|
| | 75 | \newpage |
|---|
| | 76 | \section {Plan défini par sa normale et un point} |
|---|
| | 77 | |
|---|
| | 78 | \texttt{args={0 0 -2 [0 0 1]}} |
|---|
| | 79 | |
|---|
| | 80 | \texttt{args={0 0 1 [0 0 1]}} |
|---|
| | 81 | \begin{center} |
|---|
| | 82 | %\psset{unit=0.75} |
|---|
| | 83 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 84 | \begin{pspicture*}(-5,-4)(6,4) |
|---|
| | 85 | \psframe(-5,-4)(6,9) |
|---|
| | 86 | \psSolid[object=plan, |
|---|
| | 87 | definition=normalpoint, |
|---|
| | 88 | args={0 0 -2 [0 0 1]}, |
|---|
| | 89 | fillcolor=cyan, |
|---|
| | 90 | base=-2 2 -3 3, |
|---|
| | 91 | ngrid=1. 1., |
|---|
| | 92 | ] |
|---|
| | 93 | \psSolid[object=plan, |
|---|
| | 94 | definition=normalpoint, |
|---|
| | 95 | args={0 0 1 [0 0 1]}, |
|---|
| | 96 | fillcolor=yellow, |
|---|
| | 97 | base=-2 2 -3 3, |
|---|
| | 98 | ngrid=1. 1., |
|---|
| | 99 | ] |
|---|
| | 100 | \end{pspicture*} |
|---|
| | 101 | \end{center} |
|---|
| | 102 | |
|---|
| | 103 | \texttt{args={0 0 1 [0 0 1 90]}} |
|---|
| | 104 | \begin{center} |
|---|
| | 105 | %\psset{unit=0.75} |
|---|
| | 106 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 107 | \begin{pspicture*}(-5,-4)(6,4) |
|---|
| | 108 | \psframe(-5,-4)(6,9) |
|---|
| | 109 | \psSolid[object=plan, |
|---|
| | 110 | definition=normalpoint, |
|---|
| | 111 | args={0 0 1 [0 0 1 90]}, |
|---|
| | 112 | fillcolor=yellow, |
|---|
| | 113 | base=-2 2 -3 3, |
|---|
| | 114 | ngrid=1. 1., |
|---|
| | 115 | ] |
|---|
| | 116 | \end{pspicture*} |
|---|
| | 117 | \end{center} |
|---|
| | 118 | |
|---|
| | 119 | \newpage |
|---|
| | 120 | |
|---|
| | 121 | \texttt{args={0 0 0 [1 0 0 0 0 1]}} |
|---|
| | 122 | \begin{center} |
|---|
| | 123 | %\psset{unit=0.75} |
|---|
| | 124 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 125 | \begin{pspicture*}(-5,-4)(6,4) |
|---|
| | 126 | \psframe(-5,-4)(6,9) |
|---|
| | 127 | \psSolid[object=plan, |
|---|
| | 128 | definition=normalpoint, |
|---|
| | 129 | args={0 0 0 [1 0 0 0 0 1]}, |
|---|
| | 130 | fillcolor=yellow, |
|---|
| | 131 | base=-2 2 -3 3, |
|---|
| | 132 | ngrid=1. 1., |
|---|
| | 133 | ] |
|---|
| | 134 | \end{pspicture*} |
|---|
| | 135 | \end{center} |
|---|
| | 136 | |
|---|
| | 137 | \texttt{args={0 0 0 [1 1 0 0 0 1]}} |
|---|
| | 138 | \begin{center} |
|---|
| | 139 | %\psset{unit=0.75} |
|---|
| | 140 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 141 | \begin{pspicture*}(-5,-4)(6,4) |
|---|
| | 142 | \psframe(-5,-4)(6,9) |
|---|
| | 143 | \psSolid[object=plan, |
|---|
| | 144 | definition=normalpoint, |
|---|
| | 145 | args={0 0 0 [1 1 0 0 0 1]}, |
|---|
| | 146 | fillcolor=yellow, |
|---|
| | 147 | base=-2 2 -3 3, |
|---|
| | 148 | ngrid=1. 1., |
|---|
| | 149 | ] |
|---|
| | 150 | \end{pspicture*} |
|---|
| | 151 | \end{center} |
|---|
| | 152 | |
|---|
| | 153 | \newpage |
|---|
| | 154 | |
|---|
| | 155 | \begin{center} |
|---|
| | 156 | %\psset{unit=0.75} |
|---|
| | 157 | \psset{SphericalCoor=true,viewpoint=10 18 60,Decran=10,fontsize=10} |
|---|
| | 158 | \begin{pspicture*}(-5,-4)(6,9) |
|---|
| | 159 | \psSolid[object=plan, |
|---|
| | 160 | definition=equation, |
|---|
| | 161 | args={[0 0 1 -1]}, |
|---|
| | 162 | fillcolor=red, |
|---|
| | 163 | origine=-3 0 1, |
|---|
| | 164 | base=-2 2 -2 2, |
|---|
| | 165 | incolor=orange, |
|---|
| | 166 | ] |
|---|
| | 167 | \psSolid[object=plan, |
|---|
| | 168 | definition=equation, |
|---|
| | 169 | args={[0 0 1 -2]}, |
|---|
| | 170 | fillcolor=cyan, |
|---|
| | 171 | origine=2 0 2, |
|---|
| | 172 | base=-2 2 -2 2, |
|---|
| | 173 | incolor=pink, |
|---|
| | 174 | ] |
|---|
| | 175 | %% \codejps{ |
|---|
| | 176 | %% /eq1 {[1 0 -2 0]} def %% equation plan 1 |
|---|
| | 177 | %% eq1 -30 eq2plan |
|---|
| | 178 | %% {dup [-3 3 -3 3] planputrange |
|---|
| | 179 | %% dup [1. dup] planputngrid} exec |
|---|
| | 180 | %% newplan |
|---|
| | 181 | %% dup videsolid |
|---|
| | 182 | %% dup (jaune) (jaune) solidputcolors |
|---|
| | 183 | %% dup videsolid |
|---|
| | 184 | %% drawsolid* |
|---|
| | 185 | %% } |
|---|
| | 186 | \end{pspicture*} |
|---|
| | 187 | \end{center} |
|---|
| | 188 | |
|---|
| | 189 | \newpage |
|---|
| | 190 | |
|---|
| | 191 | \section {Avec du code jps} |
|---|