diff --git a/Geo/ACISVertex.cpp b/Geo/ACISVertex.cpp index e7c10e3632bd04e2accd77ea87bd1773221ba4af..366bd832ef5f235b6da19e4c45467d7000d5cfc8 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