Grasshopper

algorithmic modeling for Rhino

chose the direction of the edge in the triangulate mesh node

Hi all, in both  rhino and grasshopper is there a way to control the direction of triangles when using the command triangulate mesh? I noticed that he always choose the shortest diagonal of the quadrangular face, but I'd like to impose the longest diagonal.

Views: 1051

Replies to This Discussion

I have already found the swap mesh edges command in rhino, but I'd like to do it in grasshopper and to apply it on all new edges which triangulate mesh created

I'm afraid you'll have to write your own triangulation algorithm in that case. Not too difficult in C#, potentially rather involved in straight up GH.

Attached a C# script for triangulating by splitting along the longest diagonal.

Attachments:

thanks so much David, are there some sources where I can learn to script in C# for rhino? I have a basic knowing of python, but never tryed C#

You can do this in python as well, if you're more comfortable with that language.

 you can construct a mesh from its vertics using corners order {0,1,3} and {0,2,3}

thanks

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