|
gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
#include <GModelIO_GEO.h>

Public Member Functions | |
| GEO_Internals () | |
| ~GEO_Internals () | |
| void | destroy () |
| bool | getChanged () const |
| void | setMaxTag (int dim, int val) |
| int | getMaxTag (int dim) const |
| bool | addVertex (int &tag, double x, double y, double z, double lc) |
| bool | addVertex (int &tag, double x, double y, gmshSurface *s, double lc) |
| bool | addLine (int &tag, int startTag, int endTag) |
| bool | addLine (int &tag, const std::vector< int > &pointTags) |
| bool | addCircleArc (int &tag, int startTag, int centerTag, int endTag, double nx=0., double ny=0., double nz=0.) |
| bool | addEllipseArc (int &tag, int startTag, int centerTag, int majorTag, int endTag, double nx=0., double ny=0., double nz=0.) |
| bool | addSpline (int &tag, const std::vector< int > &pointTags) |
| bool | addBezier (int &tag, const std::vector< int > &pointTags) |
| bool | addBSpline (int &tag, const std::vector< int > &pointTags, const std::vector< double > &seqknots=std::vector< double >()) |
| bool | addCompoundSpline (int &tag, const std::vector< int > &curveTags, int numPoints) |
| bool | addCompoundBSpline (int &tag, const std::vector< int > &curveTags, int numPoints) |
| bool | addCurveLoop (int &tag, const std::vector< int > &curveTags, bool reorient=false) |
| bool | addCurveLoops (const std::vector< int > &curveTags, std::vector< int > &curveLoopTags) |
| bool | addPlaneSurface (int &tag, const std::vector< int > &wireTags) |
| bool | addDiscreteSurface (int &tag) |
| bool | addSurfaceFilling (int &tag, const std::vector< int > &wireTags, int sphereCenterTag=-1) |
| bool | addSurfaceLoop (int &tag, const std::vector< int > &surfaceTags) |
| bool | addVolume (int &tag, const std::vector< int > &shellTags) |
| bool | extrude (const std::vector< std::pair< int, int > > &inDimTags, double dx, double dy, double dz, std::vector< std::pair< int, int > > &outDimTags, ExtrudeParams *e=0) |
| bool | revolve (const std::vector< std::pair< int, int > > &inDimTags, double x, double y, double z, double ax, double ay, double az, double angle, std::vector< std::pair< int, int > > &outDimTags, ExtrudeParams *e=0) |
| bool | twist (const std::vector< std::pair< int, int > > &inDimTags, double x, double y, double z, double dx, double dy, double dz, double ax, double ay, double az, double angle, std::vector< std::pair< int, int > > &outDimTags, ExtrudeParams *e=0) |
| bool | boundaryLayer (const std::vector< std::pair< int, int > > &inDimTags, std::vector< std::pair< int, int > > &outDimTags, ExtrudeParams *e=0) |
| bool | translate (const std::vector< std::pair< int, int > > &dimTags, double dx, double dy, double dz) |
| bool | rotate (const std::vector< std::pair< int, int > > &dimTags, double x, double y, double z, double ax, double ay, double az, double angle) |
| bool | dilate (const std::vector< std::pair< int, int > > &dimTags, double x, double y, double z, double a, double b, double c) |
| bool | symmetry (const std::vector< std::pair< int, int > > &dimTags, double a, double b, double c, double d) |
| bool | splitCurve (int tag, const std::vector< int > &pointTags, std::vector< int > &curveTags) |
| bool | intersectCurvesWithSurface (const std::vector< int > &curveTags, int surfaceTag, std::vector< int > &pointTags) |
| bool | copy (const std::vector< std::pair< int, int > > &inDimTags, std::vector< std::pair< int, int > > &outDimTags) |
| bool | remove (int dim, int tag, bool recursive=false) |
| bool | remove (const std::vector< std::pair< int, int > > &dimTags, bool recursive=false) |
| void | resetPhysicalGroups () |
| bool | modifyPhysicalGroup (int dim, int tag, int op, const std::vector< int > &tags) |
| int | getMaxPhysicalTag () const |
| void | setMaxPhysicalTag (int val) |
| void | removeAllDuplicates () |
| bool | mergeVertices (const std::vector< int > &tags) |
| void | setCompoundMesh (int dim, const std::vector< int > &tags) |
| void | setMeshSize (int dim, int tag, double size) |
| void | setDegenerated (int dim, int tag) |
| void | setTransfiniteLine (int tag, int nPoints, int type, double coef) |
| void | setTransfiniteSurface (int tag, int arrangement, const std::vector< int > &cornerTags) |
| void | setTransfiniteVolume (int tag, const std::vector< int > &cornerTags) |
| void | setTransfiniteVolumeQuadTri (int tag) |
| void | setRecombine (int dim, int tag, double angle) |
| void | setSmoothing (int tag, int val) |
| void | setReverseMesh (int dim, int tag, bool val=1) |
| void | setMeshAlgorithm (int dim, int tag, int val) |
| void | setMeshSizeFromBoundary (int dim, int tag, int val) |
| void | synchronize (GModel *model, bool resetMeshAttributes=true) |
| bool | getVertex (int tag, double &x, double &y, double &z) |
| gmshSurface * | newGeometrySphere (int tag, int centerTag, int pointTag) |
| gmshSurface * | newGeometryPolarSphere (int tag, int centerTag, int pointTag) |
Public Attributes | |
| Tree_T * | Points |
| Tree_T * | Curves |
| Tree_T * | EdgeLoops |
| Tree_T * | Surfaces |
| Tree_T * | SurfaceLoops |
| Tree_T * | Volumes |
| Tree_T * | DelPoints |
| Tree_T * | DelCurves |
| Tree_T * | DelSurfaces |
| Tree_T * | DelVolumes |
| List_T * | PhysicalGroups |
| List_T * | DelPhysicalGroups |
Private Member Functions | |
| void | _allocateAll () |
| void | _freeAll () |
| bool | _transform (int mode, const std::vector< std::pair< int, int > > &dimTags, double x, double y, double z, double dx, double dy, double dz, double a, double b, double c, double d) |
| bool | _extrude (int mode, const std::vector< std::pair< int, int > > &inDimTags, double x, double y, double z, double dx, double dy, double dz, double ax, double ay, double az, double angle, std::vector< std::pair< int, int > > &outDimTags, ExtrudeParams *e=0) |
| bool | _addCompoundSpline (int &tag, const std::vector< int > &curveTags, int numPoints, bool bspline) |
Private Attributes | |
| std::multimap< int, std::vector< int > > | _meshCompounds |
| int | _maxPointNum |
| int | _maxLineNum |
| int | _maxLineLoopNum |
| int | _maxSurfaceNum |
| int | _maxSurfaceLoopNum |
| int | _maxVolumeNum |
| int | _maxPhysicalNum |
| bool | _changed |
Definition at line 15 of file GModelIO_GEO.h.
|
inline |
|
inline |
|
private |
Definition at line 336 of file GModelIO_GEO.cpp.
Referenced by addCompoundBSpline(), and addCompoundSpline().


|
private |
Definition at line 29 of file GModelIO_GEO.cpp.
Referenced by destroy(), and GEO_Internals().


|
private |
Definition at line 722 of file GModelIO_GEO.cpp.
Referenced by boundaryLayer(), extrude(), revolve(), and twist().


|
private |
Definition at line 52 of file GModelIO_GEO.cpp.
Referenced by destroy(), and ~GEO_Internals().


|
private |
Definition at line 812 of file GModelIO_GEO.cpp.
Referenced by dilate(), rotate(), symmetry(), and translate().


| bool GEO_Internals::addBezier | ( | int & | tag, |
| const std::vector< int > & | pointTags | ||
| ) |
| bool GEO_Internals::addBSpline | ( | int & | tag, |
| const std::vector< int > & | pointTags, | ||
| const std::vector< double > & | seqknots = std::vector<double>() |
||
| ) |
| bool GEO_Internals::addCircleArc | ( | int & | tag, |
| int | startTag, | ||
| int | centerTag, | ||
| int | endTag, | ||
| double | nx = 0., |
||
| double | ny = 0., |
||
| double | nz = 0. |
||
| ) |
| bool GEO_Internals::addCompoundBSpline | ( | int & | tag, |
| const std::vector< int > & | curveTags, | ||
| int | numPoints | ||
| ) |
| bool GEO_Internals::addCompoundSpline | ( | int & | tag, |
| const std::vector< int > & | curveTags, | ||
| int | numPoints | ||
| ) |
| bool GEO_Internals::addCurveLoop | ( | int & | tag, |
| const std::vector< int > & | curveTags, | ||
| bool | reorient = false |
||
| ) |
| bool GEO_Internals::addCurveLoops | ( | const std::vector< int > & | curveTags, |
| std::vector< int > & | curveLoopTags | ||
| ) |
| bool GEO_Internals::addDiscreteSurface | ( | int & | tag | ) |
| bool GEO_Internals::addEllipseArc | ( | int & | tag, |
| int | startTag, | ||
| int | centerTag, | ||
| int | majorTag, | ||
| int | endTag, | ||
| double | nx = 0., |
||
| double | ny = 0., |
||
| double | nz = 0. |
||
| ) |
| bool GEO_Internals::addLine | ( | int & | tag, |
| const std::vector< int > & | pointTags | ||
| ) |
| bool GEO_Internals::addLine | ( | int & | tag, |
| int | startTag, | ||
| int | endTag | ||
| ) |
Definition at line 141 of file GModelIO_GEO.cpp.
| bool GEO_Internals::addPlaneSurface | ( | int & | tag, |
| const std::vector< int > & | wireTags | ||
| ) |
| bool GEO_Internals::addSpline | ( | int & | tag, |
| const std::vector< int > & | pointTags | ||
| ) |
| bool GEO_Internals::addSurfaceFilling | ( | int & | tag, |
| const std::vector< int > & | wireTags, | ||
| int | sphereCenterTag = -1 |
||
| ) |
| bool GEO_Internals::addSurfaceLoop | ( | int & | tag, |
| const std::vector< int > & | surfaceTags | ||
| ) |
| bool GEO_Internals::addVertex | ( | int & | tag, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | lc | ||
| ) |
| bool GEO_Internals::addVertex | ( | int & | tag, |
| double | x, | ||
| double | y, | ||
| gmshSurface * | s, | ||
| double | lc | ||
| ) |
| bool GEO_Internals::addVolume | ( | int & | tag, |
| const std::vector< int > & | shellTags | ||
| ) |
| bool GEO_Internals::boundaryLayer | ( | const std::vector< std::pair< int, int > > & | inDimTags, |
| std::vector< std::pair< int, int > > & | outDimTags, | ||
| ExtrudeParams * | e = 0 |
||
| ) |
| bool GEO_Internals::copy | ( | const std::vector< std::pair< int, int > > & | inDimTags, |
| std::vector< std::pair< int, int > > & | outDimTags | ||
| ) |
|
inline |
Definition at line 43 of file GModelIO_GEO.h.
Referenced by OpenProject().


| bool GEO_Internals::dilate | ( | const std::vector< std::pair< int, int > > & | dimTags, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | a, | ||
| double | b, | ||
| double | c | ||
| ) |
| bool GEO_Internals::extrude | ( | const std::vector< std::pair< int, int > > & | inDimTags, |
| double | dx, | ||
| double | dy, | ||
| double | dz, | ||
| std::vector< std::pair< int, int > > & | outDimTags, | ||
| ExtrudeParams * | e = 0 |
||
| ) |
|
inline |
Definition at line 50 of file GModelIO_GEO.h.
|
inline |
Definition at line 132 of file GModelIO_GEO.h.
Referenced by NEWPHYSICAL(), and scriptAddRemovePhysicalGroup().

| int GEO_Internals::getMaxTag | ( | int | dim | ) | const |
Definition at line 99 of file GModelIO_GEO.cpp.
Referenced by _addCompoundSpline(), addBezier(), addBSpline(), addCircleArc(), addCurveLoop(), addCurveLoops(), addDiscreteSurface(), addEllipseArc(), addLine(), addPlaneSurface(), addSpline(), addSurfaceFilling(), addSurfaceLoop(), addVertex(), addVolume(), DeleteCurve(), DeletePoint(), DeleteSurface(), DeleteVolume(), NEWCURVE(), NEWCURVELOOP(), NEWPOINT(), NEWSURFACE(), NEWSURFACELOOP(), NEWVOLUME(), scriptAddCurveLoop(), scriptAddPipe(), and scriptAddSurfaceLoop().

| bool GEO_Internals::getVertex | ( | int | tag, |
| double & | x, | ||
| double & | y, | ||
| double & | z | ||
| ) |
| bool GEO_Internals::intersectCurvesWithSurface | ( | const std::vector< int > & | curveTags, |
| int | surfaceTag, | ||
| std::vector< int > & | pointTags | ||
| ) |
| bool GEO_Internals::mergeVertices | ( | const std::vector< int > & | tags | ) |
| bool GEO_Internals::modifyPhysicalGroup | ( | int | dim, |
| int | tag, | ||
| int | op, | ||
| const std::vector< int > & | tags | ||
| ) |
| gmshSurface * GEO_Internals::newGeometryPolarSphere | ( | int | tag, |
| int | centerTag, | ||
| int | pointTag | ||
| ) |
| gmshSurface * GEO_Internals::newGeometrySphere | ( | int | tag, |
| int | centerTag, | ||
| int | pointTag | ||
| ) |
| bool GEO_Internals::remove | ( | const std::vector< std::pair< int, int > > & | dimTags, |
| bool | recursive = false |
||
| ) |
| bool GEO_Internals::remove | ( | int | dim, |
| int | tag, | ||
| bool | recursive = false |
||
| ) |
Definition at line 969 of file GModelIO_GEO.cpp.
Referenced by remove().


| void GEO_Internals::removeAllDuplicates | ( | ) |
| void GEO_Internals::resetPhysicalGroups | ( | ) |
| bool GEO_Internals::revolve | ( | const std::vector< std::pair< int, int > > & | inDimTags, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | ax, | ||
| double | ay, | ||
| double | az, | ||
| double | angle, | ||
| std::vector< std::pair< int, int > > & | outDimTags, | ||
| ExtrudeParams * | e = 0 |
||
| ) |
| bool GEO_Internals::rotate | ( | const std::vector< std::pair< int, int > > & | dimTags, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | ax, | ||
| double | ay, | ||
| double | az, | ||
| double | angle | ||
| ) |
| void GEO_Internals::setCompoundMesh | ( | int | dim, |
| const std::vector< int > & | tags | ||
| ) |
Definition at line 1111 of file GModelIO_GEO.cpp.
| void GEO_Internals::setDegenerated | ( | int | dim, |
| int | tag | ||
| ) |
|
inline |
Definition at line 133 of file GModelIO_GEO.h.
Referenced by CreatePhysicalGroup().

| void GEO_Internals::setMaxTag | ( | int | dim, |
| int | val | ||
| ) |
Definition at line 87 of file GModelIO_GEO.cpp.
Referenced by CreateCurve(), CreateEdgeLoop(), CreateSurface(), CreateSurfaceLoop(), CreateVertex(), CreateVolume(), DeleteCurve(), DeletePoint(), DeleteSurface(), DeleteVolume(), ExtrudeSurface(), MaxNumCurve(), MaxNumPoint(), MaxNumSurface(), MergeFile(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), and ReplaceDuplicateSurfaces().

| void GEO_Internals::setMeshAlgorithm | ( | int | dim, |
| int | tag, | ||
| int | val | ||
| ) |
| void GEO_Internals::setMeshSize | ( | int | dim, |
| int | tag, | ||
| double | size | ||
| ) |
| void GEO_Internals::setMeshSizeFromBoundary | ( | int | dim, |
| int | tag, | ||
| int | val | ||
| ) |
| void GEO_Internals::setRecombine | ( | int | dim, |
| int | tag, | ||
| double | angle | ||
| ) |
| void GEO_Internals::setReverseMesh | ( | int | dim, |
| int | tag, | ||
| bool | val = 1 |
||
| ) |
| void GEO_Internals::setSmoothing | ( | int | tag, |
| int | val | ||
| ) |
| void GEO_Internals::setTransfiniteLine | ( | int | tag, |
| int | nPoints, | ||
| int | type, | ||
| double | coef | ||
| ) |
| void GEO_Internals::setTransfiniteSurface | ( | int | tag, |
| int | arrangement, | ||
| const std::vector< int > & | cornerTags | ||
| ) |
| void GEO_Internals::setTransfiniteVolume | ( | int | tag, |
| const std::vector< int > & | cornerTags | ||
| ) |
| void GEO_Internals::setTransfiniteVolumeQuadTri | ( | int | tag | ) |
| bool GEO_Internals::splitCurve | ( | int | tag, |
| const std::vector< int > & | pointTags, | ||
| std::vector< int > & | curveTags | ||
| ) |
| bool GEO_Internals::symmetry | ( | const std::vector< std::pair< int, int > > & | dimTags, |
| double | a, | ||
| double | b, | ||
| double | c, | ||
| double | d | ||
| ) |
| void GEO_Internals::synchronize | ( | GModel * | model, |
| bool | resetMeshAttributes = true |
||
| ) |
Definition at line 1370 of file GModelIO_GEO.cpp.
Referenced by addEmbedded(), addPeriodicEdge(), addPeriodicFace(), getAllElementaryTags(), getAllPhysicalTags(), getBoundingBox(), getElementaryTagsForPhysicalGroups(), getElementaryTagsInBoundingBox(), getParentTags(), GModel::readGEO(), removeEmbedded(), scriptAddCommand(), setColor(), and setVisibility().


| bool GEO_Internals::translate | ( | const std::vector< std::pair< int, int > > & | dimTags, |
| double | dx, | ||
| double | dy, | ||
| double | dz | ||
| ) |
| bool GEO_Internals::twist | ( | const std::vector< std::pair< int, int > > & | inDimTags, |
| double | x, | ||
| double | y, | ||
| double | z, | ||
| double | dx, | ||
| double | dy, | ||
| double | dz, | ||
| double | ax, | ||
| double | ay, | ||
| double | az, | ||
| double | angle, | ||
| std::vector< std::pair< int, int > > & | outDimTags, | ||
| ExtrudeParams * | e = 0 |
||
| ) |
|
private |
Definition at line 28 of file GModelIO_GEO.h.
Referenced by _addCompoundSpline(), _allocateAll(), _extrude(), _freeAll(), _transform(), addBezier(), addBSpline(), addCircleArc(), addCurveLoop(), addCurveLoops(), addDiscreteSurface(), addEllipseArc(), addLine(), addPlaneSurface(), addSpline(), addSurfaceFilling(), addSurfaceLoop(), addVertex(), addVolume(), copy(), getChanged(), intersectCurvesWithSurface(), mergeVertices(), modifyPhysicalGroup(), remove(), removeAllDuplicates(), resetPhysicalGroups(), setCompoundMesh(), setDegenerated(), setMeshAlgorithm(), setMeshSize(), setMeshSizeFromBoundary(), setRecombine(), setReverseMesh(), setSmoothing(), setTransfiniteLine(), setTransfiniteSurface(), setTransfiniteVolume(), setTransfiniteVolumeQuadTri(), splitCurve(), and synchronize().
|
private |
Definition at line 24 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), getMaxTag(), and setMaxTag().
|
private |
Definition at line 24 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), getMaxTag(), and setMaxTag().
|
private |
Definition at line 25 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), getMaxPhysicalTag(), and setMaxPhysicalTag().
|
private |
Definition at line 24 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), getMaxTag(), and setMaxTag().
|
private |
Definition at line 25 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), getMaxTag(), and setMaxTag().
|
private |
Definition at line 24 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), getMaxTag(), and setMaxTag().
|
private |
Definition at line 25 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), getMaxTag(), and setMaxTag().
|
private |
Definition at line 23 of file GModelIO_GEO.h.
Referenced by setCompoundMesh(), and synchronize().
| Tree_T * GEO_Internals::Curves |
Definition at line 18 of file GModelIO_GEO.h.
Referenced by _addCompoundSpline(), _allocateAll(), _freeAll(), addBezier(), addBSpline(), addCircleArc(), addEllipseArc(), addLine(), addSpline(), discreteEdge::discreteEdge(), GModel::exportDiscreteGEOInternals(), setReverseMesh(), setTransfiniteLine(), and synchronize().
| Tree_T * GEO_Internals::DelCurves |
Definition at line 19 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), and ReplaceDuplicateCurves().
| List_T * GEO_Internals::DelPhysicalGroups |
Definition at line 20 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), and resetPhysicalGroups().
| Tree_T* GEO_Internals::DelPoints |
Definition at line 19 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), and ReplaceDuplicatePoints().
| Tree_T * GEO_Internals::DelSurfaces |
Definition at line 19 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), and ReplaceDuplicateSurfaces().
| Tree_T * GEO_Internals::DelVolumes |
Definition at line 19 of file GModelIO_GEO.h.
Referenced by _allocateAll(), and _freeAll().
| Tree_T * GEO_Internals::EdgeLoops |
Definition at line 18 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), addCurveLoop(), and addCurveLoops().
| List_T* GEO_Internals::PhysicalGroups |
Definition at line 20 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), modifyPhysicalGroup(), ReplaceDuplicateCurves(), ReplaceDuplicatePoints(), ReplaceDuplicateSurfaces(), resetPhysicalGroups(), SplitCurve(), and synchronize().
| Tree_T* GEO_Internals::Points |
Definition at line 18 of file GModelIO_GEO.h.
Referenced by _addCompoundSpline(), _allocateAll(), _freeAll(), addVertex(), discreteVertex::discreteVertex(), GModel::exportDiscreteGEOInternals(), and synchronize().
| Tree_T * GEO_Internals::SurfaceLoops |
Definition at line 18 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), and addSurfaceLoop().
| Tree_T * GEO_Internals::Surfaces |
Definition at line 18 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), addDiscreteSurface(), addPlaneSurface(), addSurfaceFilling(), discreteFace::discreteFace(), GModel::exportDiscreteGEOInternals(), setRecombine(), setReverseMesh(), setSmoothing(), setTransfiniteSurface(), and synchronize().
| Tree_T * GEO_Internals::Volumes |
Definition at line 18 of file GModelIO_GEO.h.
Referenced by _allocateAll(), _freeAll(), addVolume(), discreteRegion::discreteRegion(), GModel::exportDiscreteGEOInternals(), setRecombine(), setTransfiniteVolume(), setTransfiniteVolumeQuadTri(), and synchronize().