Skip to content

Commit

Permalink
When rotating a beam, also rotate the starting points
Browse files Browse the repository at this point in the history
  • Loading branch information
chbergmann committed Mar 19, 2024
1 parent d799597 commit 2153266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Ray.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def redrawRay(self, fp):
for row in range(0, int(fp.BeamNrRows)):
for n in range(0, int(fp.BeamNrColumns)):
if fp.Spherical == False:
pos = Vector(0, fp.BeamDistance * n, fp.BeamDistance * row)
pos = pl.Rotation.multVec(Vector(0, fp.BeamDistance * n, fp.BeamDistance * row))
dir = Vector(1, 0, 0)
else:
r = Rotation()
Expand Down
4 changes: 2 additions & 2 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<package format="1" xmlns="https://wiki.freecad.org/Package_Metadata">
<name>Optics</name>
<description>Geometrical optics for FreeCAD. Performs simple raytracing through your FreeCAD objects.</description>
<version>1.0.11</version>
<date>2024-02-10</date>
<version>1.0.12</version>
<date>2024-03-19</date>
<maintainer email="christian.bergmann@mailbox.org">Christi</maintainer>
<license file="LICENSE">LGPL-2.1</license>
<url type="repository" branch="main">https://github.com/chbergmann/OpticsWorkbench</url>
Expand Down

0 comments on commit 2153266

Please sign in to comment.