On Fri, Oct 21, 2016 at 11:08 AM, Hubert Weissmann <[email protected]> wrote:
> Dear all, > > I create a Mesh with the help of tetgen in my applications and would > like to use some more of its options (e.g. for me the verbose output > including some mesh statistics would be quite interesting). > > As I see it, the interface is quite easy and one would just need to > parse these options via the TetGenWrapper::set_switches() function. > > So I think it would not take too much time; my question now: Is it of > general interest to be implemented or is the quiet interface prefered? > > (my idea was to add a (non-mandatory) parameter to the TetGenInterface > functions which may contain any options.) > I think this would be a useful feature to have. I would just add a protected std::string "_switches" to the TetGenMeshInterface which defaults to "", and a method, TetGenMeshInterface::set_switches(const std::string &) which sets its value. Then, in any of the TetGenMeshInterface functions which call tetgen_wrapper.set_switches(), you can check whether someone has set the _switches string to something other than the non-empty string, and use those switches instead of what's currently used by default. Just a suggestion, feel free to implement something that is more in line with what your current application requires if necessary, as long as it is relatively general it should be fine. -- John ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
