Skip to content
Snippets Groups Projects
Select Git revision
  • a36eef78824ebfcf6c100f877cdf0f7b7d5ba6de
  • master default protected
  • patches-4.14
  • steplayer
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • relaying
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • 3023-Fillet2D-Update
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

gmm_precond_ildltt.h

Blame
  • ACISVertex.cpp 1.23 KiB
    // 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>.
    
    #include "ACISVertex.h"
    #include "MPoint.h"
    
    #if defined(HAVE_ACIS)
    #include <point.hxx>
    
    ACISVertex::ACISVertex(GModel *m, int num, VERTEX *v)
      : GVertex(m, num), _v(v)
    {
      APOINT *p = _v->geometry();
      const SPAposition &pos = p->coords();
      _x = pos.coordinate(0);
      _y = pos.coordinate(1);
      _z = pos.coordinate(2);
    }
    
    void ACISVertex::setPosition(GPoint &p)
    {
      _x = p.x();
      _y = p.y();
      _z = p.z();
      if(mesh_vertices.size()){
        mesh_vertices[0]->x() = p.x();
        mesh_vertices[0]->y() = p.y();
        mesh_vertices[0]->z() = p.z();
      }
    }
    
    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