diff --git a/Geo/GEdge.cpp b/Geo/GEdge.cpp index 7d04e8e735c584105dec29f519272e0662a558f9..86fc4b682c423725488897151a572e2a8ec2ae1d 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 1d36d466a9f0caefa9487a3f6c5d514b9c3a094e..6a7ab364f0a37aecde9f0a27a046c03fa5eb2721 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); }