I am experimenting with the workbench. It is really helpful for visualizing lens systems, thanks!
Some questions/observations.
1) When I open a file with optic elements I get:
Code: Select all
08:29:19 Traceback (most recent call last):
File "/home/mac/.FreeCAD/Mod/OpticsWorkbench/Ray.py", line 53, in onChanged
self.redrawRay(fp)
File "/home/mac/.FreeCAD/Mod/OpticsWorkbench/Ray.py", line 85, in redrawRay
insiders = self.isInsideLens(ray.Vertexes[0])
File "/home/mac/.FreeCAD/Mod/OpticsWorkbench/Ray.py", line 271, in isInsideLens
if obj.Shape.distToShape(Part.Vertex(vertex))[0] < EPSILON:
<class 'RuntimeError'>: BRepExtrema_DistShapeShape failed
2) When I change the Refraction index property. The first change automatically updates the refraction path of the ray. Sometimes, further changes in the index update the ray, sometimes not. (I have yet to tie down a repeatable sequence to replicate, sorry.)
3) The refraction path doesn't seem to work if the sketch is on other than the X, Y plane.
4) The lens container has a Placement object, but changes don't seem to have any effect. The Placement object of the contained sketch does move the sketch and effect the refraction path. (this is in a sketch on the X, Y plane; neither has any effect on a sketch on other planes.)
5) The default length of the Ray at 1 million make 3D view navigation a bit cumbersome and I always immediately set it to a more manageable 100. (obviously this would need to be increased based on the design of the lens system) Is/would it possible to set this default as a preference?
OS: Debian GNU/Linux 10 (buster) (XFCE/lightdm-xsession)
Word size of FreeCAD: 64-bit
Version: 0.20.25553 (Git)
Build type: Release
Branch: master
Hash: 08736cb4ce42f7bddf9419b48b4f4153da4d6cfa
Python version: 3.7.3
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedStates (en_US)
Star Trek II: The Wrath of Khan: Spock: "...His pattern indicates two-dimensional thinking."