gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
39 std::set<MVertex *, MVertexPtrLessThan> *duplicates =
nullptr)
50 duplicates->insert(out);
51 duplicates->insert(v);
54 Msg::Warning(
"Node %d (%.16g, %.16g, %.16g) already exists in the "
55 "mesh with tolerance %g as node %d (%.16g, %.16g, %.16g)",
57 out->
x(), out->
y(), out->
z());
62 int insert(std::vector<MVertex *> &v,
bool warnIfExists =
false,
63 std::set<MVertex *, MVertexPtrLessThan> *duplicates =
nullptr)
66 for(std::size_t i = 0; i < v.size(); i++)
67 num += (
insert(v[i], warnIfExists, duplicates) ? 1 : 0);
int Count()
Count the data elements in this container. This is slow as no internal counter is maintained.
RTree< MVertex *, double, 3, double > * _rtree
MVertexRTree(double tolerance=1.e-8)
static void Warning(const char *fmt,...)
std::size_t getNum() const
MVertex * insert(MVertex *v, bool warnIfExists=false, std::set< MVertex *, MVertexPtrLessThan > *duplicates=nullptr)
void RemoveAll()
Remove all entries from tree.
void Insert(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDIMS], const DATATYPE &a_dataId)
static bool rtree_callback(MVertex *v, void *ctx)
int Search(const ELEMTYPE a_min[NUMDIMS], const ELEMTYPE a_max[NUMDIMS], bool a_resultCallback(DATATYPE a_data, void *a_context), void *a_context)
MVertex * find(double x, double y, double z)
int insert(std::vector< MVertex * > &v, bool warnIfExists=false, std::set< MVertex *, MVertexPtrLessThan > *duplicates=nullptr)