Hello Scalismo community,
I've found that meshes with an “inner” and “outer” surface have a unique problem when sampling for correspondences – the closest point on the target mesh isn’t necessarily the correct surface (see attached line drawing). This results in a reconstruction with inner surfaces deformed to the outer surfaces or vice versa (example result in blue).
- I can imagine two possible solutions:
- Use a heuristic that compares the direction of normal vectors and throws out correspondences with a deviation of more than a certain number of degrees, or …
- When finding the closest point on the target mesh, only consider points along the surface normal of the randomly sampled point
Unfortunately, as a beginner in Scalismo, I require some advice for how to implement this in Scala code. Does anyone have experience with this? I'm wondering if the NormalDirectionSearchPointSampler class would be useful. Some code examples would be very helpful!