Open lgritz opened 13 years ago
I think MatrixFieldMapping has method for this: worldToLocalDir(const V3d &wsV, V3d &lsV)
Oh yes, I hadn't noticed that. But my request still stands for the more generic FieldMapping base class. Why should MatrixFieldMapping be the only mapping variety that has a vector transformation, and in any case, a calling app generally will want to just call the base class methods and not have to break out cases for each possible mapping type, no?
Yeah, we should go over the mapping transforms in general. We're missing a lot of the versions that take iterators as well.
Not immediately needed, but some day it might be nice if the Mapping interface has methods for transforming vectors as well as points from world to local space. This would be helpful for any system that was tracking filter footprint differentials (vectors) and needed to transform these into local space as well in order to understand the volumetric region to properly filter.