mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
PAL13639 (EDF PAL 317 : SMESH : Create "0D Hypothesis")
modif after change of computeInternalParameters() signature
This commit is contained in:
parent
72f20784cb
commit
c3118ad1b2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user