gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
|
Go to the documentation of this file.
12 void (*BB)(
void *,
double *,
double *),
13 void (*Centroid)(
void *,
double *),
14 int (*InEle)(
void *,
double *))
32 while(ptr1 !=
nullptr) {
49 delete myOctree->
info;
51 delete myOctree->
root;
58 double minBB[3], maxBB[3],
centroid[3];
71 std::vector<void *>::iterator iter;
72 double minPt[3], maxPt[3];
83 if(!myOctree)
return nullptr;
InEleFunction function_inElement
int initializeOctantBuckets(double *_orig, double *_size, int _maxElem, octantBucket **buckets_head, globalInfo **globalPara)
void Octree_Insert(void *element, Octree *myOctree)
void Octree_Delete(Octree *myOctree)
void Octree_SearchAll(double *pt, Octree *myOctree, std::vector< void * > *output)
static void centroid(int n, double *X, double *Y, double *Z, double *c)
int addElement2Bucket(octantBucket *_bucket, void *_element, double *_minBB, double *_maxBB, double *_ele_centroid, globalInfo *_globalPara)
octantBucket * findElementBucket(octantBucket *_buckets_head, double *_pt)
void * Octree_Search(double *pt, Octree *myOctree)
void Octree_Arrange(Octree *myOctree)
Octree * Octree_Create(int maxElements, double origin[3], double size[3], void(*BB)(void *, double *, double *), void(*Centroid)(void *, double *), int(*InEle)(void *, double *))
CentroidFunction function_centroid
void * searchElement(octantBucket *_buckets_head, double *_pt, globalInfo *_globalPara, BBFunction BBElement, InEleFunction xyzInElement)
std::vector< void * > listBB
static void output(code_int code)
void * searchAllElements(octantBucket *_buckets_head, double *_pt, globalInfo *_globalPara, BBFunction BBElement, InEleFunction xyzInElement, std::vector< void * > *_elements)
void free_buckets(octantBucket *bucket)
void insertOneBB(void *_region, double *_minPt, double *_maxPt, octantBucket *_bucket)
std::vector< void * > listAllElements