-
Notifications
You must be signed in to change notification settings - Fork 16
Mesh_grading
Mesh grading refers to Mesh2HRTF specific remeshing algorithms for a head (and torso) mesh that can be used to speed up the numerical calculations if simulating HRTFs for a single ear. In this case, the elements sizes at the ear for which no HRTFs are calculated increased resulting in a mesh with fewer elements.
The remeshing is done based on the distance to the ear and the local mesh curvature. The code can be found in the Mesh2Input folder and details on the method are found in the paper Curvature-adaptive mesh grading for numerical approximation of head-related transfer functions.
In this case the remeshing is done only based on the distance to the ear. The above method slightly outperforms this initial remeshing approach and the remeshing is considerably faster. Here is how to use distance based mesh grading:
- Install all the dependencies and libraries from OpenFlipper website.
- Download the latest version of OpenFlipper (not the binary package in their website) $ git clone --recursive https://graphics.rwth-aachen.de:9000/OpenFlipper-Free/OpenFlipper-Free.git
- Copy the folder PreProcessing/MeshGrading/DistanceBased from the Any2HRTF Pre-processing repository into OpenFlipper-Free and then better change the folder name to Plugin-MeshGrading.
- Create the QT project according to OpenFlipper and all the plugin tools.
- Then you can start to build from the source using the terminal:
$ cd OpenFlipper-Free $ qmake -project $ cd ../ $ mkdir build $ cd build $ cmake -DCMAKE_BUILD_TYPE=Release ../OpenFlipper-Free $ make -j8
After the building, you can open the OpenFlipper from the folder (build/Build/) and then use MeshGrading. Enjoy.