gridformat icon indicating copy to clipboard operation
gridformat copied to clipboard

[writer] with syntax for field insertion?

Open dglaeser opened this issue 2 years ago • 1 comments
trafficstars

We could have with_point_field, with_cell_field with_meta_data functions in the writers to allow chaining such as:

GridFormat::VTUWriter{grid}
    .with_point_field("pfield", [&] (const auto& p) { ... })
    .with_cell_field("cfield", [&] (const auto& p) { ... })
    .write("filename");

dglaeser avatar May 11 '23 21:05 dglaeser

Not super critical for a first release, removing the milestone...

dglaeser avatar May 15 '23 12:05 dglaeser