PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis")

modif after change of computeInternalParameters() signature
This commit is contained in:
eap 2007-02-20 07:27:44 +00:00
parent 72f20784cb
commit c3118ad1b2

View File

@ -48,6 +48,7 @@
#include <TopoDS_Solid.hxx> #include <TopoDS_Solid.hxx>
#include <TopoDS_Shell.hxx> #include <TopoDS_Shell.hxx>
#include <BRepTools.hxx> #include <BRepTools.hxx>
#include <BRepAdaptor_Curve.hxx>
#include <TopTools_ListIteratorOfListOfShape.hxx> #include <TopTools_ListIteratorOfListOfShape.hxx>
#include <BRepBuilderAPI_MakeEdge.hxx> #include <BRepBuilderAPI_MakeEdge.hxx>
#include <gp.hxx> #include <gp.hxx>
@ -316,13 +317,14 @@ public:
myUsedHyps.push_back( hyp->GetLayerDistribution() ); myUsedHyps.push_back( hyp->GetLayerDistribution() );
TopoDS_Edge edge = BRepBuilderAPI_MakeEdge( pIn, pOut ); TopoDS_Edge edge = BRepBuilderAPI_MakeEdge( pIn, pOut );
SMESH_Hypothesis::Hypothesis_Status aStatus; SMESH_Hypothesis::Hypothesis_Status aStatus;
if ( !StdMeshers_Regular_1D::CheckHypothesis( aMesh, edge, aStatus )) if ( !StdMeshers_Regular_1D::CheckHypothesis( aMesh, edge, aStatus ))
RETURN_BAD_RESULT("StdMeshers_Regular_1D::CheckHypothesis() failed with status "<<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; 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"); RETURN_BAD_RESULT("StdMeshers_Regular_1D::computeInternalParameters() failed");
positions.clear(); positions.clear();