New CSG Engine is done / Christmas will be a little bit earlier ;)
2017-11-16, 21:46 (This post was last modified: 2017-11-16, 21:46 by Nils Schmidt.)
2017-11-16, 21:46 (This post was last modified: 2017-11-16, 21:46 by Nils Schmidt.)
(2017-09-20, 22:31)Gerald Lasser Wrote:(2017-09-18, 18:44)Nils Schmidt Wrote: I am working on a new CSG engine which will generate less triangles and a better overall triangulation.
There are already some promising results, but I need to define more testcases to deliver a rock-solid implementation in the end.
You could use the code for the Jurassic World Sphere to test:
https://forums.ldraw.org/thread-16357.ht...hlight=CSG
I managed to do it with different steps and with Intersector to reduce the number of triangles. I promis I finish the part soon, right now comparing it to the LDD version
Gerald, I finished the new engine today and I got tears in my eyes. The result is outstanding. Nearly super-human!
I attached the raw CSG result to this post (rectifier was only used to save some space).
With this new engine, all I have to do is:
1. (optional) wait until the CSG shape is fully optimised -> there is no popup dialog. The iterative optimization is runs on a background task. You can even modify other files with LDPE during the CSG optimization.
2. Inline the CSG_COMPILE meta command.
3. (optional) round / use Rectifier / minor cleanup etc.
There will be an option to turn this optimisation on/off (its on by default) and to customise some thresholds! There is a collinearity threshold for the edge collapsing process and a minimum point-to-line distance for t-junction vertices.
I will release LDPE 0.8.38 in December. Have to finish the backlog first and do some more testing.