I have created multiple adjacent network surfaces.
They all fit together fine, along the adjacent edges they have the same V-Count, thus the V-Curves of the surfaces match nicely.
Now I use the following command to move from my NetworkSurface (NWS) to Mesh:
The surfaces are transformed into meshes with quad elements. Unfortunately now the adjacent mesh edges do not share the same vertices. They are not continuous.
# Set Mesh Parameters
meshParams = Rhino.Geometry.MeshingParameters()
meshParams.JaggedSeams = False
meshParams.GridAspectRatio = 1.0
meshParams.MaximumEdgeLength = 50.0
meshParams.MinimumEdgeLength = 40.0
meshParams.Tolerance = 10.0
# Network-Surface to Mesh
mesh = Rhino.Geometry.Mesh.CreateFromBrep(NWS.ToBrep(),meshParams)
I can hack it manually by doing:
MatchMeshEdges => Rhino will create tiny matching triangles at the edges
Quadrangulate => triangles are removed and replaced by quads which match at the edges
Is it possible to achieve this with rhinopython? I have not found any useful commands/methods under Rhino.Geometry.Mesh.
Thanks in advance