Grasshopper

algorithmic modeling for Rhino

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?

Views: 517

Replies to This Discussion

Can you post an image of these surfaces? If you divide by UV, do you get the wrong shapes, or only the wrong sizes?

--
David Rutten
david@mcneel.com
Poprad, Slovakia
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.
Attachments:
Wow, I found (and fixed) 5 hideous core bugs just trying to run this file on GH 0.7... If nothing else, that's a pretty good result for one morning.

Still looking at the actual problem though...

--
David Rutten
david@mcneel.com
Poprad, Slovakia
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:



--
David Rutten
david@mcneel.com
Poprad, Slovakia
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.

--
David Rutten
david@mcneel.com
Poprad, Slovakia

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service