gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
gmshFace.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_FACE_H
7 #define GMSH_FACE_H
8 
9 #include "GFace.h"
10 
11 class Surface;
12 
13 class gmshFace : public GFace {
14 private:
16 
17 public:
18  gmshFace(GModel *m, Surface *s);
19  virtual ~gmshFace() {}
20  virtual Range<double> parBounds(int i) const;
21  using GFace::point;
22  virtual GPoint point(double par1, double par2) const;
23  virtual GPoint closestPoint(const SPoint3 &queryPoint,
24  const double initialGuess[2]) const;
25  virtual bool containsPoint(const SPoint3 &pt) const;
26  virtual double getMetricEigenvalue(const SPoint2 &);
27  virtual SVector3 normal(const SPoint2 &param) const;
28  virtual Pair<SVector3, SVector3> firstDer(const SPoint2 &param) const;
29  virtual void secondDer(const SPoint2 &, SVector3 &, SVector3 &,
30  SVector3 &) const;
31  virtual GEntity::GeomType geomType() const;
32  virtual bool haveParametrization();
33  virtual ModelType getNativeType() const { return GmshModel; }
34  virtual void *getNativePtr() const { return _s; }
35  virtual SPoint2 parFromPoint(const SPoint3 &, bool onSurface = true,
36  bool convTestXYZ = false) const;
37  virtual void resetMeshAttributes();
38  void resetNativePtr(Surface *s);
39  bool degenerate(int dim) const;
40 };
41 
42 #endif
GEntity::ModelType
ModelType
Definition: GEntity.h:79
gmshFace::parBounds
virtual Range< double > parBounds(int i) const
Definition: gmshFace.cpp:133
gmshFace::~gmshFace
virtual ~gmshFace()
Definition: gmshFace.h:19
GFace.h
gmshFace::geomType
virtual GEntity::GeomType geomType() const
Definition: gmshFace.cpp:300
gmshFace::_s
Surface * _s
Definition: gmshFace.h:15
GFace
Definition: GFace.h:33
SPoint2
Definition: SPoint2.h:12
SPoint3
Definition: SPoint3.h:14
GFace::point
virtual GPoint point(double par1, double par2) const =0
SVector3
Definition: SVector3.h:16
gmshFace::getNativePtr
virtual void * getNativePtr() const
Definition: gmshFace.h:34
GEntity::GmshModel
@ GmshModel
Definition: GEntity.h:81
GFace::dim
virtual int dim() const
Definition: GFace.h:175
gmshFace::resetNativePtr
void resetNativePtr(Surface *s)
Definition: gmshFace.cpp:39
GPoint
Definition: GPoint.h:13
gmshFace
Definition: gmshFace.h:13
gmshFace::firstDer
virtual Pair< SVector3, SVector3 > firstDer(const SPoint2 &param) const
Definition: gmshFace.cpp:194
Range
Definition: Range.h:10
gmshFace::resetMeshAttributes
virtual void resetMeshAttributes()
Definition: gmshFace.cpp:107
gmshFace::getMetricEigenvalue
virtual double getMetricEigenvalue(const SPoint2 &)
Definition: gmshFace.cpp:101
GModel
Definition: GModel.h:44
Surface
Definition: Geo.h:111
gmshFace::closestPoint
virtual GPoint closestPoint(const SPoint3 &queryPoint, const double initialGuess[2]) const
Definition: gmshFace.cpp:244
gmshFace::haveParametrization
virtual bool haveParametrization()
Definition: gmshFace.cpp:316
GEntity::GeomType
GeomType
Definition: GEntity.h:88
gmshFace::secondDer
virtual void secondDer(const SPoint2 &, SVector3 &, SVector3 &, SVector3 &) const
Definition: gmshFace.cpp:210
gmshFace::parFromPoint
virtual SPoint2 parFromPoint(const SPoint3 &, bool onSurface=true, bool convTestXYZ=false) const
Definition: gmshFace.cpp:284
Pair
Definition: Pair.h:10
gmshFace::point
virtual GPoint point(double par1, double par2) const
Definition: gmshFace.cpp:228
gmshFace::containsPoint
virtual bool containsPoint(const SPoint3 &pt) const
Definition: gmshFace.cpp:321
gmshFace::normal
virtual SVector3 normal(const SPoint2 &param) const
Definition: gmshFace.cpp:135
gmshFace::getNativeType
virtual ModelType getNativeType() const
Definition: gmshFace.h:33
gmshFace::degenerate
bool degenerate(int dim) const
Definition: gmshFace.cpp:29
gmshFace::gmshFace
gmshFace(GModel *m, Surface *s)
Definition: gmshFace.cpp:23