|
15 | 15 | "metadata": {},
|
16 | 16 | "outputs": [],
|
17 | 17 | "source": [
|
18 |
| - "from pyoptools.all import *\n", |
| 18 | + "from pyoptools.all import *\n", |
19 | 19 | "from numpy import pi,sqrt"
|
20 | 20 | ]
|
21 | 21 | },
|
|
57 | 57 | "\n",
|
58 | 58 | "**surflist**\n",
|
59 | 59 | "\n",
|
60 |
| - "> List of tuples of the form `(surface, (PosX,PosY,PosZ), (RotX,RotY,RotZ)` where `surface` is an [instance of a subclass](pyoptools.raytrace.surface.rst) of [Surface](../../pyoptools.raytrace.surface.surface.rst), `PosX,PosY,PosZ`are the surface’s vertex coordinates, and `RotX,RotY,RotZ` are the rotation angles of the surface around the X , Y , and Z axes, given in radians. The rotation about the Z axis if applied first, then the rotation about the Y axis, and finally the rotation about the X axis.\n", |
| 60 | + "> List of tuples of the form `(surface, (PosX,PosY,PosZ), (RotX,RotY,RotZ)` where `surface` is an instance of a subclass of [Surface](../../pyoptools.raytrace.surface.surface.rst), `PosX,PosY,PosZ`are the surface’s vertex coordinates, and `RotX,RotY,RotZ` are the rotation angles of the surface around the X , Y , and Z axes, given in radians. The rotation about the Z axis if applied first, then the rotation about the Y axis, and finally the rotation about the X axis.\n", |
61 | 61 | "\n",
|
62 | 62 | "**material**\n",
|
63 | 63 | "\n",
|
|
119 | 119 | " (b_face,(width/2,0,0),(0,pi/2,0)),\n",
|
120 | 120 | " (h_face,(0,0,0),(0,-pi/4,0)),\n",
|
121 | 121 | " (e1,(0,height/2,0),(pi/2,-pi/2,0)),\n",
|
122 |
| - " (e2,(0,height/2,0),(pi/2,-pi/2,0))\n", |
| 122 | + " (e2,(0,-height/2,0),(pi/2,-pi/2,0))\n", |
123 | 123 | " ],material=material.schott[\"N-BK7\"])\n",
|
124 | 124 | "Plot3D(P,size=(120,120),scale=3,rot=[(pi/6,pi/8,0)])"
|
125 | 125 | ]
|
|
167 | 167 | " (b_face,(width/2,0,0),(0,pi/2,0)),\n",
|
168 | 168 | " (h_face,(0,0,0),(0,-pi/4,0)),\n",
|
169 | 169 | " (e1,(0,height/2,0),(pi/2,-pi/2,0)),\n",
|
170 |
| - " (e2,(0,height/2,0),(pi/2,-pi/2,0))\n", |
| 170 | + " (e2,(0,-height/2,0),(pi/2,-pi/2,0))\n", |
171 | 171 | " ],material=material.schott[\"N-BK7\"])\n",
|
172 | 172 | " return P\n",
|
173 | 173 | "P1=prism()\n",
|
|
178 | 178 | "Plot3D(cube,size=(120,120),scale=3,rot=[(pi/6,pi/8,0)])"
|
179 | 179 | ]
|
180 | 180 | },
|
| 181 | + { |
| 182 | + "cell_type": "code", |
| 183 | + "execution_count": null, |
| 184 | + "metadata": {}, |
| 185 | + "outputs": [], |
| 186 | + "source": [] |
| 187 | + }, |
181 | 188 | {
|
182 | 189 | "cell_type": "code",
|
183 | 190 | "execution_count": null,
|
|
188 | 195 | ],
|
189 | 196 | "metadata": {
|
190 | 197 | "kernelspec": {
|
191 |
| - "display_name": "Python 3", |
| 198 | + "display_name": "Python 3 (ipykernel)", |
192 | 199 | "language": "python",
|
193 | 200 | "name": "python3"
|
194 | 201 | },
|
|
202 | 209 | "name": "python",
|
203 | 210 | "nbconvert_exporter": "python",
|
204 | 211 | "pygments_lexer": "ipython3",
|
205 |
| - "version": "3.8.6" |
| 212 | + "version": "3.11.2" |
206 | 213 | }
|
207 | 214 | },
|
208 | 215 | "nbformat": 4,
|
209 |
| - "nbformat_minor": 1 |
| 216 | + "nbformat_minor": 4 |
210 | 217 | }
|
0 commit comments