]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
fix elem size for "LengthFromEdges" + "QuadraticMesh"
authoreap <eap@opencascade.com>
Tue, 18 Apr 2006 12:52:10 +0000 (12:52 +0000)
committereap <eap@opencascade.com>
Tue, 18 Apr 2006 12:52:10 +0000 (12:52 +0000)
src/StdMeshers/StdMeshers_MEFISTO_2D.cxx

index d63d2e6f2490333ab1f195ca3500230648f7f8c1..87b8e797e6f5a0203b94ba27e7e19daea7bf6473 100644 (file)
@@ -220,6 +220,9 @@ bool StdMeshers_MEFISTO_2D::Compute(SMESH_Mesh & aMesh, const TopoDS_Shape & aSh
   myTool = new StdMeshers_Helper(aMesh);
   _quadraticMesh = myTool->IsQuadraticSubMesh(aShape);
 
+  if ( _quadraticMesh && _hypLengthFromEdges )
+    _edgeLength *= 2.;
+
   myOuterWire = BRepTools::OuterWire(F);
   nbpnt += NumberOfPoints(aMesh, myOuterWire);
   if ( nbpnt < 3 ) { // ex: a circle with 2 segments