(mesh:mm.Mesh)
| 21 | return mm.uniteManyMeshes(meshesPtrs,uniteParams) |
| 22 | |
| 23 | def find_disorientations(mesh:mm.Mesh): |
| 24 | dParams = mm.FindDisorientationParams() |
| 25 | dParams.mode = mm.FindDisorientationParams.RayMode.Shallowest |
| 26 | dParams.virtualFillHoles = False |
| 27 | res = mm.findDisorientedFaces(mesh,dParams) |
| 28 | expParams = mm.MeshComponents.ExpandToComponentsParams() |
| 29 | expParams.incidence = mm.MeshComponents.FaceIncidence.PerVertex |
| 30 | expParams.coverRatio = 0.5 |
| 31 | expRes = mm.MeshComponents.expandToComponents(mesh,res,expParams) |
| 32 | return expRes |
| 33 | |
| 34 | def fix_disorientations(mesh:mm.Mesh): |
| 35 | disorientations = find_disorientations(mesh) |
no outgoing calls
no test coverage detected