X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Gen.hxx;h=b8b98a8a808c734f91d19a67b66d0b81eada2cc7;hb=d9f4b53e489dd5857db264ede6acded7b076c9f1;hp=c94693a0e8c3c1ce70a27b02686bfdfe5009dea1;hpb=0fc0831670e27a5611b941c52dc152fd63964515;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Gen.hxx b/src/SMESH/SMESH_Gen.hxx index c94693a0e..b8b98a8a8 100644 --- a/src/SMESH/SMESH_Gen.hxx +++ b/src/SMESH/SMESH_Gen.hxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2022 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -42,6 +42,7 @@ #include #include +#include class SMESHDS_Document; class SMESH_Algo; @@ -66,8 +67,7 @@ public: SMESH_Gen(); ~SMESH_Gen(); - SMESH_Mesh* CreateMesh(bool theIsEmbeddedMode) - throw(SALOME_Exception); + SMESH_Mesh* CreateMesh(bool theIsEmbeddedMode); enum ComputeFlags { @@ -83,13 +83,15 @@ public: * \param aFlags - ComputeFlags. By default compute the whole mesh and compact at the end. * \param aDim - upper level dimension of the mesh computation (for preview) * \param aShapesId - list of shapes with computed mesh entities (elements or nodes) + * \param anAllowedSubShapes - shapes to mesh only. Mesh all if empty or nullptr * \retval bool - true if none sub-mesh failed to compute */ - bool Compute(::SMESH_Mesh & aMesh, - const TopoDS_Shape & aShape, - const int aFlags = COMPACT_MESH, - const ::MeshDimension aDim=::MeshDim_3D, - TSetOfInt* aShapesId=0); + bool Compute(::SMESH_Mesh & aMesh, + const TopoDS_Shape & aShape, + const int aFlags = COMPACT_MESH, + const ::MeshDimension aDim=::MeshDim_3D, + TSetOfInt* aShapesId=0, + TopTools_IndexedMapOfShape* anAllowedSubShapes=0); void PrepareCompute(::SMESH_Mesh & aMesh, const TopoDS_Shape & aShape); @@ -152,6 +154,7 @@ public: static int GetShapeDim(const TopAbs_ShapeEnum & aShapeType); static int GetShapeDim(const TopoDS_Shape & aShape) { return GetShapeDim( aShape.ShapeType() ); } + static int GetFlatShapeDim(const TopoDS_Shape &aShape); SMESH_Algo* GetAlgo(SMESH_Mesh & aMesh, const TopoDS_Shape & aShape, TopoDS_Shape* assignedTo=0); SMESH_Algo* GetAlgo(SMESH_subMesh * aSubMesh, TopoDS_Shape* assignedTo=0);