Commit 65debdf7 authored by Bill Lorensen's avatar Bill Lorensen Committed by Code Review
Browse files

Merge topic 'RestoreIVWriter' into master

c14caaf9 ENH: Restore vtkIVWriter
parents c78d99d8 c14caaf9
......@@ -14,7 +14,7 @@ SET(Module_SRCS
vtkGenericDataObjectReader.cxx
vtkGenericDataObjectWriter.cxx
vtkGenericMovieWriter.cxx
#vtkIVWriter.cxx # Needs vtkAbstractMapper
vtkIVWriter.cxx
vtkMaterialLibrary.cxx
vtkMCubesReader.cxx
vtkMCubesWriter.cxx
......
......@@ -14,11 +14,11 @@
=========================================================================*/
#include "vtkIVWriter.h"
#include "vtkAbstractMapper.h"
#include "vtkCellArray.h"
#include "vtkLookupTable.h"
#include "vtkObjectFactory.h"
#include "vtkPolyData.h"
#include "vtkPointData.h"
vtkStandardNewMacro(vtkIVWriter);
......@@ -65,13 +65,11 @@ void vtkIVWriter::WritePolyData(vtkPolyData *pd, FILE *fp)
vtkIdType npts = 0;
vtkIdType *indx = 0;
vtkUnsignedCharArray *colors=NULL;
int offset=0;
points = pd->GetPoints();
// create colors for vertices
vtkDataArray *scalars = vtkAbstractMapper::
GetScalars(pd, VTK_SCALAR_MODE_USE_POINT_DATA, 0, 0, NULL, offset);
vtkDataArray *scalars = pd->GetPointData()->GetScalars();
if ( scalars )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment