furti / FreeCAD-Lithophane

FreeCAD Workbench to convert an image to a Lithophane for 3D Printing
MIT License
32 stars 7 forks source link

Multithreading when creating solid #6

Open furti opened 6 years ago

furti commented 6 years ago

Maybe we can create the solid in multiple threads to save some time.

aaron-jencks commented 9 months ago

There is a workaround for this, where you can export the mesh as an stl, then reimport it, and use the Part -> Create Part from Mesh command to accomplish the same thing in a much shorter time

aaron-jencks commented 9 months ago

https://wiki.freecad.org/FreeCAD_and_Mesh_Import

KeithSloan commented 9 months ago

https://wiki.freecad.org/FreeCAD_and_Mesh_Import

Not seeing how this would enable any multithreading or be any quicker. I am aware the OCCT has some multithreading facilities but never been clear of what functions actually use it. Although I think loading of images might be one. i.e import of STL.

Think it also depends on your OS and level of OCC that FreeCAD is using, plus how many cores you machine has.

aaron-jencks commented 8 months ago

I'm not saying it's multithreaded, but it's faster than the supplied function in the addon, especially for larger images. With this I can import meshes of images with a width of 1200px in minutes as opposed to DNF with the supplied function