zalo / CascadeStudio

A Full Live-Scripted CAD Kernel in the Browser
https://zalo.github.io/CascadeStudio/
MIT License
998 stars 122 forks source link

Slow performance for Boolean #129

Open womaas opened 2 years ago

womaas commented 2 years ago

Hi. Performing operations such as Cut on several dozen Shapes takes significantly longer (~10-20 times) than when using CAD Builder (an application using the C ++ core) where the same operations on the same Shapes are performed instantly. What could be causing this and is there any way to speed it up?

raydeleu commented 2 years ago

I noted the same issue in https://github.com/zalo/CascadeStudio/discussions/94. Here I tried to create a honeycomb by subtracting a lot of hexagonal shapes from a large object. Indeed this takes a long time. But often CascadeStudio is relatively fast even compared to FreeCad that probably also uses the C++ core of OpenCascade. I guess you win on the UI side of things and you loose on de calculation side of things. I did not find a way to speed it up.