Map triangular grid onto brep

I have taken a look at previous threads with similar topics but it seems like they had some outdated components.
Grasshopper beginner 11h.gh (906.2 KB)
I was planning to do a box morph, but it seems like after i loft some curves it is considered a brep, not a surface and i saw on some threads that it wont work for breps.
Also, when i change the extent Y, it does not give me a proper grid inside the bounding box.


I have no clue what it is you are trying to do.

Thanks ok the second video is a fix for increasing the number of rows. So what I want to do is that i have the script that turns the curves into a lofted form, and i want that pattern to be applied on the lofted form.

Charlotte,

I would start by creating a surface from the curves via Network Surface instead of Loft so that I get a surface instead of a BREP. Use the profile curves as U curves and curves created from the endpoints of the U curves as V curves.

Then I would Sporph the triangular grid (and only the triangular grid) from the surface that is its bounding rectangle to the network surface. You don’t want to sporph the entire construction because this will deform the panels. Once the triangular grid has been mapped, you could use Kangaroo to relax the grid… but that is a little advanced.

With the grid in place, I would then go about my construction of the panels. Give it a shot. I have a solution file that I can share with you once you have shown me your attempt.

must I have V curves for network surface to work? coz i plugged in the existing curves that i have and the component is still orange.

Yes.


Map triangular grid onto brep VR 1.gh (13.5 KB)

ok thanks. Why are we using sporph here and not box morph? also, what do you mean by sporph from the surface that is its bounding rectangle? These are what I have tried so far:



Good question. We cannot use Box Morph because what Box Morph does it translate geometry from within a Box to a Twisted Box. You are dealing with a triangular grid and the extrusion of a triangular grid away from a surface would be a tiling of prismatic volumes… I suppose you try to do something slick and split your triangular grid into a rectangular tiling, but that is more trouble than it is worth. In the end, it is about using the right tool for the right job.

Here is sporphing the grid:


Map triangular grid onto brep VR 2.gh (30.0 KB)

and here is a video on the Sporph component

In your script nothing is happening because your base and target surface are the same.

Here is the rest of the script:


Map triangular grid onto brep VR 3.gh (32.2 KB)

You would still have to map the rotational angles of the little flaps so they move at different rates from fully opened to fully closed.

(And do some work to get the triangles in the open corners of the surface if that is a thing you wanted.)

Ok thank you! Quick question, how did you think of flipping the matrix and grafting the tree? also how do you figure out which inputs and outputs you need to simplify/flatten/graft?

Yes, these are good questions. You are hitting a limit on what you can script because of a lack of understanding of how data structures work. Generally, Grasshopper beginners start by learning how to import geometry from Rhino into Grasshopper via container components. They then learn about the data input components (sliders and the like), use some basic geometry creation components and geometry manipulation components to go with them, plug and play and get a general sense of the program.

Then comes learning about lists, but that is a little more complicated and possibly tedious, so learners “kind of” understand this, but not really, and hit snags later down the road when an incomplete understanding of the topic stymies them. If you’re at the point where you are learning about the more advanced transformation components like Box Morph and Sporph, data structures is something you need to have already mastered.

Where to learn about this? Well, there is the Modelab Primer which is a very solid resource. For you, I would recommend starting at chapter 1.4 (Lists) and move on to 1.5 (Data Trees). Often cited is Andrew Heumann’s The Deal With Data Trees as well as David Rutten’s Data Tree Masterclass. The latter I find is a bit difficult to follow without having had the context of trying to work with data trees before, but it is a presentation by the creator of Grasshopper himself. I see now there is a video by Gediminas Kirdeikis, which I have never watched, but could be good resource.

Thanks for the references, will read through. I would also like to know what is the difference between Sporph and Surface Morph so that i know which one to use.

I did this here:


Map triangular grid onto brep VR 4.gh (46.3 KB)

although I’d be ashamed to admit how long this took me to figure out.

In regards to your other questions, I’d have to come back to them later. I’m a bit busy now.