Haskell-Things / ImplicitCAD

A math-inspired CAD program in haskell. CSG, bevels, and shells; 2D & 3D geometry; 2D gcode generation...
https://implicitcad.org/
GNU Affero General Public License v3.0
1.4k stars 142 forks source link

Excessively long run time for simple file #181

Closed MattEttus closed 7 years ago

MattEttus commented 7 years ago

The attached file generates dominoes. It renders in a couple of seconds in OpenSCAD but takes many minutes when run with:

$ extopenscad test.scad -o test.stl

The output it eventually produces looks good, and extopenscad does do rounded corners, so it does have to work a bit harder than OpenSCAD, but this does seem excessive. Is there something I'm doing wrong?

test.tar.gz

TLC123 commented 7 years ago

Seem pretty normal to me, for non optimized marching cubes. Both polygonization and image rendering really could benefit from GPU acceleration. There are really fast GLSL shaders for raymarching Signed Distance Fields available. a SMOP to combine.

julialongtin commented 7 years ago

This is normal, and also something I'm trying to work on, as I wrap my head about the code. GPU acceleration is currently off of the table, because of a lack of support on free-software-only stacks. I've been doing a lot of work on optimizing the code at every step.