From: GERALD NICOLAS Date: Thu, 15 Apr 2021 12:21:22 +0000 (+0200) Subject: Nommage X-Git-Tag: V9_7_0a1~3^2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=430da9254a6551c2da729b32a0aa4e41054285f7;p=modules%2Fsmesh.git Nommage --- diff --git a/src/Tools/blocFissure/gmu/ajustePointsEdgePipeFissure.py b/src/Tools/blocFissure/gmu/ajustePointsEdgePipeFissure.py index 41f23452d..a26c470e1 100644 --- a/src/Tools/blocFissure/gmu/ajustePointsEdgePipeFissure.py +++ b/src/Tools/blocFissure/gmu/ajustePointsEdgePipeFissure.py @@ -17,7 +17,7 @@ # # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # -"""Ajustement precis des points sur edgesPipeFissureExterneC""" +"""Ajustement précis des points sur edgesPipeFissureExterneC""" import logging @@ -26,16 +26,17 @@ from .findWireIntermediateVertices import findWireIntermediateVertices from .projettePointSurCourbe import projettePointSurCourbe def ajustePointsEdgePipeFissure(edgesPipeFissureExterneC, wirePipeFissureExterne, gptsdisks, idisklim): - """Ajustement precis des points sur edgesPipeFissureExterneC""" + """Ajustement précis des points sur edgesPipeFissureExterneC""" logging.info('start') edgesPFE = geompy.ExtractShapes(edgesPipeFissureExterneC, geompy.ShapeType["EDGE"], False) verticesPFE, _ = findWireIntermediateVertices(wirePipeFissureExterne) # vertices intermédiaires (des points en trop dans ptsInWireFissExtPipe) idiskmin = idisklim[0] + 1 # on ne prend pas le disque sur la peau, déjà ajusté - idiskmax = idisklim[1] # on ne prend pas le disque sur la peau, déjà ajusté - idiskint = [] + idiskmax = idisklim[1] + idiskint = list() + for vtx in verticesPFE: - distPtVt = [] + distPtVt = list() for idisk in range(idiskmin, idiskmax): gptdsk = gptsdisks[idisk] point = gptdsk[0][-1] # le point sur l'edge de la fissure externe au pipe @@ -44,6 +45,7 @@ def ajustePointsEdgePipeFissure(edgesPipeFissureExterneC, wirePipeFissureExterne idiskint.append(distPtVt[0][1]) gptsdisks[idiskint[-1]][0][-1] = vtx logging.debug("ajustement point sur edgePipeFissureExterne, vertex: %s %s", idiskint[-1], distPtVt[0][0]) + for idisk in range(idiskmin, idiskmax): if idisk in idiskint: break diff --git a/src/Tools/blocFissure/gmu/insereFissureLongue_c.py b/src/Tools/blocFissure/gmu/insereFissureLongue_c.py index 040f5a12f..1ddd26c58 100644 --- a/src/Tools/blocFissure/gmu/insereFissureLongue_c.py +++ b/src/Tools/blocFissure/gmu/insereFissureLongue_c.py @@ -45,16 +45,17 @@ def insereFissureLongue_c (pipeFondFiss, disques, rayons, demiCercles, demiCercl meshFondFiss = smesh.Mesh(pipeFondFiss) putName(meshFondFiss, "pipeFondFiss", i_pref=nro_cas) - algo2d = meshFondFiss.Quadrangle(algo=smeshBuilder.QUADRANGLE) algo3d = meshFondFiss.Prism() putName(algo3d.GetSubMesh(), "pipe", i_pref=nro_cas) - putName(algo3d, "{}_3d_pipe".format(mailleur), i_pref=nro_cas) - putName(algo2d, "{}_2d_pipe".format(mailleur), i_pref=nro_cas) + putName(algo3d, "Prism", i_pref=nro_cas) + + algo2d = meshFondFiss.Quadrangle(algo=smeshBuilder.QUADRANGLE) + putName(algo2d, "QUADRANGLE", i_pref=nro_cas) for i_aux, face in enumerate(disques): algo2d = meshFondFiss.Quadrangle(algo=smeshBuilder.RADIAL_QUAD,geom=face) putName(algo2d.GetSubMesh(), "disque", i_aux, nro_cas) - putName(algo2d, "{}_2d_disque".format(mailleur), i_aux, nro_cas) + putName(algo2d, "RADIAL_QUAD", i_aux, nro_cas) for i_aux, edge in enumerate(rayons): algo1d = meshFondFiss.Segment(geom=edge)