Applying polygonal extrusion method to a curve with multiple spline elements

Hello everyone,

Few weeks lurker, first time poster here. I’ve been a 3D artist for a few years now, and recently took the full plunge into blenders depths. Im coming mainly from a 3DsMax background where I really enjoyed the modifier stack. Geometry nodes have been a great way for me to adapt and even improve my worklows in comparison.

One of those cases would be creating curve to mesh with a profile that has straightened corners.
I found this Geometry Nodes Poligonal Path Extrusion - Blender Tutorial by Maurizio Bella and was really happy with my result initially. But it seems to fall apart as soon as a curve object has multiple seperate spline elements in it.

As far as I understand it, this setup will apply the profile scaling on every point index with the exception of the lowest / highest index as long as the spline is not cyclic. If the spline is cyclic it will apply to them aswell. Soooooo, I think the problem then is that does not account for a a new start/end point of a spline somewhere in between the first and last index.

I have been trying to find a work around for this issue but I cant quite seem to get to the solution. My first two attempts involved refining the boolean for the set position node or using a spline index parameter instead of a global index, but both failed.

My latest attempt, was to narrow down the index with using the spline ID. So the min/max index for the tool to work of would be the lowest/highest index on the spline segment and not the global index. This works now if I specify the spline ID though an input, but not for the whole curve :frowning:

So I was hoping that someone here might have an answer. I feel like Im really close but just cant seem to get there. I’d be overjoyed if one of you could help me out!

MultiSplineProfileScaling.blend (118.2 KB)

Try zeroskilz’s setup here in the first post (the UPDATE)

with your example

Edit
Ahhhh it does get a slight glitch with even thickness on

Probably worth looking through that thread there are other methods with their pros and cons.

Ah yeah,
I’ll give that a try! Thank you for forwarding this!
Maybe I can just look through the graph aswell and see how the approach is. I do still wonder though, if there is just a small tweak that could be done to my existing graph to make it work. For the learning experience I mean :stuck_out_tongue:

There’s a curve endpoints node that you can use. Also check out https://devtalk.blender.org/t/curve-to-mesh-node-even-thickness-feedback-thread/27271/159?u=hadriscus

Allright it looks like I was able to figure this out thanks to both of you!
The solution ended up being twofold.
Thanks to @Hadriscus I refined my boolean selection to exclude only the open endpoints. And then I also looked at the thread and existing node group @DNorman suggested and ended up seeing a bunch of nodes in there that I had completely missed before.

I do also get that glitchiness on the spline with free/ automatic handles in my setup. Its actually even more distorted on mine, but I tihnk I can live with that. Dont think I really need the even thickness feature for those very organic shaped splines anyway.
Attaching the updated version here aswell for anyone who is interested to compare and contrast.

Thanks Again!
MultiSplineProfileScalingUpdated.blend (164.5 KB)

Since Blender 4.x adding a resample curve on “evaluated” before the node-group should fix the Bezier glitches.

Ah yeah, you’re right!
I guess I dont have to limit my usecase afterall then :grin:

It does fix it, thanks for sharing all that!