changed volPointInterpolate() labels to vpi()

This commit is contained in:
andy 2008-06-10 11:27:31 +01:00
parent 9fc1615a86
commit 5b92011d93
3 changed files with 18 additions and 5 deletions

View File

@ -54,7 +54,10 @@ void Foam::vtkPV3Foam::convertPatchPointField
pointData->SetNumberOfTuples(pptf.size());
pointData->SetNumberOfComponents(Type::nComponents);
pointData->Allocate(Type::nComponents*pptf.size());
pointData->SetName(name.c_str());
// pointData->SetName(name.c_str());
string dataSetName = name;
string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi");
pointData->SetName(newDataSetName.c_str());
float vec[Type::nComponents];
@ -92,7 +95,10 @@ void Foam::vtkPV3Foam::convertPatchPointField
pointData->SetNumberOfTuples(ppsf.size());
pointData->SetNumberOfComponents(1);
pointData->Allocate(ppsf.size());
pointData->SetName(name.c_str());
// pointData->SetName(name.c_str());
string dataSetName = name;
string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi");
pointData->SetName(newDataSetName.c_str());
for (int i=0; i<ppsf.size(); i++)
{

View File

@ -154,7 +154,10 @@ void Foam::vtkPV3Foam::convertPointField
pointData->SetNumberOfTuples(ptf.size() + addPointCellLabels_.size());
pointData->SetNumberOfComponents(Type::nComponents);
pointData->Allocate(Type::nComponents*ptf.size());
pointData->SetName(ptf.name().c_str());
// pointData->SetName(ptf.name().c_str());
string dataSetName = ptf.name();
string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi");
pointData->SetName(newDataSetName.c_str());
float vec[Type::nComponents];
@ -223,7 +226,10 @@ void Foam::vtkPV3Foam::convertPointField
pointData->SetNumberOfTuples(psf.size() + addPointCellLabels_.size());
pointData->SetNumberOfComponents(1);
pointData->Allocate(psf.size());
pointData->SetName(psf.name().c_str());
// pointData->SetName(psf.name().c_str());
string dataSetName = psf.name();
string newDataSetName = dataSetName.replace("volPointInterpolate", "vpi");
pointData->SetName(newDataSetName.c_str());
for (int i=0; i<psf.size(); i++)
{

View File

@ -118,7 +118,8 @@ void Foam::vtkPV3Foam::convertVolFields
);
convertPointField
(
tptf(), tf,
tptf(),
tf,
output,
selectInfoVolume_,
selectedRegionDatasetIds_[regionId]