if(nbCompo==3)
{
vtkSmartPointer<vtkDoubleArray> ret(arr);
- arr->Register(0);
return ret;
}
if(nbCompo==6)
vtkDataArray *dummy(0);
ExtractInfo3(ds,this->Internal->getFieldForReal(),dummy,idx2);
}
- ds->GetPointData()->SetActiveAttribute(idx2,vtkDataSetAttributes::SCALARS);
//
vtkInformation *outInfo(outputVector->GetInformationObject(0));
vtkPolyData *output(vtkPolyData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())));
output->ShallowCopy(ds);
-
+
+ vtkDataArray* array = ds->GetPointData()->GetArray(idx2);
+ vtkSmartPointer<vtkDataArray> result = vtkSmartPointer<vtkDataArray>::Take(vtkDataArray::CreateDataArray(array->GetDataType()));
+ result->ShallowCopy(array);
+ result->SetName("Result");
+ output->GetPointData()->SetScalars(result);
}
catch(MZCException& e)
{
command="SetAnimationTime"
default_values="0"
name="AnimationTime"
- panel_visibility="advanced"
number_of_elements="1">
<DoubleRangeDomain max="1" min="0" name="range" />
<Documentation>The value of this property sets the scale factor applied for all nodes displacement.</Documentation>