chbergmann / OpticsWorkbench

GNU Lesser General Public License v3.0
80 stars 22 forks source link

Point source on lens edge crashes Freecad #21

Closed JRaacke closed 2 years ago

JRaacke commented 2 years ago

If a lens was drawn through the origin of the sketch, Freecad crashes when a 2D beam bundle is placed. Since the bundle is placed into the origin, the lengths of ray vectors hitting the surface are zero and therefore their direction cannot be calculated. Probably it is a "division by zero", which should be catched.

chbergmann commented 2 years ago

fixed in in version 1.1