gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
xyEdge.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 XY_EDGE_H
7 #define XY_EDGE_H
8 
9 #include "GEdge.h"
10 
11 class xyEdge : public GEdge {
12 public:
13  xyEdge(GModel *gm, int t) : GEdge(gm, t){};
14  virtual ~xyEdge() {}
15  virtual Range<double> parBounds(int i) const { return Range<double>(0, 1); }
16  virtual GeomType geomType() const { return GEntity::Line; }
17  virtual GPoint point(double p) const { return GPoint(); }
18  virtual SVector3 firstDer(double par) const { return SVector3(); }
19  virtual SVector3 secondDer(double par) const { return SVector3(); }
20  ModelType getNativeType() const { return GmshModel; }
21  void *getNativePtr() const { return nullptr; }
22  virtual SPoint2 reparamOnFace(const GFace *face, double epar, int dir) const
23  {
24  return SPoint2();
25  }
26  virtual bool degenerate(int dim) const { return false; }
27  virtual bool isMeshDegenerated() const { return false; }
28 };
29 
30 #endif
GEntity::ModelType
ModelType
Definition: GEntity.h:79
GFace
Definition: GFace.h:33
SPoint2
Definition: SPoint2.h:12
xyEdge::getNativePtr
void * getNativePtr() const
Definition: xyEdge.h:21
SVector3
Definition: SVector3.h:16
xyEdge::geomType
virtual GeomType geomType() const
Definition: xyEdge.h:16
xyEdge::isMeshDegenerated
virtual bool isMeshDegenerated() const
Definition: xyEdge.h:27
xyEdge::degenerate
virtual bool degenerate(int dim) const
Definition: xyEdge.h:26
xyEdge::~xyEdge
virtual ~xyEdge()
Definition: xyEdge.h:14
GEntity::GmshModel
@ GmshModel
Definition: GEntity.h:81
GPoint
Definition: GPoint.h:13
GEdge::dim
virtual int dim() const
Definition: GEdge.h:86
GEdge.h
xyEdge::firstDer
virtual SVector3 firstDer(double par) const
Definition: xyEdge.h:18
Range
Definition: Range.h:10
xyEdge
Definition: xyEdge.h:11
xyEdge::reparamOnFace
virtual SPoint2 reparamOnFace(const GFace *face, double epar, int dir) const
Definition: xyEdge.h:22
GModel
Definition: GModel.h:44
xyEdge::secondDer
virtual SVector3 secondDer(double par) const
Definition: xyEdge.h:19
GEntity::Line
@ Line
Definition: GEntity.h:92
GEntity::GeomType
GeomType
Definition: GEntity.h:88
xyEdge::xyEdge
xyEdge(GModel *gm, int t)
Definition: xyEdge.h:13
xyEdge::parBounds
virtual Range< double > parBounds(int i) const
Definition: xyEdge.h:15
xyEdge::point
virtual GPoint point(double p) const
Definition: xyEdge.h:17
GEdge
Definition: GEdge.h:26
xyEdge::getNativeType
ModelType getNativeType() const
Definition: xyEdge.h:20