gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
gmshEdge.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef GMSH_EDGE_H
7 #define GMSH_EDGE_H
8 
9 #include "GEdge.h"
10 
11 class Curve;
12 
13 class gmshEdge : public GEdge {
14 private:
16 
17 public:
18  gmshEdge(GModel *model, Curve *c, GVertex *v1, GVertex *v2);
19  virtual ~gmshEdge() {}
20  virtual Range<double> parBounds(int i) const;
21  virtual GeomType geomType() const;
22  virtual bool haveParametrization();
23  virtual GPoint point(double p) const;
24  virtual SVector3 firstDer(double par) const;
25  virtual SVector3 secondDer(double par) const;
26  virtual ModelType getNativeType() const { return GmshModel; }
27  virtual void *getNativePtr() const { return _c; }
28  virtual std::string getAdditionalInfoString(bool multline = false);
29  virtual int minimumMeshSegments() const;
30  virtual int minimumDrawSegments() const;
31  virtual void resetMeshAttributes();
32  virtual SPoint2 reparamOnFace(const GFace *face, double epar, int dir) const;
33  virtual void writeGEO(FILE *fp);
34  virtual void discretize(double tol, std::vector<SPoint3> &dpts,
35  std::vector<double> &ts);
36  virtual bool degenerate(int dim) const;
37  void resetNativePtr(Curve *edge, GVertex *v1, GVertex *v2);
38 };
39 
40 #endif
GEntity::ModelType
ModelType
Definition: GEntity.h:79
gmshEdge::writeGEO
virtual void writeGEO(FILE *fp)
Definition: gmshEdge.cpp:439
Curve
Definition: Geo.h:74
GFace
Definition: GFace.h:33
GEntity::model
GModel * model() const
Definition: GEntity.h:277
SPoint2
Definition: SPoint2.h:12
c
static double c(int i, int j, fullMatrix< double > &CA, const std::vector< SPoint3 > &P, const std::vector< SPoint3 > &Q)
Definition: discreteFrechetDistance.cpp:15
SVector3
Definition: SVector3.h:16
gmshEdge::minimumMeshSegments
virtual int minimumMeshSegments() const
Definition: gmshEdge.cpp:158
gmshEdge
Definition: gmshEdge.h:13
GEntity::GmshModel
@ GmshModel
Definition: GEntity.h:81
GPoint
Definition: GPoint.h:13
GEdge::dim
virtual int dim() const
Definition: GEdge.h:86
gmshEdge::discretize
virtual void discretize(double tol, std::vector< SPoint3 > &dpts, std::vector< double > &ts)
Definition: gmshEdge.cpp:539
gmshEdge::minimumDrawSegments
virtual int minimumDrawSegments() const
Definition: gmshEdge.cpp:181
gmshEdge::firstDer
virtual SVector3 firstDer(double par) const
Definition: gmshEdge.cpp:89
GEdge.h
gmshEdge::parBounds
virtual Range< double > parBounds(int i) const
Definition: gmshEdge.cpp:78
Range
Definition: Range.h:10
gmshEdge::_c
Curve * _c
Definition: gmshEdge.h:15
GVertex
Definition: GVertex.h:23
gmshEdge::gmshEdge
gmshEdge(GModel *model, Curve *c, GVertex *v1, GVertex *v2)
Definition: gmshEdge.cpp:45
gmshEdge::reparamOnFace
virtual SPoint2 reparamOnFace(const GFace *face, double epar, int dir) const
Definition: gmshEdge.cpp:193
GModel
Definition: GModel.h:44
gmshEdge::resetNativePtr
void resetNativePtr(Curve *edge, GVertex *v1, GVertex *v2)
Definition: gmshEdge.cpp:51
gmshEdge::point
virtual GPoint point(double p) const
Definition: gmshEdge.cpp:83
gmshEdge::getNativePtr
virtual void * getNativePtr() const
Definition: gmshEdge.h:27
gmshEdge::secondDer
virtual SVector3 secondDer(double par) const
Definition: gmshEdge.cpp:95
GEntity::GeomType
GeomType
Definition: GEntity.h:88
gmshEdge::degenerate
virtual bool degenerate(int dim) const
Definition: gmshEdge.cpp:63
gmshEdge::geomType
virtual GeomType geomType() const
Definition: gmshEdge.cpp:101
gmshEdge::getNativeType
virtual ModelType getNativeType() const
Definition: gmshEdge.h:26
gmshEdge::haveParametrization
virtual bool haveParametrization()
Definition: gmshEdge.cpp:127
GEdge
Definition: GEdge.h:26
gmshEdge::~gmshEdge
virtual ~gmshEdge()
Definition: gmshEdge.h:19
gmshEdge::resetMeshAttributes
virtual void resetMeshAttributes()
Definition: gmshEdge.cpp:68
gmshEdge::getAdditionalInfoString
virtual std::string getAdditionalInfoString(bool multline=false)
Definition: gmshEdge.cpp:132