X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_Prism_3D.hxx;h=546bf4950b92281680bbc424827bcb9da51339ba;hp=6c7c52fe1bf2c7f2589f4aa4cbc25669f39f750d;hb=52d825495306f72048c8754aa5c86c6a390f8262;hpb=b385a0679d4079d84272d9fe9006c2736beeb907 diff --git a/src/StdMeshers/StdMeshers_Prism_3D.hxx b/src/StdMeshers/StdMeshers_Prism_3D.hxx index 6c7c52fe1..546bf4950 100644 --- a/src/StdMeshers/StdMeshers_Prism_3D.hxx +++ b/src/StdMeshers/StdMeshers_Prism_3D.hxx @@ -412,7 +412,8 @@ struct StdMeshers_Sweeper std::vector< TNodeColumn* > myIntColumns; // internal nodes bool ComputeNodes( SMESH_MesherHelper& helper, - const double tol ); + const double tol, + const bool allowHighBndError ); private: @@ -482,7 +483,9 @@ public: * \brief Analyse shape geometry and mesh. * If there are triangles on one of faces, it becomes 'bottom' */ - bool initPrism(Prism_3D::TPrismTopo& thePrism, const TopoDS_Shape& theSolid); + bool initPrism(Prism_3D::TPrismTopo& thePrism, + const TopoDS_Shape& theSolid, + const bool selectBottom = true); /*! * \brief Fill thePrism.myWallQuads and thePrism.myTopEdges @@ -527,6 +530,11 @@ public: */ double getSweepTolerance( const Prism_3D::TPrismTopo& thePrism ); + /*! + * \brief Defines if it's safe to use the block approach + */ + bool isSimpleBottom( const Prism_3D::TPrismTopo& thePrism ); + /*! * \brief Project mesh faces from a source FACE of one prism to * a source FACE of another prism @@ -556,6 +564,7 @@ private: bool myProjectTriangles; bool mySetErrorToSM; + bool myUseBlock; StdMeshers_PrismAsBlock myBlock; SMESH_MesherHelper* myHelper;