- Notifications
You must be signed in to change notification settings - Fork1
A library to index a mesh data structure in a hash table and make powerfull search queries.
License
NotificationsYou must be signed in to change notification settings
LoicMarechal/libHash
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
A hash table library that offers dynamicaly resizing tables and arbitrary number of hash keys insert and queries.
- InstallCMake
- A valid C99 compiler
- Open a shell window
- You first need to installCMake. Do not forget to choose "add cmake to the path for all users", from the install panel.
- Then you need a valid C compiler like the freeVisual Studio Community 2019
- Open the x64 Native Tools Command Prompt for VS (or x86 if you need to build a 32-bit version)
- unarchive the ZIP file
cd libHash-master
mkdir build
cd build
cmake ..
cmake --build . --target install
ThelibHash library is written inANSI C.
It is made of a single C file and a header file to be compiled and linked alongside the calling program.
It may be used in C, C++, F77 and F90 programs (Fortran 77 and 90 APIs are provided).
Tested onLinux,macOS, andWindows 7->10.
int i, j, vertex, ball[100];int64_t LibIdx;LibIdx = hsh_NewTable();// Hash each tet with their four verticesfor(i=1;i<=NmbTet;i++)for(j=0;j<4;j++)hsh_AddItem(LibIdx, HshTet, TetTab[i][j], i,1);// Find and print the ball of vertex 150vertex =150;degree = hsh_GetItem(LibIdx,0, HshAny,1, &vertex, &ball,NULL);for(i=0;i<degree;i++)printf("%d\n", ball[i]);hsh_FreeTable(HshIdx)
About
A library to index a mesh data structure in a hash table and make powerfull search queries.
Topics
Resources
License
Stars
Watchers
Forks
Packages0
No packages published