diff --git a/Geo/GPoint.cpp b/Geo/GPoint.cpp new file mode 100644 index 0000000000000000000000000000000000000000..4fa2165af0a63b0e6f1f520ade3b443452a2119a --- /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."); + +}