From 2f42ac75e45f4a0a503fee3c52327f46c1f0dab7 Mon Sep 17 00:00:00 2001
From: Christophe Geuzaine <cgeuzaine@ulg.ac.be>
Date: Fri, 7 Feb 2014 07:42:09 +0000
Subject: [PATCH] oop

---
 Geo/ACISVertex.cpp | 21 ++++++++++++++++++++-
 1 file changed, 20 insertions(+), 1 deletion(-)

diff --git a/Geo/ACISVertex.cpp b/Geo/ACISVertex.cpp
index e7c10e3632..366bd832ef 100644
--- a/Geo/ACISVertex.cpp
+++ b/Geo/ACISVertex.cpp
@@ -1,4 +1,4 @@
-// Gmsh - Copyright (C) 1997-2014 C. Geuzaine, J.-F. Remacle
+// Gmsh - Copyright (C) 1997-2013 C. Geuzaine, J.-F. Remacle
 //
 // See the LICENSE.txt file for license information. Please report all
 // bugs and problems to the public mailing list <gmsh@geuz.org>.
@@ -33,3 +33,22 @@ void ACISVertex::setPosition(GPoint &p)
 
 SPoint2 ACISVertex::reparamOnFace(const GFace *gf, int dir) const
 {
+  // FIXME there is definitively a fastest way to do it and this is wring for seams �!!!
+  return gf->parFromPoint(SPoint3(x(),y(),z()));
+}
+
+GVertex *getACISVertexByNativePtr(GModel *model, VERTEX* toFind)
+{
+  GModel::viter it =model->firstVertex();
+  for (; it != model->lastVertex(); it++){
+    ACISVertex *av = dynamic_cast<ACISVertex*>(*it);
+    if (av){
+      if (toFind == av->getVERTEX()){
+	return *it;
+      }
+    }
+  }
+  return 0;
+}
+
+#endif
-- 
GitLab