Orienting Profiles on Interior & Exterior of Curve

Hey Guys, curious if somone can help me understand what’s happening. I wrote a script to orient a wood log siding profile onto a circular shape. When I tried to flip the script around to create an interior condition – it randomly started to scale the profiles I was trying to orient?? Anybody able to help me out with this?

What’s weird too is if I switched out the ‘offset’ component it also randomly changed the planes from XY of all curves that were being oriented.

250902_Wood Log Siding Profile Orient Curature.gh (21.4 KB)

don’t know about the exterior because this curve is not internalized:

using your file as it is, by increasing the count to 128 you get the following:

1 Like

My appologies! The same curve that is internalied would be the ‘exterior curve’ profile.

Did you experience the scaling issue? were the section profiles scaling for you?

I was able to simulate the idea in a super messy way by rotating the section profile but couldn’t manage within the script, was curious what was causing the scale issue?