For this update i'll be talking about our attempt at planarizing quad panels developed by my last script. As you can see in my last post, the quads created were no where near planar, and because of that, harder to fabricate. Due to this issue I started to develop a script that adjusted the points based on their neighboring planes. How this code works is that for each point i'm checking is a vertex for 4 other quads. So understanding that I check for each surrounding point, +1 and/or -1 to get all the points for each surrounding quads. After I have those points I create 3 point planes opposite from the point I am checking and project the point to the plane. With the list of points I average them and move my point accordingly. To help visualize this I made a diagram of whats happening.
This process then steps over to the next point until every point is with-in a a certain tolerance I set. In this case I have been using a tolerance of 0.5 inches which helps keep the script run time down to an average of 1.5 second per panel. The planar code does change the overall form, and in some ways flattens everything a little.
Quads before script.
Quads after script is ran
As you can see, the form does change a bit. The next step for this portion will be making sure it does not intersect with any of the above ceiling geometry. more effort will be put back into this after I get a handle on the rest of our development. here are some process images testing it on a larger arrangement of panels.
The script seems to work on different scales. well see what happens next when we make these into solids.