Hello everyone ,
I am trying to create a rectangle output (seats) on my points , but i want the corner seats to rotate to the center point of pitch , I tried to rotate it through assigning domain and it worked for the sides only and not at the corners ! Please help!
The organization of your seat points is unfortunate. If they were concentric rings, with each row a separate branch, you could create interpolated curves and use HFrames on them to get rectangles oriented to the tangent of the row curves.
Like @Joseph_Oster said is a pitty you don’t have curves to orient. But you are fortunate that proximity 3D is working so I can measure an orientation
Since you’re already using a plugin for this stadium development why don’t you try this plugin. As a bonus developer him also available here in discourse. @max.marschall
I just remembered a similar challenge two weeks ago to organize seats into rows based on their Z values:
Adapted in white group below. Unfortunately, your points are sloppy about their Z values so the yellow group was added to round them off to the nearest 0.325 to get proper rows.
P.S. I’m not quite sure what @laurent_delrieu is doing with Proximity 3D but it looks very clever and gets a similar result. Later: finding the two adjacent points for each point and using that to align the seat? Wow! They are not organized as rows, however.
Your seats are organized in sections as shown below, with seats in each section (branch of the data tree) in straight lines. No doubt deliberate and for good reason?
But in case you want smoother alignment, I added a green group to rebuild the row curves using a curvature graph on the bottom row as a guide. I also added the orange group to apply the rounded Z values to the resulting seats, meaning all the seats in each row now have the same Z value (which is not the case in the points you supplied).