Regardless whether someone uses it or not now, that's the API you have
to implement, or don't put it in the API at all (make it a method of
Dem3DofGeom_SphereSphere and cast to that type in your Law2 thing).
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.
B.
_______________________________________________
Mailing list: https://launchpad.net/~yade-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yade-dev
More help : https://help.launchpad.net/ListHelp