From 05b2d0aa0082d0d1d0a8cfdaf9c3f93cad8fca24 Mon Sep 17 00:00:00 2001
From: Emilie Marchandise <emilie.marchandise@uclouvain.be>
Date: Wed, 10 Nov 2010 17:47:32 +0000
Subject: [PATCH]

---
 Geo/GPoint.cpp | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 Geo/GPoint.cpp

diff --git a/Geo/GPoint.cpp b/Geo/GPoint.cpp
new file mode 100644
index 0000000000..4fa2165af0
--- /dev/null
+++ b/Geo/GPoint.cpp
@@ -0,0 +1,21 @@
+// Gmsh - Copyright (C) 1997-2010 C. Geuzaine, J.-F. Remacle
+//
+// See the LICENSE.txt file for license information. Please report all
+// bugs and problems to <gmsh@geuz.org>.
+
+#include "GPoint.h"
+#include "Bindings.h"
+
+void GPoint::registerBindings(binding *b)
+{
+  classBinding *cb = b->addClass<GPoint>("GPoint");
+  cb->setDescription("A GPoint.");
+  methodBinding *cm;
+  cm = cb->addMethod("x", (double (GPoint::*)() const) &GPoint::x);
+  cm->setDescription("Return the x-coordinate.");
+  cm = cb->addMethod("y", (double (GPoint::*)() const) &GPoint::y);
+  cm->setDescription("Return the y-coordinate.");
+  cm = cb->addMethod("z", (double (GPoint::*)() const) &GPoint::z);
+  cm->setDescription("Return the z-coordinate.");
+
+}
-- 
GitLab