tudelft3d / val3dity

Validation of 3D primitives according to the international standard ISO19107
GNU General Public License v3.0
92 stars 23 forks source link

Add val3dity ostream #179

Closed ipadjen closed 4 months ago

ipadjen commented 5 months ago

My attempt on tackling the issue with the leaky ostream.

Example how I control it in the API:

bool isvalid = val3dity::is_valid(points, polys, val3dity::Parameters().terminal_output(false));

To do this, I also introduced the named parameter idiom to the API. You can chain the other parameters and the order of calling shouldn't matter.

Naming still needs a bit of work (output_terminal, terminal_output, or something else).