From: eap Date: Wed, 29 May 2013 15:32:30 +0000 (+0000) Subject: 22222: [CEA 820] GHS3D in salome 7.2.0 ten times slower than in salome 6.6.0 X-Git-Tag: V7_3_0a1~378 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=abdbef3f20bedc056ea929d966c683c201928736;p=modules%2Fsmesh.git 22222: [CEA 820] GHS3D in salome 7.2.0 ten times slower than in salome 6.6.0 In MakeComputed(), call SMESH_Gen::Compute() with aShapeOnly = true - return gen->Compute( *mesh, shape ); + return gen->Compute( *mesh, shape, /*shapeOnly=*/true ); --- diff --git a/src/StdMeshers/StdMeshers_ProjectionUtils.cxx b/src/StdMeshers/StdMeshers_ProjectionUtils.cxx index 3e9f5c462..de59b2654 100644 --- a/src/StdMeshers/StdMeshers_ProjectionUtils.cxx +++ b/src/StdMeshers/StdMeshers_ProjectionUtils.cxx @@ -2100,7 +2100,7 @@ bool StdMeshers_ProjectionUtils::MakeComputed(SMESH_subMesh * sm, const int iter string algoType = algo->GetName(); if ( algoType.substr(0, 11) != "Projection_") - return gen->Compute( *mesh, shape ); + return gen->Compute( *mesh, shape, /*shapeOnly=*/true ); // try to compute source mesh @@ -2132,7 +2132,7 @@ bool StdMeshers_ProjectionUtils::MakeComputed(SMESH_subMesh * sm, const int iter } } if ( srcShape.IsNull() ) // no projection source defined - return gen->Compute( *mesh, shape ); + return gen->Compute( *mesh, shape, /*shapeOnly=*/true ); if ( srcShape.IsSame( shape )) RETURN_BAD_RESULT("Projection from self"); @@ -2141,7 +2141,7 @@ bool StdMeshers_ProjectionUtils::MakeComputed(SMESH_subMesh * sm, const int iter srcMesh = mesh; if ( MakeComputed( srcMesh->GetSubMesh( srcShape ), iterationNb + 1 ) && - gen->Compute( *mesh, shape )) + gen->Compute( *mesh, shape, /*shapeOnly=*/true )) return sm->IsMeshComputed(); return false;