From bb5cf037197d8b7f117732aaf474b597cb1e9878 Mon Sep 17 00:00:00 2001
From: Emilie Marchandise <emilie.marchandise@uclouvain.be>
Date: Thu, 11 Nov 2010 07:55:44 +0000
Subject: [PATCH] Lift And Drag better, but dgFunctionEvaluator returns some
 out of range values (bbox ?, precision ?)

---
 Geo/GEdge.cpp    | 4 ++++
 Geo/MElement.cpp | 3 +++
 2 files changed, 7 insertions(+)

diff --git a/Geo/GEdge.cpp b/Geo/GEdge.cpp
index 7d04e8e735..86fc4b682c 100644
--- a/Geo/GEdge.cpp
+++ b/Geo/GEdge.cpp
@@ -395,6 +395,10 @@ void GEdge::registerBindings(binding *b)
   mb = cb->addMethod("getHighBound", &GEdge::getHighBound);
   mb->setDescription("get the lower bound of the parametrization of the Edge");
 
+  mb = cb->addMethod("getMeshElement", &GEdge::getMeshElement);
+  mb->setDescription("get the mesh element with the given index");
+  mb->setArgNames("index", NULL);
+
   //mb = cb->addMethod("point", &GEdge::point);
   //mb->setDescription("returns the GPoint for a given double parameter");
   //mb->setArgNames("double", NULL);
diff --git a/Geo/MElement.cpp b/Geo/MElement.cpp
index 1d36d466a9..6a7ab364f0 100644
--- a/Geo/MElement.cpp
+++ b/Geo/MElement.cpp
@@ -1137,4 +1137,7 @@ void MElement::registerBindings(binding *b)
   cm = cb->addMethod("xyzTouvw", &MElement::xyzTouvw);
   cm->setDescription("get uvw from xyz");
   cm->setArgNames("xyzuvw",NULL);
+  cm = cb->addMethod("getVertex", &MElement::getVertex);
+  cm->setDescription("get the vertex with the given index");
+  cm->setArgNames("index",NULL);
 }
-- 
GitLab