Closed hstarmans closed 3 years ago
Yes please, add a request to add the polygon. About the material, the refraction index database was taken from https://refractiveindex.info . In this database N-SK5 is defined but SK5 is not. To solve this issue I have added a file "pyoptools/raytrace/mat_lib/data/aliases.cfg" where name aliases to the materials can be added. I have not added the SK5 material yet, but you can easily add it to your installation by modifying this file. If you send me a list of other materials you have identified to have an "alias" issue, I can make a commit with all the corrections.
One question, did you use assembly4 together with pyoptools? If so, can you elaborate about the process? I'm using a2plus for my assemblies because last time I tested Assembly4 it broke the interaction with pyoptools.
I just checked again, and The SF5 indeed exists. It is located in the hikary catalog
I use assembly 4 and build a custom work bench, freecad_hexastorm. This work bench is partly based upon your code. I use your method of translating results from simulations from pyOpTools back to FreeCAD (see function get_prop_shape in commands) . The main challenge is that objects in FreeCAD are different from pyOpTools. For some objects, I determine the center of mass and then translate that position to pyOpTools (see function set_orientation in system.py). This sometimes requires corrections as the center of mass of the object is not at the origin in pyOpTools. Here is a render of how the simulation looks in FreeCAD. The optical design can be found here. I still need to polish it a bit but will add a video afterwards.
I looked into cihologramas a bit, see my blog on hackaday. Do you use laser scanning at a resolution of 1 micron and a line speed of 1.54 m/s ?
Yes, the objects in pyOpTools are not really related to FreeCAD. The idea behind pyOpTools is to create an engine to perform the optical calculations unrelated from any kind of GUI (this may change in to the future). Maybe you already know, but we have been also developing an workbench for FreeCAD ( https://github.com/cihologramas/freecad-pyoptools ) this is still a work in progress, but it has allowed us to "digitally" build some optical systems and check they perform as expected by simulation, and then to use the exact position of the optics to place the holders and make the mechanical design. Initially we used to export the STEP of the optics and use another CAD software, but I'm trying to migrate everything to FreeCAD and this is what I have used A2plus for. I have not used assembly 4 because I have not found a good workflow where I can change the optics, and migrate that changes to the final assembly. With A2plus is almost direct. Regarding your question about our machine, we are scanning with a laser and a line speed that could go up to 2 or maybe 2.2 m/s at 1 um resolution. But we don't use mechanical scanners, we have found them to be too slow. Right now we about to present a new machine where we expect to get about 2 times the printing speed with an address grid resolution of 0.1 um , but this machine will use a completely different technology.
Regarding the Edmund 45113, I just looked at Edmund webpage, and could not find it. Maybe it is deprecated? If you send me the lens information, I could add it to the lens catalog. For the moment I will close this issue.
Ideally there is a bridge between pyoptools and open cascade (core library of freecad) and openscad and pyoptools. I think a lot of the functionality you need is already available in freecad libraries. You should check out, https://github.com/SolidCode/SolidPython. It is a bridge between openscad and python. There is also a library viewscad. I really like your library though. But, the tutorial you provided does not work out of the box.. anyhow it is not really an issue, so yes you can close this issue for now 😉.
0.1 microns is very impressive, I have a line speed of 34 m/s and resolution of 15 micron. It might be that the tech can be scaled but 0.1 micron is very impressive. Guess it is mask lithography or maybe still dmd
Hey all,
I am planning to model a prism laser scanner using this software. Two remarks;
So far I had to implement a polygon object;
Shall I add a request for this into the library?
The laser scanner is described in Freecad, see video Here you see a video of the prism scanner in action.
Note, that I tested the tutorial and could it get it working but the tutorial is partly broken. issues i could find are;