chbergmann / OpticsWorkbench

GNU Lesser General Public License v3.0
69 stars 23 forks source link

Error on load #10

Closed chbergmann closed 2 years ago

chbergmann commented 2 years ago

When I open a file with optic elements I get:

[code]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 [/code]

chbergmann commented 2 years ago

fixed