Thread Previous • Date Previous • Date Next • Thread Next |
Casting was what I wanted to avoid, it was the (bad but temporary) reason for the virtual in DemXDof.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).
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.
Thread Previous • Date Previous • Date Next • Thread Next |