> Casting was what I wanted to avoid, it was the (bad but temporary) > reason for the virtual in DemXDof. > I should have put the question more clearly : > Do you think your code can be adapted (and even benefit from?) using > vector3r scaleDisplacement(Real multiplier)? > If yes, then setDispTmax can be replaced by scaleDisp everywhere with a > few adjustments, non need to cast or implement anything for > sphere-facets. If not, I'll have to cast or implement. You have to do the implementation anyway. BTW it is about 2 lines of code for FacetSphere and WallSphere, so go ahead.
For me, there preferred way would be to add the new method (everywhere), while keeping the old one at least for some time. (I use it in code which is not in trunk, and it should stay compatible until I update it everwhere as well). Regards, v. _______________________________________________ Mailing list: https://launchpad.net/~yade-dev Post to : [email protected] Unsubscribe : https://launchpad.net/~yade-dev More help : https://help.launchpad.net/ListHelp

