Devlog 10 - Fusion Voronoi Script
Working on a v2 for the script, I did some optimization to run the script faster, one thing that I changed for that purpose is that I was creating every connection extrude in a different operation, now I’m doing it all in a singly operation.
I’m also trying to expand the functionality to 2D, the first challenge I faced while doing so is that I wanted to create 2 tabs for it, one for 3D and one for 2D but then I discovered that fusion don’t let you know which tab it was before the user clicked ok (And I needed this to decide which operation to run), so, I needed to add a listener that fires when the user changes tabs, and discover what, fusion also doesn’t tell me which tab he changed to, so, I need to just flip between the two when an event is fired.
To be honest, something I really didn’t expect is happening, the 2D is turning out to be harder than the 3D, I’m having some really bad problems with the offset, its really restrictive so for example, if I trimmed an edge and now there is a point in the middle of one other edge, it’s going to raise an error, if it’s not a convex shape (has some angle that’s bigger than 90), it’s going to raise an error, and I took a really long time to figure that it was that restrictive, so, I’m seriously considering adding my own offset function, I even tried to use an external library called shapely but that also wouldn’t work with rounded edges, just straight ones.
That’s how my menu is looking right now, as you can see I got 2 tabs!
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.