Salome HOME
Fix error message for the case of adjacent faces with triangular elements
[modules/smesh.git] / src / StdMeshers / StdMeshers_Deflection1D.cxx
index aa503e79c7965ccf03032267c8cdec971d89ff7a..a8716d18912c616a6c98198328f594b12d4760d3 100644 (file)
@@ -204,7 +204,7 @@ bool StdMeshers_Deflection1D::SetParametersByMesh(const SMESH_Mesh*   theMesh,
   {
     const TopoDS_Edge& edge = TopoDS::Edge( edgeMap( iE ));
     Handle(Geom_Curve) C = BRep_Tool::Curve( edge, L, UMin, UMax );
-    GeomAdaptor_Curve AdaptCurve(C);
+    GeomAdaptor_Curve AdaptCurve(C, UMin, UMax);
     if ( AdaptCurve.GetType() != GeomAbs_Line )
     {
       vector< double > params;