From: <an...@tn...> - 2004-03-30 01:15:54
|
Benjamin From the methods you suggest, the self-contained one looks best to me, i.e. something along the lines of Benjamin S. Kirk writes: > Perhaps a better option is to have the classes do it internally: for > example, GMVIO would include a private member, > > get_connectivity(const Elem*, std::vector<unsigned int>& conn) > > that does a switch on elem->type() and implements the proper > connectivity for each element type. I kinda prefer this approach in the > interest of keeping proper code in its place. It will also encourage > people to add new formats if they don't have to change a lot of other > classes... Exactly, this would simply be a matter of adapting one file. Looks to me like the way to go. Thanks, Martin |