chbergmann / OpticsWorkbench

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

Which part of the code is about visualizing the rays? #40

Closed LiXinrong1012 closed 1 year ago

LiXinrong1012 commented 1 year ago

Hi, nice work on optical design. I just wonder which part of the code is corresponding to visualizing the rays? It may be helpful for my project.

chbergmann commented 1 year ago

redrawRay() in Ray.py creates an array of lines. To visualize then they have to be added to Shape of a Part::FeaturePython object. fp.Shape = Part.makeCompound(linearray)