This node takes a Curve Geometry input and creates a fill on Z=0 using a constrained Delaunay triangulation algorithm.
A single spline segment can be added anywhere to improve triangulation like this:
Differential D11846
Geometry Nodes: Curve Fill Authored by Erik Abrahamsson (erik85) on Jul 7 2021, 11:30 PM. Tags Subscribers None Tokens
Details
This node takes a Curve Geometry input and creates a fill on Z=0 using a constrained Delaunay triangulation algorithm. A single spline segment can be added anywhere to improve triangulation like this:
Diff Detail Event TimelineComment Actions This works quite well! When there are a bunch of splines, performance can get very slow though. I haven't profiled this yet, maybe there are some things to optimize. It may be worth filtering into buckets based on bounding boxes at least.
Comment Actions I think I found an issue with non-cyclic interior splines: The selected spline isn't cyclic, and I think it's missing the last vertex somehow.
Comment Actions Use normal and point on a calculated plane from the 2D spline to fill rotated and translated 2D splines. Comment Actions After thinking about it more, looking at the code, and testing, I think this node shouldn't handle the different differing projection projection directions per-group. Calculation of a 2D "normal" for each spline could make sense, it just doesn't fit in this node in my opinion, so it would be better to try to generalize some of that functionality and split it out. I also still unsure about the hard-coded group index. I understand filtering into groups by bounds automatically might now work out, but as it is, it's more of a feature for the text nodes. While that may make total sense, it should probably be part of a separate patch. These thoughts match up with the feedback I got when I presented these ideas to the rest of the team. But it's also easier to discuss those more complex ideas in the future if the base is already there. If you're not excited about stripping away some of these things from the patch that's totally fair-- I could help get this patch to a commit-able state if you weren't interested. Comment Actions Thanks Eric, this is working well! I'll do some cleanups when committing, I mentioned the more significant ones inline.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||