algorithmic modeling for Rhino
Try:
Private Sub RunScript(ByVal x As Mesh, ByRef A As Object)
A = x.UnifyNormals()
End Sub
Ouch, sure...
Write this:
x.UnifyNormals()
A = x
Could you upload the mesh?
Attached. Thanks for the help.
Ok well, I attached two solutions, but are unique solutions for your mesh.
The first arranges the points of each face using the direction of one face (only works for cuasi-flat meshes).
The second ordered the two initial groups of meshes and unifies normal in each group, then joins them together.
It is not the solution you expected, but maybe serve to muddle through.
A third solution, ordering the faces by distance + unify normals.
Well I think that mesh is not computationally correct/clean because if you add subdivisions in certain faces, vertices must also add to the topology. You are doing as A, whose new vertices are "above" the edges of faces, whereas in B, neighboring faces are also subdivided to compensate and redefine the topology. I think this may be causing you get strange results.
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