Drawing a Bézier Curve and Extruding it

Hey folks, I’m working on a project that involves first interpolating a spline through a sequences of points and then “extruding” that spline into a surface, essentially just creating a surface in the direction of its normals.

I have all the math for the interpolation figured out, but I’m having trouble creating this visualization in Touch. What I have going now is a scriptCHOP that’s drawing one of the Bézier curves that makes up the spline, and a limit SOP converting that to a curve. But the limitSOP doesn’t produce anything with tangents or normals. I can compute these myself in the scriptCHOP, but I still wouldn’t know how to get them onto the geometry in order to use an extrude SOP.

Any ideas or hints on how to do this? I spend most of my time in CHOP land and DAT land doing scripting and control, so SOPs are still a bit foreign to me.
Thanks!

Have you try to use Attribute Create Sop, to create tangents and normals ?

Yes, but it doesn’t create any.

perhaps publish here your project, easier to look at…

Not sure if this helps you at all.

I have been meaning to upload this for a bit. It’s mostly about the texture component but the extruding bezier curve is in there.

1 Like