MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0012994 | VTK | (No Category) | public | 2012-03-14 03:58 | 2015-01-09 13:53 |
| Reporter | nikolay.zhavoronok | ||||
| Assigned To | Utkarsh Ayachit | ||||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Platform | OS | OS Version | |||
| Product Version | 5.8.0 | ||||
| Target Version | Fixed in Version | 6.0.0 | |||
| Project | TBD | ||||
| Type | incorrect functionality | ||||
| Summary | 0012994: vtkXMLMultiBlockDataWriter does not write names for leaf nodes of the multiblock dataset | ||||
| Description | The following code will assign the name for 0 block, but will not write this name into vtu file: ============================================ vtkNew<vtkUnstructuredGrid> ugrid; vtkNew<vtkMultiBlockDataSet> mb; mb->SetNumberOfBlocks( 1 ); mb->SetBlock( 0, ugrid.GetPointer() ); mb->GetMetaData( 0 )->Set(vtkCompositeDataSet::NAME(), "My Material 1"); mb->GetMetaData( 0 )->Print( std::cout ); // for debuggin to see the name vtkXMLMultiBlockDataWriter *writer = vtkXMLMultiBlockDataWriter::New(); writer->SetInput( mb.GetPointer() ); writer->SetFileName("test.vtm"); writer->Write(); ============================================ The problem is inside vtkXMLMultiBlockDataWriter.cxx, int vtkXMLMultiBlockDataWriter::WriteComposite method iterates over multiblock data set items, and writes names only for vtkCompositeDataSet datasets. The fix looks easy, I am attaching the fixed file. VTK Reader & Paraview support reading of leaf dataset names correctly, so the problem is only in writer. Thanks, Nikolay | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://www.vtk.org/Bug/file/9132/vtkXMLMultiBlockDataWriter.cxx | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2012-03-14 03:58 | nikolay.zhavoronok | New Issue | |||
| 2012-03-14 03:58 | nikolay.zhavoronok | File Added: vtkXMLMultiBlockDataWriter.cxx | |||
| 2012-03-29 17:10 | Utkarsh Ayachit | Assigned To | => Utkarsh Ayachit | ||
| 2012-03-29 17:10 | Utkarsh Ayachit | Status | backlog => tabled | ||
| 2012-03-29 17:22 | Utkarsh Ayachit | Note Added: 0028407 | |||
| 2012-03-29 17:23 | Utkarsh Ayachit | Note Added: 0028408 | |||
| 2012-03-29 17:23 | Utkarsh Ayachit | Status | tabled => gatekeeper review | ||
| 2012-03-29 17:23 | Utkarsh Ayachit | Resolution | open => fixed | ||
| 2013-05-17 13:53 | Utkarsh Ayachit | Note Added: 0030795 | |||
| 2013-07-22 19:39 | Dave DeMarle | Status | gatekeeper review => closed | ||
| 2013-07-22 19:39 | Dave DeMarle | Fixed in Version | => 6.0.0 | ||
| 2015-01-09 13:48 | Utkarsh Ayachit | Source_changeset_attached | => VTK master 77b0673c | ||
| 2015-01-09 13:48 | Utkarsh Ayachit | Source_changeset_attached | => VTK master 3a192370 | ||
| 2015-01-09 13:53 | Utkarsh Ayachit | Source_changeset_attached | => VTK master 3f2b5202 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||