What would be the method to convert brep faces to meshes?
(I know that I could do Mesh.CreateFromBrep(brep, MeshingParameters.Default)[0]; but I need to convert individual trimmed brep faces )
When I try to convert each brep face I got untrimmed brep mesh conversion:
private void RunScript(Brep B, ref object A)
{
List<Mesh> meshes = new List<Mesh>();
foreach(BrepFace f in B.Faces){
Mesh mesh = Mesh.CreateFromBrep(f.ToBrep(), MeshingParameters.Default)[0];
meshes.Add(mesh);
}
A = meshes;
}
I don’t find this option in meshing parameter.
I understood that Mesh2 has this possibility to have mesh with same vertex on seam.
I don’t know if it is in Rhinocommon.