Skip to content
Snippets Groups Projects
Commit 2f42ac75 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

oop

parent 12ad02ac
No related branches found
No related tags found
No related merge requests found
// 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 // See the LICENSE.txt file for license information. Please report all
// bugs and problems to the public mailing list <gmsh@geuz.org>. // bugs and problems to the public mailing list <gmsh@geuz.org>.
...@@ -33,3 +33,22 @@ void ACISVertex::setPosition(GPoint &p) ...@@ -33,3 +33,22 @@ void ACISVertex::setPosition(GPoint &p)
SPoint2 ACISVertex::reparamOnFace(const GFace *gf, int dir) const 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment