Spanningtreev2
Follow-up !305 (merged)
I went for the solution with three inputs: PhysicalVolumes
, PhysicalSurfaces
and PhysicalCurves
.
These inputs are restricted to their dimension thanks to GModel::getPhysicalGroups(dim, groups)
.
The lists are parsed in a poor way, which does not allow so much flexibility... That being said, we probably don't need more than comma separated lists with spaces ignored :). An alternative is to use c++11 regexp, but that requires c++11 :p. Another approach would be to make a regexp parser with flex/yacc, but that's surely overkill for a Plugin. Would there be a need for this elsewhere in Gmsh?
By the way, the trick exploiting OnelabAction
in a .geo file to automatise the Plugin works like a charm, thanks! :).