Salome HOME
PAL13409: EDF282 SMESH: Tetrahedron is added if we specify Mefisto.
[modules/smesh.git] / src / SMDS / SMDS_EdgePosition.cxx
index d9d4caecd92525ea00c9c2dbe713f313ec9b6f38..836b01e3af48ee1f5639b073c2a0c49d4f6ca866 100644 (file)
@@ -17,7 +17,7 @@
 //  License along with this library; if not, write to the Free Software 
 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
 // 
-//  See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org 
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 //
 //
 //  Author : Jean-Michel BOULCOURT
 //  Module : SMESH
 
-using namespace std;
-#include "SMDS_EdgePosition.ixx"
+#include "SMDS_EdgePosition.hxx"
+
 #include "utilities.h"
 
+using namespace std;
+
 //=======================================================================
 //function : SMDS_EdgePosition
 //purpose  : 
 //=======================================================================
 
-SMDS_EdgePosition::SMDS_EdgePosition()
-  :SMDS_Position(0,SMDS_TOP_EDGE),myUParameter(0.)
+SMDS_EdgePosition::SMDS_EdgePosition(const int aEdgeId,
+       const double aUParam):SMDS_Position(aEdgeId), myUParameter(aUParam)
 {
 }
 
 //=======================================================================
-//function : SMDS_EdgePosition
+//function : Coords
 //purpose  : 
 //=======================================================================
 
-SMDS_EdgePosition::SMDS_EdgePosition(const Standard_Integer aEdgeId,
-                                    const Standard_Real aUParam)
-  :SMDS_Position(aEdgeId,SMDS_TOP_EDGE),myUParameter(aUParam)
+const double *SMDS_EdgePosition::Coords() const
 {
+       static double origin[]={0,0,0};
+       MESSAGE("SMDS_EdgePosition::Coords not implemented");
+       return origin;
+}
+
+/**
+*/
+SMDS_TypeOfPosition SMDS_EdgePosition::GetTypeOfPosition() const
+{
+       return SMDS_TOP_EDGE;
+}
+
+void SMDS_EdgePosition::SetUParameter(double aUparam)
+{
+       myUParameter = aUparam;
 }
 
 //=======================================================================
-//function : Coords
+//function : GetUParameter
 //purpose  : 
 //=======================================================================
 
-gp_Pnt SMDS_EdgePosition::Coords() const
+double SMDS_EdgePosition::GetUParameter() const 
 {
-  MESSAGE( "SMDS_EdgePosition::Coords not implemented" );
-  return gp_Pnt(0,0,0);
+       return myUParameter;
 }