Help! unwanted random orientation UVs in SubSrf action

Hi there,

This baffles me. So hope somebody can help me understand what goes wrong.

I have two main actions:

Action 1:
I have a simple Rhino definition that subdivides a surface, offsets the boundary curves and creates a main Frame ( Frame 1)

Action 2:
Then, the process repeated again for the subdivision results of the first action.

Problem:

When changing the offset of the boundary curves in action 2, the direction of the UV divisions changes randomly. For example, this can result in some frames having a 3x5 division, while others have a 5x3 division.

I don’t understand why this is happening or how to fix it. Please help me!

The file is attached this this post.

Thank you in advance!

Subdivision of subdivisions.gh (15.0 KB)

Hello, I tried to follow your script and then thought maybe it’s better to make a new one by the same logic you applied and let you compare the two for errors in your own script. But I believe in your script you should check data tree structures when inputting two data into a component. Also, check that input should be the same data type as the component demands. For example, you have input rectangle output to a curve which is not wrong technically. But if you first convert your rectangle into the curve and then input it, it will create a valid surface.


Subdivision of subdivisions 1.gh (10.6 KB)