-/*
- * ExchangePlugin_Tools.cpp
- *
- * Created on: May 15, 2015
- * Author: spo
- */
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
+// File: ExchangePlugin_Tools.cpp
+// Created: May 15, 2015
+// Author: Sergey POKHODENKO
#include <ExchangePlugin_Tools.h>
theResult.push_back(aSection);
return theResult;
}
+
+std::string ExchangePlugin_Tools::selectionType2xaoDimension(const std::string& theType)
+{
+ if (theType == "Vertices" || theType == "vertex")
+ return "vertex";
+ else if (theType == "Edges" || theType == "edge")
+ return "edge";
+ else if (theType == "Faces" || theType == "face")
+ return "face";
+ else if (theType == "Solids" || theType == "solid")
+ return "solid";
+
+ return std::string();
+}
+
+std::string ExchangePlugin_Tools::xaoDimension2selectionType(const std::string& theDimension)
+{
+ if (theDimension == "vertex")
+ return "vertex";
+ else if (theDimension == "edge")
+ return "edge";
+ else if (theDimension == "face")
+ return "face";
+ else if (theDimension == "solid")
+ return "solid";
+
+ return std::string();
+}
+