ricosjp / truck

Truck is a Rust CAD Kernel.
Apache License 2.0
1.02k stars 53 forks source link

Speeding up triangulation #36

Closed crabdancing closed 1 year ago

crabdancing commented 1 year ago

Currently the MeshableShape implementation in Truck is quite slow if you set tol low, but the whole time, it's only using one CPU core. Given the propenderence of iterators and maps in the function, and in the tesselation one it calls, would something like rayon be a good solution to parallelizing the operation?

ytanimura commented 1 year ago

Thank you for your issue. Actually we are thinking the same thing and have completed the technical verification. We have not yet been able to merge it into the master branch because of the following minor issues that remain.

In fact, it won't take much time. Now that we have received the issue, we will try to merge it into master within the next week or a little later.

ytanimura commented 1 year ago

Now, MeshableShape::triangulation has been parallelized!

There is a benchmark that compare new algorithm to old one.