Fix for viewing glyphs on a set of patches provided by Mark Olesen.

This commit is contained in:
henry 2009-11-03 20:58:41 +00:00
parent 51bb18ce78
commit d109f88657

View File

@ -109,6 +109,12 @@ void Foam::vtkPV3Foam::convertVolFields
// //
// Convert patches - if activated // Convert patches - if activated
// //
// The name for the interpolated patch point field must be consistent
// with the interpolated volume point field.
// This could be done better.
const word pointFldName = "volPointInterpolate(" + tf.name() + ')';
for for
( (
int partId = partInfoPatches_.start(); int partId = partInfoPatches_.start();
@ -155,7 +161,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField convertPatchPointField
( (
tf.name(), pointFldName,
ppInterpList[patchId].faceToPointInterpolate(tpptf)(), ppInterpList[patchId].faceToPointInterpolate(tpptf)(),
output, output,
partInfoPatches_, partInfoPatches_,
@ -175,7 +181,7 @@ void Foam::vtkPV3Foam::convertVolFields
convertPatchPointField convertPatchPointField
( (
tf.name(), pointFldName,
ppInterpList[patchId].faceToPointInterpolate(ptf)(), ppInterpList[patchId].faceToPointInterpolate(ptf)(),
output, output,
partInfoPatches_, partInfoPatches_,