]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis")
authoreap <eap@opencascade.com>
Tue, 20 Feb 2007 07:27:44 +0000 (07:27 +0000)
committereap <eap@opencascade.com>
Tue, 20 Feb 2007 07:27:44 +0000 (07:27 +0000)
   modif after change of computeInternalParameters() signature

src/StdMeshers/StdMeshers_RadialPrism_3D.cxx

index 4564000325e6691c2f26480c41ea41f2cf06171f..0b6a697cce73cda3cde8205209e004522b218f60 100644 (file)
@@ -48,6 +48,7 @@
 #include <TopoDS_Solid.hxx>
 #include <TopoDS_Shell.hxx>
 #include <BRepTools.hxx>
+#include <BRepAdaptor_Curve.hxx>
 #include <TopTools_ListIteratorOfListOfShape.hxx>
 #include <BRepBuilderAPI_MakeEdge.hxx>
 #include <gp.hxx>
@@ -316,13 +317,14 @@ public:
     myUsedHyps.push_back( hyp->GetLayerDistribution() );
 
     TopoDS_Edge edge = BRepBuilderAPI_MakeEdge( pIn, pOut );
-
     SMESH_Hypothesis::Hypothesis_Status aStatus;
     if ( !StdMeshers_Regular_1D::CheckHypothesis( aMesh, edge, aStatus ))
       RETURN_BAD_RESULT("StdMeshers_Regular_1D::CheckHypothesis() failed with status "<<aStatus);
 
+    BRepAdaptor_Curve C3D(edge);
+    double f = C3D.FirstParameter(), l = C3D.LastParameter();
     list< double > params;
-    if ( !StdMeshers_Regular_1D::computeInternalParameters( edge, params, false ))
+    if ( !StdMeshers_Regular_1D::computeInternalParameters( C3D, len, f, l, params, false ))
       RETURN_BAD_RESULT("StdMeshers_Regular_1D::computeInternalParameters() failed");
 
     positions.clear();