Open udif opened 3 years ago
For what it's worth, random model corruption is probably related to the Cache?
checkbox.
The cache is a hack I'm using to store the intermediate states of the model evaluation to dramatically speed up generation. But unfortunately, sometimes the Cache gets corrupted and causes issues :-(
I started playing with CascadeStudio every since the hackaday article 1-2 months ago, and I really like it.
However, as I try building more complex models I run into geometrical corruption issues, where changing a small parameter controlling the size of an objects can cause total model corruption. sometimes changing the model, evaluating it, and reverting the change fixes the corruption. For my previous model I had to rewrite it for a different platform (www.jscad.xyz), just because CascadeStudio wasn't stable enough.
Today it happened again, so I wanted to share the model to get to the bottom of it. Here is a minimum example from a larger model:
When I render this (clean, InPrivate (same as incognito in chrome) on Microsoft Edge), I get:![bad_grid](https://user-images.githubusercontent.com/809640/99388768-c18c9a00-28de-11eb-95b2-5f2c103b944e.png)
After commenting out the last line (Difference(...)) , evaluating the script and removing the comment again, I now get:![good_grid](https://user-images.githubusercontent.com/809640/99388876-e41eb300-28de-11eb-8ccc-fb50b5effc05.png)
I think my problems in previous models were also related to Difference().