X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_ProjectionSource2D.hxx;h=2ad26a6d0e14b8a2eeaa3b128176ffd2c6fa59c2;hp=2a6b6d6565ed1cf986a042c5b1771124dcfef8d8;hb=52a4f79f459f6e7fc5367ea83c1fe5fb9e42b4dd;hpb=b1d2a14730e4340aae319544f8e3396ddfcfde1f diff --git a/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx b/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx index 2a6b6d656..2ad26a6d0 100644 --- a/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx +++ b/src/StdMeshers/StdMeshers_ProjectionSource2D.hxx @@ -32,7 +32,6 @@ #include "SMESH_Hypothesis.hxx" #include "Utils_SALOME_Exception.hxx" -#include #include class SMESH_Gen; @@ -60,9 +59,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 @@ -143,7 +148,7 @@ public: protected: - TopoDS_Face _sourceFace; + TopoDS_Shape _sourceFace; SMESH_Mesh* _sourceMesh; TopoDS_Vertex _sourceVertex1; TopoDS_Vertex _sourceVertex2;