Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bill Lorensen
VTK
Commits
65debdf7
Commit
65debdf7
authored
May 07, 2012
by
Bill Lorensen
Committed by
Code Review
May 07, 2012
Browse files
Merge topic 'RestoreIVWriter' into master
c14caaf9
ENH: Restore vtkIVWriter
parents
c78d99d8
c14caaf9
Changes
2
Hide whitespace changes
Inline
Side-by-side
IO/Geometry/CMakeLists.txt
View file @
65debdf7
...
...
@@ -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
...
...
IO/Geometry/vtkIVWriter.cxx
View file @
65debdf7
...
...
@@ -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
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment