Hello,
for my bachelor thesis I am doing some research intro Field3D Format, which so far is really amazing and good.
My question regards the interpolators mentioned in the doc:
A simple interpolation example:
DenseField<T>::Ptr field = someField;
DenseField<T>::LinearInterp interp;
// Prefix indicates coordinate space
V3d wsP(0.0, 0.0, 0.0);
V3d vsP;
// Use mapping to transform between coordinate spaces
field->mapping()->worldToVoxel(wsP, vsP);
// Interpolation always uses voxel space
T value = interp.sample(field, vsP);
I tried using this example like this:
... Field3D::DenseField3f::LinearInterp interp; interp.sample(someFieldA, vsP) ...
and
Field3D::DenseField3f::CubicInterp interp; interp.sample(someFieldB, vsP) ...
but in both cases, the sample function ('interp.sample') does not show up for me.
Do I take it right, that one has to implement the sample function? I've noticed that 'Field3D::DenseField3f::CubicInterp' points to 'Field3D::CubicGenericFieldInterp' which defines a virtual sample function.
I am a bit confused about this topic in the docs. Can someone please clarify this for me?
Cheers
Maik