MantisBT - VTK | ||||||||||
View Issue Details | ||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||
0014692 | VTK | (No Category) | public | 2014-04-15 13:32 | 2014-10-02 11:12 | |||||
Reporter | Julien Finet | |||||||||
Assigned To | Utkarsh Ayachit | |||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||
Status | closed | Resolution | no change required | |||||||
Platform | OS | OS Version | ||||||||
Product Version | 6.2.0 | |||||||||
Target Version | Fixed in Version | |||||||||
Project | TBD | |||||||||
Type | incorrect functionality | |||||||||
Summary | 0014692: vtkAssignAttribute does not pass scalar type | |||||||||
Description | vtkAssignAttribute does not pass the scalar type of the input array to the output array. E.g. vtkNew<vtkImageData> imageData; imageData->SetDimensions(2,2,2); vtkNew<vtkFloatArray> tensors; tensors->SetName("tensors"); tensors->SetNumberOfComponents(9); tensors->SetNumberOfTuples(2*2*2); for (int i = 0; i < 2*2*2;++i) { tensors->SetTuple9(i,1.,0.,0.,0.,1.,0.,0.,0.,1.); } imageData->GetPointData()->SetTensors(tensors.GetPointer()); //imageData->GetPointData()->SetActiveTensors("tensors"); vtkNew<vtkTrivialProducer> tp; tp->SetOutput(imageData.GetPointer()); //tp->UpdateInformation(); //vtkDataObject::SetPointDataActiveScalarInfo( // tp->GetOutputInformation(0), VTK_FLOAT, 9); vtkNew<vtkAssignAttribute> tensorsToScalars; tensorsToScalars->Assign(vtkDataSetAttributes::TENSORS, vtkDataSetAttributes::SCALARS, vtkAssignAttribute::POINT_DATA); tensorsToScalars->SetInputConnection(tp->GetOutputPort()); tensorsToScalars->Update(); vtkImageData* output = vtkImageData::SafeDownCast(tensorsToScalars->GetOutputDataObject(0)); std::cout << "Scalar type: " << output->GetScalarType() << std::endl; It prints "Scalar type: 11" instead of "Scalar type:10". | |||||||||
Steps To Reproduce | ||||||||||
Additional Information | ||||||||||
Tags | hackaton | |||||||||
Relationships |
| |||||||||
Attached Files | ||||||||||
Issue History | ||||||||||
Date Modified | Username | Field | Change | |||||||
2014-04-15 13:32 | Julien Finet | New Issue | ||||||||
2014-04-15 13:36 | Julien Finet | Relationship added | related to 0014693 | |||||||
2014-10-01 12:52 | Berk Geveci | Tag Attached: hackaton | ||||||||
2014-10-02 09:31 | Utkarsh Ayachit | Assigned To | => Utkarsh Ayachit | |||||||
2014-10-02 11:11 | Utkarsh Ayachit | Status | backlog => active development | |||||||
2014-10-02 11:12 | Utkarsh Ayachit | Note Added: 0033463 | ||||||||
2014-10-02 11:12 | Utkarsh Ayachit | Status | active development => closed | |||||||
2014-10-02 11:12 | Utkarsh Ayachit | Resolution | open => no change required |
Notes | |||||
|
|||||
|
|