Skip to content

Preparing_the_mesh

Sanket Jain edited this page Aug 20, 2024 · 5 revisions

Before you can export a Mesh2HRTF project for numerical calculation, you need to prepare the mesh. If you receive errors check the Most common errors on the home page since the most common ones are listed there.

  1. Your object must be named 'Reference'

  2. The mesh must contain only triangular faces. If you are not sure if your mesh has only triangles use Blenders TRIANGULATE Modifier (apply in Object mode)

  3. There must not be duplicate vertices. To achieve this you can use Remove Doubles in Blender (and increasing the merge distance)

  4. All holes must be filled. You can either fill them manually or use the Mesh: 3D printing add-on, which you first need to add in the User Preferences. Then simply click Make Manifold and all the holes should be filled with triangles.

  5. Center the mesh. The interaural center should be in the origin of coordinates. The interaural axis should coincide with the y-axis. The head should view in positive x-direction. The alignment can be done semi-automatically with the Blender AddOn CenterHead.py located in the Mesh2Input folder.

  6. The mesh should have regular triangles and smooth transitions between small and large triangles. The is best achieved through remeshing (also termed mesh grading) and there are two algorithms specifically tailored to Mesh2HRTF in the Mesh2Input folder

  7. Assigning the materials. If you are using the source types 'Both ears', 'Left ear', or 'Right ear', you need to assign the materials 'Skin', 'Left ear', and 'Right ear' to the mesh. An initial assignment can be done automatically with the BlenderAddon AssignMaterials.py located in the Mesh2Input folder.

  8. Check the geometry before exporting project folders. It is important to note that the geometry should not have any non-manifolds, self intersections or sharp edges before exporting the project folders. To make sure that the geometry is fine, such check can be done automatically with the BlenderAddon *3D-print checks" which checks for such non-manifolds and intersections. For more details refer to the page explaining this add-on.