X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_ProjectionSource2D.hxx;h=e75e38dabf320ff7fb7aa588e6c03e000efc2438;hp=28c44aedba4a7dbef4e5d1695b9957faa10e3e94;hb=85b1cfc1f07d0b93d88803c6c0ccadf8f3349719;hpb=146d142e7b11fee8e085906f7a5aae457edd8757 diff --git a/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx b/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx index 28c44aedb..e75e38dab 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx @@ -34,7 +34,6 @@ #include "SMESH_Hypothesis.hxx" #include "Utils_SALOME_Exception.hxx" -#include #include class SMESH_Gen; @@ -62,9 +61,15 @@ public: throw ( SALOME_Exception ); /*! - * Returns the source face + * Returns the source face or a group containing faces */ - TopoDS_Face GetSourceFace() const; + TopoDS_Shape GetSourceFace() const; + + /*! + * Returns true the source face is a group of faces + */ + bool IsCompoundSource() const + { return !_sourceFace.IsNull() && _sourceFace.ShapeType() == TopAbs_COMPOUND; } /*! * Sets source to take a mesh pattern from @@ -145,7 +150,7 @@ public: protected: - TopoDS_Face _sourceFace; + TopoDS_Shape _sourceFace; SMESH_Mesh* _sourceMesh; TopoDS_Vertex _sourceVertex1; TopoDS_Vertex _sourceVertex2;