From 6600bcec782fc8b6c72871fe6e08bd19a34a4e2b Mon Sep 17 00:00:00 2001 From: asozinov Date: Tue, 23 May 2023 18:12:52 +0100 Subject: [PATCH] CR32840 - EDF 26406 - problem of dump Fixed problem with initialize QuadrangleParameters with default parameters for Quadrangle 2D algo after load of python dump --- src/SMESH_SWIG/StdMeshersBuilder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/SMESH_SWIG/StdMeshersBuilder.py b/src/SMESH_SWIG/StdMeshersBuilder.py index 6d275f6d4..4849c746e 100644 --- a/src/SMESH_SWIG/StdMeshersBuilder.py +++ b/src/SMESH_SWIG/StdMeshersBuilder.py @@ -738,9 +738,11 @@ class StdMeshersBuilder_Quadrangle(Mesh_Algorithm): if corners and isinstance( corners[0], GEOM._objref_GEOM_Object ): corners = [ self.mesh.geompyD.GetSubShapeID( self.mesh.geom, v ) for v in corners ] - if self.params.GetQuadType() != quadType: + #If quadType is None - will used default parameter ( StdMeshers.QUAD_STANDARD ) + if quadType and self.params.GetQuadType() != quadType: self.params.SetQuadType(quadType) - if vertexID > 0: + #If triangleVertex is None - will used default parameter ( -1 ): + if triangleVertex and vertexID > 0: self.params.SetTriaVertex( vertexID ) from salome.smesh.smeshBuilder import AssureGeomPublished for v in enfVertices: -- 2.39.2