gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <discreteEdge.h>
Public Member Functions | |
discreteEdge (GModel *model, int num, GVertex *_v0, GVertex *_v1) | |
discreteEdge (GModel *model, int num) | |
discreteEdge (GModel *model) | |
virtual | ~discreteEdge () |
virtual GeomType | geomType () const |
virtual GPoint | point (double p) const |
virtual SVector3 | firstDer (double par) const |
virtual double | curvature (double par) const |
virtual bool | haveParametrization () |
virtual Range< double > | parBounds (int) const |
int | createGeometry () |
virtual void | mesh (bool verbose) |
int | minimumDrawSegments () const |
virtual int | minimumMeshSegments () const |
virtual SPoint2 | reparamOnFace (const GFace *face, double epar, int dir) const |
bool | writeParametrization (FILE *fp, bool binary) |
bool | readParametrization (FILE *fp, bool binary) |
Public Member Functions inherited from GEdge | |
GEdge (GModel *model, int tag, GVertex *v0, GVertex *v1) | |
GEdge (GModel *model, int tag) | |
virtual | ~GEdge () |
virtual void | deleteMesh () |
void | setBeginVertex (GVertex *gv) |
void | setEndVertex (GVertex *gv) |
virtual GVertex * | getBeginVertex () const |
virtual GVertex * | getEndVertex () const |
void | setVertex (GVertex *const f, const int orientation) |
void | setMeshMaster (GEdge *master, const std::vector< double > &) |
void | setMeshMaster (GEdge *master, int sign) |
void | reverse () |
void | addFace (GFace *f) |
virtual void | delFace (GFace *f) |
virtual int | dim () const |
virtual GEntity * | getParentEntity () |
virtual std::vector< GVertex * > | vertices () const |
virtual void | setVisibility (char val, bool recursive=false) |
virtual void | setColor (unsigned int val, bool recursive=false) |
virtual bool | isSeam (const GFace *face) const |
virtual SBoundingBox3d | bounds (bool fast=false) |
virtual SOrientedBoundingBox | getOBB () |
virtual std::list< GRegion * > | regions () const |
virtual std::vector< GFace * > | faces () const |
virtual std::size_t | numFaces () const |
virtual bool | isOrphan () |
virtual bool | containsParam (double pt) const |
virtual SVector3 | position (double p) const |
virtual SVector3 | secondDer (double par) const |
virtual std::string | getAdditionalInfoString (bool multline=false) |
virtual void | writeGEO (FILE *fp) |
virtual void | writePY (FILE *fp) |
bool | storeSTLAsMesh () |
virtual bool | is3D () const |
double | length () const |
void | setLength (const double l) |
double | length (const double &u0, const double &u1, const int nbQuadPoints=4) |
double | prescribedMeshSizeAtVertex () const |
double | prescribedMeshSizeAtParam (double u) |
void | setMeshSizeParametric (const std::vector< double > u, const std::vector< double > lc) |
void | setTooSmall (bool const b) |
virtual bool | isMeshDegenerated () const |
virtual void | getElementTypes (std::vector< int > &types) const |
std::size_t | getNumMeshElements () const |
std::size_t | getNumMeshElementsByType (const int familyType) const |
std::size_t | getNumMeshParentElements () |
void | getNumMeshElements (unsigned *const c) const |
MElement *const * | getStartElementType (int type) const |
MElement * | getMeshElement (std::size_t index) const |
MElement * | getMeshElementByType (const int familyType, const std::size_t index) const |
virtual void | resetMeshAttributes () |
virtual bool | periodic (int dim) const |
virtual Range< double > | parBoundsOnFace (GFace *face=nullptr) const |
double | getLowerBound () const |
double | getUpperBound () const |
virtual bool | containsPoint (const SPoint3 &pt) const |
virtual GPoint | closestPoint (const SPoint3 &queryPoint, double ¶m) const |
virtual double | parFromPoint (const SPoint3 &P) const |
virtual bool | refineProjection (const SVector3 &Q, double &u, int MaxIter, double relax, double tol, double &err) const |
virtual bool | XYZToU (const double X, const double Y, const double Z, double &U, const double relax=1, bool first=true) const |
void | relocateMeshVertices () |
void | addLine (MLine *line) |
void | addElement (int type, MElement *e) |
void | removeElement (int type, MElement *e) |
void | removeElements (int type) |
virtual void | discretize (double tol, std::vector< SPoint3 > &dpts, std::vector< double > &ts) |
SPoint3 | closestPointWithTol (SPoint3 &p, double tolerance) |
virtual bool | reorder (const int elementType, const std::vector< std::size_t > &ordering) |
Public Member Functions inherited from GEntity | |
void | addVerticesInSet (std::set< MVertex * > &, bool closure) const |
virtual std::string | getTypeString () |
GEntity (GModel *m, int t) | |
virtual | ~GEntity () |
void | deleteVertexArrays () |
virtual std::vector< GEdge * > const & | edges () const |
std::vector< GRegion * > | bindingsGetRegions () |
std::vector< GFace * > | bindingsGetFaces () |
std::vector< GEdge * > | bindingsGetEdges () const |
std::vector< GVertex * > | bindingsGetVertices () |
virtual bool | continuous (int dim) const |
virtual double | period (int dim) const |
virtual bool | degenerate (int dim) const |
virtual bool | isFullyDiscrete () |
virtual double | tolerance () const |
virtual ModelType | getNativeType () const |
virtual void * | getNativePtr () const |
virtual int | getNativeInt () const |
GModel * | model () const |
int | tag () const |
void | setTag (int tag) |
virtual void | addPhysicalEntity (int physicalTag) |
virtual std::vector< int > | getPhysicalEntities () |
GEntity * | getMeshMaster () const |
void | setMeshMaster (GEntity *) |
void | setMeshMaster (GEntity *, const std::vector< double > &, bool updateCorrespondingVertices=true) |
void | updateCorrespondingVertices () |
void | copyMasterCoordinates () |
virtual void | alignElementsWithMaster () |
virtual char | getVisibility () |
virtual char | getSelection () |
virtual void | setSelection (char val) |
virtual unsigned int | getColor () |
virtual void | setColor (unsigned color, bool recursive=false) |
virtual bool | useColor () |
virtual std::string | getInfoString (bool additional=true, bool multiline=false) |
virtual double | getMeshSize () const |
virtual double | getMeshSizeFactor () const |
bool | getAllElementsVisible () |
void | setAllElementsVisible (bool val) |
std::size_t | getNumMeshVertices () |
MVertex * | getMeshVertex (std::size_t index) |
void | addMeshVertex (MVertex *v) |
void | removeMeshVertex (MVertex *v) |
GVertex * | cast2Vertex () |
GEdge * | cast2Edge () |
GFace * | cast2Face () |
GRegion * | cast2Region () |
Private Member Functions | |
bool | _getLocalParameter (const double &t, int &iEdge, double &tLoc) const |
Private Attributes | |
std::vector< double > | _pars |
std::vector< SPoint3 > | _discretization |
Definition at line 12 of file discreteEdge.h.
discreteEdge::discreteEdge | ( | GModel * | model, |
int | num | ||
) |
discreteEdge::discreteEdge | ( | GModel * | model | ) |
Definition at line 39 of file discreteEdge.cpp.
|
inlinevirtual |
Definition at line 22 of file discreteEdge.h.
|
private |
Definition at line 45 of file discreteEdge.cpp.
Referenced by curvature(), firstDer(), and point().
int discreteEdge::createGeometry | ( | ) |
|
virtual |
Reimplemented from GEdge.
Definition at line 102 of file discreteEdge.cpp.
|
virtual |
Implements GEdge.
Definition at line 74 of file discreteEdge.cpp.
|
inlinevirtual |
Reimplemented from GEntity.
Reimplemented in ghostEdge, and partitionEdge.
Definition at line 23 of file discreteEdge.h.
|
inlinevirtual |
Reimplemented from GEntity.
Reimplemented in partitionEdge.
Definition at line 27 of file discreteEdge.h.
Referenced by writeMSH4Parametrizations().
|
virtual |
Reimplemented from GEdge.
Definition at line 214 of file discreteEdge.cpp.
|
inlinevirtual |
Reimplemented from GEdge.
Definition at line 31 of file discreteEdge.h.
|
inlinevirtual |
Reimplemented from GEdge.
Definition at line 32 of file discreteEdge.h.
|
virtual |
Implements GEdge.
Definition at line 147 of file discreteEdge.cpp.
|
virtual |
Implements GEdge.
Definition at line 59 of file discreteEdge.cpp.
Referenced by reparamOnFace().
bool discreteEdge::readParametrization | ( | FILE * | fp, |
bool | binary | ||
) |
Definition at line 251 of file discreteEdge.cpp.
Referenced by readMSH4Parametrizations().
Reimplemented from GEdge.
Definition at line 93 of file discreteEdge.cpp.
bool discreteEdge::writeParametrization | ( | FILE * | fp, |
bool | binary | ||
) |
Definition at line 223 of file discreteEdge.cpp.
Referenced by writeMSH4Parametrizations().
|
private |
Definition at line 15 of file discreteEdge.h.
Referenced by _getLocalParameter(), createGeometry(), curvature(), firstDer(), mesh(), parBounds(), point(), readParametrization(), and writeParametrization().
|
private |
Definition at line 14 of file discreteEdge.h.
Referenced by _getLocalParameter(), createGeometry(), haveParametrization(), minimumDrawSegments(), readParametrization(), and writeParametrization().