Skip to content
Snippets Groups Projects
gmshEdge.h 904 B
Newer Older
Christophe Geuzaine's avatar
Christophe Geuzaine committed
// Gmsh - Copyright (C) 1997-2009 C. Geuzaine, J.-F. Remacle
Christophe Geuzaine's avatar
Christophe Geuzaine committed
//
// See the LICENSE.txt file for license information. Please report all
// bugs and problems to <gmsh@geuz.org>.

#ifndef _GMSH_EDGE_H_
#define _GMSH_EDGE_H_
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
#include "Geo.h"
#include "GEdge.h"
class gmshEdge : public GEdge {
 protected:
  Curve *c; 

 public:
  gmshEdge(GModel *model, Curve *edge, GVertex *v1, GVertex *v2);
  virtual ~gmshEdge() {}
  virtual Range<double> parBounds(int i) const;
  virtual GeomType geomType() const;
  virtual GPoint point(double p) const;
  virtual SVector3 firstDer(double par) const;
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
  ModelType getNativeType() const { return GmshModel; }
  void * getNativePtr() const { return c; }
Christophe Geuzaine's avatar
 
Christophe Geuzaine committed
  virtual int minimumMeshSegments() const;
  virtual int minimumDrawSegments() const;
  virtual void resetMeshAttributes();
  virtual SPoint2 reparamOnFace(const GFace *face, double epar, int dir) const;