Partial reconstruction

Whether it’s because we are only interested on reconstructing a small area (and it will be much faster/more readable to reconstruct only this area) or because we want to reconstruct only points we are sure that are not corrupted, we want to be able to make a partial reconstruction of the surface.

To do so, we need to run the surface_rec application while having a file named mask.hbf (as described here) into the folder MetricData.

---
if ( study.hasMask() )
{
    auto f_mask = h2f( study.mask().value() ); (1)
    Vh = Pch<1>( mesh, elements(mesh, expr(idv(f_mask)) ) );(2)
}
---
<1> Reading the mask
<2> Applying the mask to the mesh
In the case where the same kind of object with the same orientation/placement is reconstructed, the mask can be reused. In other scenario, it would be useless to reuse it.
  • Show results

  • Compare speed with/without mask