message: Remove switch statement
diff: @@ -187,22 +187,17 @@ namespace
  index_t cell,
  const vecn< DIMENSION >& p )
  {
  - switch( M.cell_type( cell ) )
  - {
  - case CellType::TETRAHEDRON:
  + if( M.cell_type( cell ) != CellType::TETRAHEDRON )
  {
  + throw RINGMeshException( "AABB",
  + "VolumeAABBTre containing_cell request only handles tetrahedra." );
  + }
  const auto& p0 = M.vertex( M.cell_vertex( { cell, 0 } ) );
  const auto& p1 = M.vertex( M.cell_vertex( { cell, 1 } ) );
  const auto& p2 = M.vertex( M.cell_vertex( { cell, 2 } ) );
  const auto& p3 = M.vertex( M.cell_vertex( { cell, 3 } ) );
  return Position::point_inside_tetra( p, { p0, p1, p2, p3 } );
  }
  - default:
  - throw RINGMeshException( "AABB",
  - "VolumeAABBTre containing_cell request only handle tetrahedra." );
  - return false;
  - }
  - }
  } // namespace
  /****************************************************************************/
  