Salome HOME
+ // remove elements created by e.g. patern mapping (PAL21999)
authoreap <eap@opencascade.com>
Fri, 22 Oct 2010 06:33:50 +0000 (06:33 +0000)
committereap <eap@opencascade.com>
Fri, 22 Oct 2010 06:33:50 +0000 (06:33 +0000)
+  theMesh.GetSubMesh(theShape)->ComputeStateEngine( SMESH_subMesh::CLEAN );

src/StdMeshers/StdMeshers_Regular_1D.cxx

index 1cfd9bd2c6b07fcb8b64f11dd645d29e0aa004bd..504b2b919280ec44af9ba934e07f750cdf5cb822 100644 (file)
@@ -947,6 +947,9 @@ bool StdMeshers_Regular_1D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape & t
   if (!idFirst || !idLast)
     return error( COMPERR_BAD_INPUT_MESH, "No node on vertex");
 
+  // remove elements created by e.g. patern mapping (PAL21999)
+  theMesh.GetSubMesh(theShape)->ComputeStateEngine( SMESH_subMesh::CLEAN );
+
   if (!Curve.IsNull())
   {
     list< double > params;
@@ -988,7 +991,6 @@ bool StdMeshers_Regular_1D::Compute(SMESH_Mesh & theMesh, const TopoDS_Shape & t
       parLast = f;
     }
     */
-
     for (list<double>::iterator itU = params.begin(); itU != params.end(); itU++) {
       double param = *itU;
       gp_Pnt P = Curve->Value(param);