Grasshopper

algorithmic modeling for Rhino

I know there are ways to triangulate a surface in a conventional way, like the images on the left and in the middle. But I'm trying to triangulate a triangular panel so each sub-panel is approximately same size triangle, like the one on the right. Is there a relatively straightforward way of doing it?

Thanks in advance for answering!

Views: 18990

Replies to This Discussion

Hi Darren please look this post:
http://www.grasshopper3d.com/forum/topics/divide-srf-logical
maybe help you.

hi Remy, thanks for replying. I tried your code by selecting the surface, but my computer stalled.

If your starting shapes are truly triangular, you can use weaverbird's "split polygon subdivision" component to calculate a triangular subdivision. 

Hi Andrew,

Weaverbird only works in mesh, right? I have to generate the sub-division in mesh, convert them back to nurbs, and then work on them. I am looking for something that is more automated. I have hundreds of panels to process.

And  my triangles are actually warped surfaces, so they are not "truly triangular". This makes the mesh to start with already messy

Hi Darren

I'm Weaverbird's author. In this case I would then use something curstom made, such as the great definition Andrew himself posted here:

http://www.grasshopper3d.com/forum/topics/dividing-a-triangle

There might be different interpretations of "same size triangle", but if you mean area the script there will work well I believe. I hope it helps,

Giulio Piacentino

Hi Giulio,

Great to hear from the author of Wb. I'm working on something custom-made. But can I ask you another question: if I install Wb on GH first, then install Wb plug-in on Rhino, will that disable the GH's Wb? This just happened to me!

Attached is GH's error message when I load it:

Actually no that must be a side effect of something else and should not happen... when did you install Wb in Rhino?

  • were you using a old version of Wb? How did you install it?
  • and which version of Grasshopper are you using?

Since this is a thread about something else, please feel free to contact me directly via PM.

Giulio Piacentino

OK, I'll use PM

Ha - I had forgotten entirely about that definition. 

Well the currently most popular search engine found it quickly.
It was a nice definition.

Here's how I would do it now. This definition (unlike my older one) works on multiple surfaces at a time.

Attachments:

Andrew, your code didn't work for me and some batteries are missing... what version of GH do you use and what plug-ins you have?

I have made my own customized version of the triangulation. It first divides the triangular piece along the horizontal direction, sub-divide the horizontal segments, and then connects the dots. This works for my particular project.

Attachments:

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service