]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
0021676: EDF 2283 NETGENPLUGIN: Improve Netgen 1D-2D-3D to generate pyramids in case...
authoreap <eap@opencascade.com>
Thu, 5 Jul 2012 09:40:33 +0000 (09:40 +0000)
committereap <eap@opencascade.com>
Thu, 5 Jul 2012 09:40:33 +0000 (09:40 +0000)
+  const TopoDS_Shape& GetShape() const { return myShape; }

src/StdMeshers/StdMeshers_QuadToTriaAdaptor.cxx
src/StdMeshers/StdMeshers_QuadToTriaAdaptor.hxx

index d9907cba9c5355dc1ca3c6320bc2532cd9fb9378..5764cc6eac0520dda5a7f2a24ae226c59a627b0d 100644 (file)
@@ -705,9 +705,9 @@ int StdMeshers_QuadToTriaAdaptor::Preparation(const SMDS_MeshElement*       face
 //purpose  : 
 //=======================================================================
 
-bool StdMeshers_QuadToTriaAdaptor::Compute(SMESH_Mesh&           aMesh,
-                                           const TopoDS_Shape&   aShape,
-                                           SMESH_ProxyMesh* aProxyMesh)
+bool StdMeshers_QuadToTriaAdaptor::Compute(SMESH_Mesh&         aMesh,
+                                           const TopoDS_Shape& aShape,
+                                           SMESH_ProxyMesh*    aProxyMesh)
 {
   SMESH_ProxyMesh::setMesh( aMesh );
 
@@ -715,6 +715,8 @@ bool StdMeshers_QuadToTriaAdaptor::Compute(SMESH_Mesh&           aMesh,
        aShape.ShapeType() != TopAbs_SHELL )
     return false;
 
+  myShape = aShape;
+
   vector<const SMDS_MeshElement*> myPyramids;
 
   SMESHDS_Mesh * meshDS = aMesh.GetMeshDS();
index 66e498592029c5a81caca7b2baf4da8f2ace440d..87063ee3f416098685fdbc8d39b81872dc158ed4 100644 (file)
@@ -17,7 +17,6 @@
 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
-//  SMESH SMESH : implementaion of SMESH idl descriptions
 //  File   : StdMeshers_QuadToTriaAdaptor.hxx
 //  Module : SMESH
 //
@@ -61,6 +60,8 @@ public:
 
   bool Compute(SMESH_Mesh& aMesh);
 
+  const TopoDS_Shape& GetShape() const { return myShape; }
+
 protected:
 
   int Preparation(const SMDS_MeshElement* face,
@@ -87,11 +88,10 @@ protected:
                      std::set<const SMDS_MeshNode*>& nodesToMove);
 
 
+  TopoDS_Shape                      myShape;
   std::set<const SMDS_MeshElement*> myRemovedTrias;
-
   std::list< const SMDS_MeshNode* > myDegNodes;
-
-  const SMESH_ElementSearcher* myElemSearcher;
+  const SMESH_ElementSearcher*      myElemSearcher;
 };
 
 #endif