From: asozinov Date: Tue, 23 May 2023 17:12:52 +0000 (+0100) Subject: CR32840 - EDF 26406 - problem of dump X-Git-Tag: V9_12_0b1~2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FCR32840;p=modules%2Fsmesh.git CR32840 - EDF 26406 - problem of dump Fixed problem with initialize QuadrangleParameters with default parameters for Quadrangle 2D algo after load of python dump --- 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: