Salome HOME
Integration of PAL/SALOME V2.1.0c from OCC
[modules/smesh.git] / src / SMDS / SMDS_Position.cxx
index 0a634ceb2eb0eeddc508f4973648b9cc2ab5dc72..926aa4bf97d7efa266ac2f6564b15fa2cc38c952 100644 (file)
@@ -55,3 +55,22 @@ int SMDS_Position::GetShapeId() const
 {
        return myShapeId;
 }
+
+//=======================================================================
+//function : GetDim
+//purpose  : 
+//=======================================================================
+
+int SMDS_Position::GetDim() const
+{
+//   switch ( GetTypeOfPosition() ) {
+//   case SMDS_TOP_UNSPEC:  return -1;
+//   case SMDS_TOP_VERTEX:  return 0;
+//   case SMDS_TOP_EDGE:    return 1;
+//   case SMDS_TOP_FACE:    return 2;
+//   case SMDS_TOP_3DSPACE: return 3;
+//   }
+  return GetTypeOfPosition();
+}
+
+