ok so im running into trouble with a script for my final project and im sure its an easy fix. i have a corrugated type surface, it consists of about 8 faces that alternate between horizontal and vertical, and what i want to do is to divide each of the surfaces into a 2'x4' panel with the SubSrf. i just cant figure out how to use dimensions to divide the surfaces instead of setting the U and V values. any suggestions?
they are the wrong size. if you see in my image the surface is supposed to be continuous but it keeps folding up over and down. i want to adjust the divisions so i am left with 2'x4' (or 3'x6') panels, and the grid will continue evenly through the whole surface. then from there i have a dispatch definition that removes random panels based on a point attractor. i also attacted the rhino file and grasshopper script.
I'm not sure how much of a solution this is. It's terribly slow and clearly doesn't give you a complete pattern as there are gaps in the grid. But at least it may be an approach you haven't considered yet:
hey thanks that is exactly what im was looking for, well almost. i mean the gaps are an issue and it seems the panels are oriented in different directions on each surface; on the surface to the left the panels are running long ways E-W but on the far right surface the panels are going long ways N-S. this really does help though, it's an issue ive always been curious about but wasnt sure if this was a possibility. any recommendations on how to close the gaps?
Yes, don't use Surface Booleans to trim the panels to the face edges.
I just realised it's probably better to perform Trim Inclusion on all 4 panel corners, then decide on a plan of attack based on the results:
1) All 4 corners are on the interior of the trimmed surface, keep the panel.
2) All 4 corners are on the exterior of the trimmed surface, discard the panel.
3) Corners are mixed, the panel intersects the trim curves. Don't know what to do.... BooleanIntersection? Trimming? Splitting?
The grid orientation is controlled completely by the vector from the first brep vertex to the second brep vertex. I.e. it will almost always be aligned with one of the face edges, but there's no way of telling which one.
You should probably post-process these grid planes to orient them appropriately.