gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
60 double x()
const {
return _x; }
61 double y()
const {
return _y; }
62 double z()
const {
return _z; }
63 double &
x() {
return _x; }
64 double &
y() {
return _y; }
65 double &
z() {
return _z; }
107 double dx =
_x - v->
x();
108 double dy =
_y - v->
y();
109 double dz =
_z - v->
z();
110 return std::sqrt(dx * dx + dy * dy + dz * dz);
114 void writeMSH(FILE *fp,
bool binary =
false,
bool saveParametric =
false,
115 double scalingFactor = 1.0);
116 void writeMSH2(FILE *fp,
bool binary =
false,
bool saveParametric =
false,
117 double scalingFactor = 1.0);
119 void writeVRML(FILE *fp,
double scalingFactor = 1.0);
120 void writeUNV(FILE *fp,
bool officialExponentFormat,
121 double scalingFactor = 1.0);
122 void writeVTK(FILE *fp,
bool binary =
false,
double scalingFactor = 1.0,
123 bool bigEndian =
false);
124 void writeMATLAB(FILE *fp,
int type,
bool binary,
double scalingFactor = 1.0);
125 void writeTOCHNOG(FILE *fp,
int dim,
double scalingFactor = 1.0);
126 void writeMESH(FILE *fp,
double scalingFactor = 1.0);
127 void writeOFF(FILE *fp,
double scalingFactor = 1.0);
128 void writeNEU(FILE *fp,
int dim,
double scalingFactor = 1.0);
129 void writeBDF(FILE *fp,
int format = 0,
double scalingFactor = 1.0);
130 void writeINP(FILE *fp,
double scalingFactor = 1.0);
131 void writeKEY(FILE *fp,
double scalingFactor = 1.0);
132 void writeRAD(FILE *fp,
double scalingFactor = 1.0);
133 void writeDIFF(FILE *fp,
bool binary,
double scalingFactor = 1.0);
134 void writeSU2(FILE *fp,
int dim,
double scalingFactor = 1.0);
145 std::size_t num = 0,
double lc = -1.0)
155 if(i != 0)
return false;
161 if(i != 0)
return false;
239 bool onSurface =
true,
bool failOnSeam =
true,
247 const double dx = v1->
x() - v2->
x();
248 const double dy = v1->
y() - v2->
y();
249 const double dz = v1->
z() - v2->
z();
250 return std::sqrt(dx * dx + dy * dy + dz * dz);
void writeRAD(FILE *fp, double scalingFactor=1.0)
size_t operator()(const MVertex *v) const
bool reparamMeshEdgeOnFace(MVertex *v1, MVertex *v2, GFace *gf, SPoint2 ¶m1, SPoint2 ¶m2)
bool operator()(const MVertex *v1, const MVertex *v2) const
void writeVRML(FILE *fp, double scalingFactor=1.0)
MVertexBoundaryLayerData * bl_data
bool operator()(const MVertex *v1, const MVertex *v2) const
double distance(MVertex *v1, MVertex *v2)
bool operator()(const MVertex *v1, const MVertex *v2) const
void setPolynomialOrder(int order)
void writeUNV(FILE *fp, bool officialExponentFormat, double scalingFactor=1.0)
MEdgeVertex(double x, double y, double z, GEntity *ge, double u, std::size_t num=0, double lc=-1.0)
void writeINP(FILE *fp, double scalingFactor=1.0)
std::size_t getNum() const
bool reparamMeshVertexOnEdge(MVertex *v, const GEdge *ge, double ¶m)
virtual bool getParameter(int i, double &par) const
void setXYZ(const SPoint3 &pt)
MFaceVertex(double x, double y, double z, GEntity *ge, double u, double v, std::size_t num=0)
void writeMESH(FILE *fp, double scalingFactor=1.0)
virtual bool getParameter(int i, double &par) const
virtual bool setParameter(int i, double par)
void setIndex(long int index)
virtual bool setParameter(int i, double par)
void writeBDF(FILE *fp, int format=0, double scalingFactor=1.0)
void writeVTK(FILE *fp, bool binary=false, double scalingFactor=1.0, bool bigEndian=false)
void setXYZ(double x, double y, double z)
void writeNEU(FILE *fp, int dim, double scalingFactor=1.0)
virtual bool setParameter(int i, double par)
void writeSU2(FILE *fp, int dim, double scalingFactor=1.0)
void writeMATLAB(FILE *fp, int type, bool binary, double scalingFactor=1.0)
static double getTolerance()
void writeMSH2(FILE *fp, bool binary=false, bool saveParametric=false, double scalingFactor=1.0)
virtual char getVisibility()
void writeMSH(FILE *fp, bool binary=false, bool saveParametric=false, double scalingFactor=1.0)
void forceNum(std::size_t num)
bool reparamMeshVertexOnFace(MVertex const *v, const GFace *gf, SPoint2 ¶m, bool onSurface=true, bool failOnSeam=true, int dir=1)
virtual bool getParameter(int i, double &par) const
virtual void setVisibility(char val)
long int getIndex() const
MVertexBoundaryLayerData * bl_data
void writeKEY(FILE *fp, double scalingFactor=1.0)
void writeTOCHNOG(FILE *fp, int dim, double scalingFactor=1.0)
void writeOFF(FILE *fp, double scalingFactor=1.0)
double distance(MVertex *const v)
void setEntity(GEntity *ge)
void writeDIFF(FILE *fp, bool binary, double scalingFactor=1.0)
MVertex(double x, double y, double z, GEntity *ge=nullptr, std::size_t num=0)
double angle3Vertices(const MVertex *p1, const MVertex *p2, const MVertex *p3)