algorithmic modeling for Rhino
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.
Tags:
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.
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
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by