Skip to content
GitLab
Menu
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
Show whitespace changes
Inline
Side-by-side
IO/Geometry/CMakeLists.txt
View file @
65debdf7
...
@@ -14,7 +14,7 @@ SET(Module_SRCS
...
@@ -14,7 +14,7 @@ SET(Module_SRCS
vtkGenericDataObjectReader.cxx
vtkGenericDataObjectReader.cxx
vtkGenericDataObjectWriter.cxx
vtkGenericDataObjectWriter.cxx
vtkGenericMovieWriter.cxx
vtkGenericMovieWriter.cxx
#
vtkIVWriter.cxx
# Needs vtkAbstractMapper
vtkIVWriter.cxx
vtkMaterialLibrary.cxx
vtkMaterialLibrary.cxx
vtkMCubesReader.cxx
vtkMCubesReader.cxx
vtkMCubesWriter.cxx
vtkMCubesWriter.cxx
...
...
IO/Geometry/vtkIVWriter.cxx
View file @
65debdf7
...
@@ -14,11 +14,11 @@
...
@@ -14,11 +14,11 @@
=========================================================================*/
=========================================================================*/
#include "vtkIVWriter.h"
#include "vtkIVWriter.h"
#include "vtkAbstractMapper.h"
#include "vtkCellArray.h"
#include "vtkCellArray.h"
#include "vtkLookupTable.h"
#include "vtkLookupTable.h"
#include "vtkObjectFactory.h"
#include "vtkObjectFactory.h"
#include "vtkPolyData.h"
#include "vtkPolyData.h"
#include "vtkPointData.h"
vtkStandardNewMacro
(
vtkIVWriter
);
vtkStandardNewMacro
(
vtkIVWriter
);
...
@@ -65,13 +65,11 @@ void vtkIVWriter::WritePolyData(vtkPolyData *pd, FILE *fp)
...
@@ -65,13 +65,11 @@ void vtkIVWriter::WritePolyData(vtkPolyData *pd, FILE *fp)
vtkIdType
npts
=
0
;
vtkIdType
npts
=
0
;
vtkIdType
*
indx
=
0
;
vtkIdType
*
indx
=
0
;
vtkUnsignedCharArray
*
colors
=
NULL
;
vtkUnsignedCharArray
*
colors
=
NULL
;
int
offset
=
0
;
points
=
pd
->
GetPoints
();
points
=
pd
->
GetPoints
();
// create colors for vertices
// create colors for vertices
vtkDataArray
*
scalars
=
vtkAbstractMapper
::
vtkDataArray
*
scalars
=
pd
->
GetPointData
()
->
GetScalars
();
GetScalars
(
pd
,
VTK_SCALAR_MODE_USE_POINT_DATA
,
0
,
0
,
NULL
,
offset
);
if
(
scalars
)
if
(
scalars
)
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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