I’ve been experimenting with making 2D line meshes so their thickness can be modulated. To test out the system, I’ve successfully drawn a 2D Hilbert curve.
I wanted to transfer this to the playground to share it and request comments for improvement. However, I’m unable to properly run the code, and it freezes after a single run. I’m unsure what I’m doing wrong.
Here is the current playground.
Note: I plan on adding more comments to the code (including some credits for code inspiration/use) but for now I’d just like it to work online. Afterwards I will further improve a submitted playground.
The code is executing successfully on my machine, but I might’ve missed something in translation, or something else is wrong. I’m not sure why it consistently freezes after a single execution.
After this works, I’ll make another topic on the actual contents of this playground.
Thanks for any help.
Edit: So I just clicked my own link, and now it works! But it’s a very small curve…when I comment out the line above it for a larger curve, it freezes. I’m not sure what’s happening. Perhaps this has something to do with my particular setup.
Edit-2: I modified and re-saved for a larger curve and it works the first time I visit it. It is here. Besides playing with the code and improving it, I wanted to animate the width variable. I will test on other computers soon.