Closed mokshasoft closed 2 years ago
The larger cube increases the volume to be evaluated significantly so this is currently expected. The cube results in implicit function which is evaluated along full range of the objects bounds.
Thanks! When I rearranged the code a bit I understand that it is the rendering that takes time (because of the rendering resolution) not the cube call. Changing the resolution to 20 makes the rendering almost instant.
c2 <- timeIt $ pure $ cube False (V3 4000 95 45)
timeIt $ writeSTL 20 "model2.stl" c2
The following two calls take very different times to finish:
Code that triggers:
Trigger using https://github.com/mokshasoft/hus/tree/perf-error-1/Elements