Salome HOME
Add a method comment
authoreap <eap@opencascade.com>
Thu, 20 Dec 2012 15:34:53 +0000 (15:34 +0000)
committereap <eap@opencascade.com>
Thu, 20 Dec 2012 15:34:53 +0000 (15:34 +0000)
src/SMESH_I/SMESH_Mesh_i.cxx

index 969109eca3222b0110db9654644963551c866359..426ece549f081731c98bf073e15d7eeadafc9f35 100644 (file)
@@ -3709,6 +3709,12 @@ SMESH::NodePosition* SMESH_Mesh_i::GetNodePosition(CORBA::Long NodeID)
   return aNodePosition;
 }
 
+//=============================================================================
+/*!
+ * \brief Return position of an element on shape
+ */
+//=============================================================================
+
 SMESH::ElementPosition SMESH_Mesh_i::GetElementPosition(CORBA::Long ElemID)
 {
   if ( _preMeshInfo )
@@ -3728,20 +3734,20 @@ SMESH::ElementPosition SMESH_Mesh_i::GetElementPosition(CORBA::Long ElemID)
     if ( !aSp.IsNull() ) {
       switch ( aSp.ShapeType() ) {
       case TopAbs_EDGE:
-       anElementPosition.shapeType = GEOM::EDGE;
-       break;
+        anElementPosition.shapeType = GEOM::EDGE;
+        break;
       case TopAbs_FACE:
-       anElementPosition.shapeType = GEOM::FACE;
-       break;
+        anElementPosition.shapeType = GEOM::FACE;
+        break;
       case TopAbs_VERTEX:
-       anElementPosition.shapeType = GEOM::VERTEX;
-       break;
+        anElementPosition.shapeType = GEOM::VERTEX;
+        break;
       case TopAbs_SOLID:
-       anElementPosition.shapeType = GEOM::SOLID;
-       break;
+        anElementPosition.shapeType = GEOM::SOLID;
+        break;
       case TopAbs_SHELL:
-       anElementPosition.shapeType = GEOM::SHELL;
-       break;
+        anElementPosition.shapeType = GEOM::SHELL;
+        break;
       default:;
       }
     }