gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <discreteFace.h>
Classes | |
class | param |
Public Member Functions | |
discreteFace (GModel *model, int num) | |
discreteFace (GModel *model) | |
virtual | ~discreteFace () |
GPoint | point (double par1, double par2) const |
SPoint2 | parFromPoint (const SPoint3 &p, bool onSurface=true, bool convTestXYZ=false) const |
Range< double > | parBounds (int i) const |
bool | containsParam (const SPoint2 &pt) |
SBoundingBox3d | bounds (bool fast=false) |
GPoint | closestPoint (const SPoint3 &queryPoint, double maxDistance, SVector3 *normal=nullptr) const |
GPoint | closestPoint (const SPoint3 &queryPoint, const double initialGuess[2]) const |
SVector3 | normal (const SPoint2 ¶m) const |
double | curvatureMax (const SPoint2 ¶m) const |
double | curvatures (const SPoint2 ¶m, SVector3 &dirMax, SVector3 &dirMin, double &curvMax, double &curvMin) const |
GEntity::GeomType | geomType () const |
virtual Pair< SVector3, SVector3 > | firstDer (const SPoint2 ¶m) const |
virtual void | secondDer (const SPoint2 ¶m, SVector3 &dudu, SVector3 &dvdv, SVector3 &dudv) const |
int | createGeometry () |
virtual bool | haveParametrization () |
virtual void | mesh (bool verbose) |
int | trianglePosition (double par1, double par2, double &u, double &v) const |
GPoint | intersectionWithCircle (const SVector3 &n1, const SVector3 &n2, const SVector3 &p, const double &R, double uv[2]) |
bool | writeParametrization (FILE *fp, bool binary) |
bool | readParametrization (FILE *fp, bool binary) |
virtual void | resetMeshAttributes () |
virtual GPoint | point (double par1, double par2) const=0 |
virtual GPoint | point (const SPoint2 &pt) const |
Public Member Functions inherited from GFace | |
void | setMeshMaster (GFace *master, const std::vector< double > &) |
void | setMeshMaster (GFace *master, const std::map< int, int > &) |
void | alignElementsWithMaster () |
GFace (GModel *model, int tag) | |
virtual | ~GFace () |
virtual void | deleteMesh () |
void | addRegion (GRegion *r) |
void | delRegion (GRegion *r) |
GRegion * | getRegion (int const num) const |
std::size_t | numRegions () const |
std::list< GRegion * > | regions () const |
virtual bool | isOrphan () |
void | addEmbeddedVertex (GVertex *v) |
void | addEmbeddedEdge (GEdge *e) |
virtual std::vector< int > const & | orientations () const |
int | delEdge (GEdge *edge) |
virtual std::vector< GEdge * > const & | edges () const |
void | set (const std::vector< GEdge * > &f) |
void | setOrientations (const std::vector< int > &f) |
void | setEdge (GEdge *const f, int const orientation) |
virtual std::vector< int > const & | edgeOrientations () const |
bool | containsEdge (int const iEdge) const |
void | setBoundEdges (const std::vector< int > &tagEdges) |
void | setBoundEdges (const std::vector< int > &tagEdges, const std::vector< int > &signEdges) |
std::vector< GEdge * > & | embeddedEdges () |
std::set< GVertex *, GEntityPtrLessThan > & | embeddedVertices () |
std::vector< GVertex * > | getEmbeddedVertices (bool force=false) const |
std::vector< GEdge * > | getEmbeddedEdges (bool force=false) const |
std::vector< MVertex * > | getEmbeddedMeshVertices (bool force=false) const |
virtual std::vector< GVertex * > | vertices () const |
virtual int | dim () const |
virtual GEntity * | getParentEntity () |
virtual void | setVisibility (char val, bool recursive=false) |
virtual void | setColor (unsigned int val, bool recursive=false) |
void | XYZtoUV (double X, double Y, double Z, double &U, double &V, double relax, bool onSurface=true, bool convTestXYZ=false) const |
virtual SOrientedBoundingBox | getOBB () |
virtual int | genusGeom () const |
virtual bool | checkTopology () const |
virtual GPoint | point (const SPoint2 &pt) const |
virtual double | getMetricEigenvalue (const SPoint2 &) |
virtual void | getMetricEigenVectors (const SPoint2 ¶m, double eigVal[2], double eigVec[4]) const |
double | curvature (const SPoint2 ¶m) const |
virtual double | curvatureDiv (const SPoint2 ¶m) const |
virtual std::string | getAdditionalInfoString (bool multline=false) |
virtual void | writeGEO (FILE *fp) |
virtual void | writePY (FILE *fp) |
virtual bool | buildRepresentationCross (bool force=false) |
virtual bool | buildSTLTriangulation (bool force=false) |
bool | fillVertexArray (bool force=false) |
bool | storeSTLAsMesh () |
void | computeMeanPlane (const std::vector< MVertex * > &points) |
void | computeMeanPlane (const std::vector< SPoint3 > &points) |
void | computeMeanPlane () |
void | getMeanPlaneData (double VX[3], double VY[3], double &x, double &y, double &z) const |
void | getMeanPlaneData (double plan[3][3]) 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 |
void | moveToValidRange (SPoint2 &pt) const |
void | computeMeshSizeFieldAccuracy (double &avg, double &max_e, double &min_e, int &nE, int &GS) |
bool | fillPointCloud (double maxDist, std::vector< SPoint3 > *points, std::vector< SPoint2 > *uvpoints=nullptr, std::vector< SVector3 > *normals=nullptr) |
virtual bool | isSphere (double &radius, SPoint3 ¢er) const |
int | getMeshingAlgo () const |
void | setMeshingAlgo (int val) |
void | unsetMeshingAlgo () |
int | getMeshSizeFromBoundary () const |
void | setMeshSizeFromBoundary (int val) |
virtual double | getMeshSize () const |
virtual double | getMeshSizeFactor () const |
void | relocateMeshVertices () |
void | addTriangle (MTriangle *t) |
void | addQuadrangle (MQuadrangle *q) |
void | addPolygon (MPolygon *p) |
void | addElement (int type, MElement *e) |
void | removeElement (int type, MElement *e) |
void | removeElements (int type) |
BoundaryLayerColumns * | getColumns () |
virtual bool | reorder (const int elementType, const std::vector< std::size_t > &ordering) |
virtual bool | isFullyDiscrete () |
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< GFace * > | faces () 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 bool | periodic (int dim) const |
virtual double | period (int dim) const |
virtual bool | degenerate (int dim) const |
virtual double | tolerance () const |
virtual bool | containsPoint (const SPoint3 &pt) 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 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) |
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 | |
void | _createGeometryFromSTL () |
void | _computeSTLNormals () |
void | _debugParametrization (bool uv) |
Private Attributes | |
param | _param |
Definition at line 18 of file discreteFace.h.
discreteFace::discreteFace | ( | GModel * | model, |
int | num | ||
) |
discreteFace::discreteFace | ( | GModel * | model | ) |
Definition at line 106 of file discreteFace.cpp.
|
inlinevirtual |
Definition at line 46 of file discreteFace.h.
|
private |
Definition at line 600 of file discreteFace.cpp.
Referenced by createGeometry(), and readParametrization().
|
private |
Definition at line 624 of file discreteFace.cpp.
Referenced by createGeometry(), and readParametrization().
|
private |
|
virtual |
Reimplemented from GFace.
Definition at line 293 of file discreteFace.cpp.
|
virtual |
Reimplemented from GFace.
Definition at line 265 of file discreteFace.cpp.
GPoint discreteFace::closestPoint | ( | const SPoint3 & | queryPoint, |
double | maxDistance, | ||
SVector3 * | normal = nullptr |
||
) | const |
Definition at line 210 of file discreteFace.cpp.
Referenced by closestPoint(), and parFromPoint().
|
virtual |
Reimplemented from GFace.
Definition at line 286 of file discreteFace.cpp.
int discreteFace::createGeometry | ( | ) |
|
virtual |
Reimplemented from GFace.
Definition at line 322 of file discreteFace.cpp.
|
virtual |
Reimplemented from GFace.
Definition at line 333 of file discreteFace.cpp.
Referenced by curvatureMax().
Implements GFace.
Definition at line 366 of file discreteFace.cpp.
|
inlinevirtual |
Reimplemented from GEntity.
Reimplemented in ghostFace, and partitionFace.
Definition at line 62 of file discreteFace.h.
|
inlinevirtual |
Reimplemented from GEntity.
Reimplemented in partitionFace.
Definition at line 67 of file discreteFace.h.
GPoint discreteFace::intersectionWithCircle | ( | const SVector3 & | n1, |
const SVector3 & | n2, | ||
const SVector3 & | p, | ||
const double & | R, | ||
double | uv[2] | ||
) |
Definition at line 692 of file discreteFace.cpp.
Referenced by optimalPointFrontalB().
|
virtual |
Reimplemented from GFace.
Definition at line 686 of file discreteFace.cpp.
Reimplemented from GFace.
Definition at line 299 of file discreteFace.cpp.
Referenced by closestPoint().
|
virtual |
Reimplemented from GEntity.
Definition at line 278 of file discreteFace.cpp.
|
virtual |
Reimplemented from GFace.
Definition at line 271 of file discreteFace.cpp.
|
virtual |
Implements GFace.
Definition at line 148 of file discreteFace.cpp.
virtual GPoint GFace::point |
bool discreteFace::readParametrization | ( | FILE * | fp, |
bool | binary | ||
) |
|
virtual |
Reimplemented from GFace.
Definition at line 906 of file discreteFace.cpp.
|
virtual |
Implements GFace.
Definition at line 410 of file discreteFace.cpp.
int discreteFace::trianglePosition | ( | double | par1, |
double | par2, | ||
double & | u, | ||
double & | v | ||
) | const |
bool discreteFace::writeParametrization | ( | FILE * | fp, |
bool | binary | ||
) |
Definition at line 805 of file discreteFace.cpp.
|
private |
Definition at line 38 of file discreteFace.h.
Referenced by _createGeometryFromSTL(), bounds(), closestPoint(), containsParam(), curvatureMax(), curvatures(), firstDer(), haveParametrization(), intersectionWithCircle(), mesh(), normal(), parBounds(), point(), and trianglePosition().