gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
64 MTrihedron(
const std::vector<MVertex *> &v,
int num = 0,
int part = 0)
67 for(
int i = 0; i < 4; i++)
_v[i] = v[i];
70 virtual int getDim()
const {
return 3; }
81 virtual void getEdgeRep(
bool curved,
int num,
double *x,
double *y,
double *
z,
103 virtual void getFaceRep(
bool curved,
int num,
double *x,
double *y,
double *
z,
106 static const int f[2][3] = {{0, 1, 3}, {1, 2, 3}};
112 v.resize((num == 0) ? 4 : 3);
127 virtual void getNode(
int num,
double &u,
double &v,
double &w)
const
154 virtual bool isInside(
double u,
double v,
double w)
const
157 if(u < -(1. + tol) || v < -(1. + tol) || u > (1. + tol) || v > (1. + tol) ||
164 static const int e[5][2] = {
165 {0, 1}, {1, 2}, {2, 3}, {3, 0}, {1, 3},
167 return e[edge][vert];
171 static const int f[3][4] = {
176 return f[face][vert];
virtual void getFaceRep(bool curved, int num, double *x, double *y, double *z, SVector3 *n)
virtual bool isInside(double u, double v, double w) const
virtual int getNumEdgesRep(bool curved)
virtual int getDim() const
MTrihedron(MVertex *v0, MVertex *v1, MVertex *v2, MVertex *v3, int num=0, int part=0)
static int faces_trihedron(const int face, const int vert)
virtual double getVolume()
void f(int n, double u, double *val)
virtual void getEdgeVertices(const int num, std::vector< MVertex * > &v) const
virtual int numCommonNodesInDualGraph(const MElement *const other) const
virtual void getEdgeRep(bool curved, int num, double *x, double *y, double *z, SVector3 *n)
virtual int getVolumeSign()
MTrihedron(const std::vector< MVertex * > &v, int num=0, int part=0)
virtual int getType() const
virtual void setVertex(int num, MVertex *v)
virtual MFace getFace(int num) const
void _getEdgeRep(MVertex *v0, MVertex *v1, double *x, double *y, double *z, SVector3 *n, int faceIndex=-1)
MVertex * getVertex(std::size_t i) const
virtual int getNumFaces()
virtual int getNumEdges() const
virtual void getNode(int num, double &u, double &v, double &w) const
virtual int getNumFacesRep(bool curved)
virtual void getFaceVertices(const int num, std::vector< MVertex * > &v) const
void _getFaceVertices(const int num, std::vector< MVertex * > &v) const
virtual MEdge getEdge(int num) const
virtual SPoint3 barycenterUVW() const
virtual int getTypeForMSH() const
virtual const MVertex * getVertex(int num) const
double getTolerance() const
void _getFaceRep(MVertex *v0, MVertex *v1, MVertex *v2, double *x, double *y, double *z, SVector3 *n)
static int edges_trihedron(const int edge, const int vert)
void _getEdgeVertices(const int num, std::vector< MVertex * > &v) const
virtual bool setVolumePositive()
virtual MVertex * getVertex(int num)
virtual std::size_t getNumVertices() const