gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
29 return "Plugin(Invisible) deletes (if `DeleteElements' is set) or "
30 "reverses (if `ReverseElements' is set) all the invisible elements in "
31 "the current model. If the bounding box defined by `XMin' < x < `XMax, "
32 "`YMin' < y < `YMax and `ZMin' < z < `ZMax' is not empty, mark all "
33 "elements outside the bounding box as invisible prior to deleting or "
34 "inverting the elements.";
58 if((xmax - xmin) > 0. || (ymax - ymin) > 0. || (zmax - zmin) > 0.) {
59 std::vector<GEntity *> entities;
61 for(std::size_t i = 0; i < entities.size(); i++) {
62 for(std::size_t j = 0; j < entities[i]->getNumMeshElements(); j++) {
63 MElement *e = entities[i]->getMeshElement(j);
67 if(v->
x() >= xmin && v->
x() <= xmax &&
68 v->
y() >= ymin && v->
y() <= ymax &&
69 v->
z() >= zmin && v->
z() <= zmax) {
StringXNumber * getOption(int iopt)
std::string getHelp() const
virtual std::size_t getNumVertices() const =0
virtual const MVertex * getVertex(int num) const =0
GMSH_Plugin * GMSH_RegisterInvisiblePlugin()
std::size_t removeInvisibleElements()
StringXNumber InvisibleOptions_Number[]
std::size_t reverseInvisibleElements()
void getEntities(std::vector< GEntity * > &entities, int dim=-1) const
virtual void setVisibility(char val)
static GModel * current(int index=-1)