From: cconopoima Date: Tue, 5 Mar 2024 12:47:46 +0000 (+0000) Subject: Refactor ex18_dome2 smesh test. Remove extra edges of individual semisphere instead... X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2ee8fd1463410bafe3a5ee8d996a481b48fde7c1;p=modules%2Fsmesh.git Refactor ex18_dome2 smesh test. Remove extra edges of individual semisphere instead of entire geometry. --- diff --git a/test/ex18_dome2.py b/test/ex18_dome2.py index fdd76b856..1f61699cd 100644 --- a/test/ex18_dome2.py +++ b/test/ex18_dome2.py @@ -84,9 +84,11 @@ c_outils.append(geompy.MakePlane(geompy.MakeVertex(g_ox, g_oy, g_oz+g_cyl_demiHa c_cpd = geompy.MakePartition([s_sphere], c_outils, [], [], geompy.ShapeType["SOLID"]) c_calotte_haut, c_reste = geompy.SubShapeAllSorted(c_cpd, geompy.ShapeType["SOLID"]) +c_calotte_haut = geompy.RemoveExtraEdges(c_calotte_haut) c_plan = geompy.MakePlane(geompy.MakeVertex(g_ox, g_oy, g_oz), geompy.MakeVectorDXDYDZ(0, 0, 1), g_trim) c_calotte_bas = geompy.MakeMirrorByPlane(c_calotte_haut, c_plan) +c_calotte_bas = geompy.RemoveExtraEdges(c_calotte_bas) # Fusionner # --------- @@ -110,12 +112,13 @@ h_outils = [] h_outils.append(geompy.MakePlane(t_point, geompy.MakeVectorDXDYDZ(1, 0, 0), g_trim)) h_outils.append(geompy.MakePlane(t_point, geompy.MakeVectorDXDYDZ(0, 1, 0), g_trim)) -h_piece = geompy.MakePartition([t_piece], h_outils, [], [], geompy.ShapeType["SOLID"]) +piece = geompy.MakePartition([t_piece], h_outils, [], [], geompy.ShapeType["SOLID"]) # Reparer # ------- -piece = geompy.RemoveExtraEdges(h_piece) +#Remove extraedges remove the seam edge from calottes. for salome+occt78 we move this call to the calotte sections. +#piece = geompy.RemoveExtraEdges(h_piece) # Ajouter la piece dans l'etude # -----------------------------