- Timestamp:
- Feb 18, 2013 2:32:14 PM (11 years ago)
- Location:
- branches/nanovis2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/nanovis2
- Property svn:mergeinfo changed
/trunk merged: 3174,3177-3182,3184-3199,3275-3282,3285,3287
- Property svn:mergeinfo changed
-
branches/nanovis2/packages/vizservers/vtkvis/RpContour3D.cpp
r2612 r3305 1 1 /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 2 /* 3 * Copyright (C) 20 11, Purdue Research Foundation3 * Copyright (C) 2004-2012 HUBzero Foundation, LLC 4 4 * 5 5 * Author: Leif Delgass <ldelgass@purdue.edu> … … 8 8 #include <cassert> 9 9 10 #include <vtkVersion.h> 11 #if (VTK_MAJOR_VERSION >= 6) 12 #define USE_VTK6 13 #endif 10 14 #include <vtkDataSet.h> 11 15 #include <vtkPointData.h> … … 117 121 cellToPtData = 118 122 vtkSmartPointer<vtkCellDataToPointData>::New(); 123 #ifdef USE_VTK6 124 cellToPtData->SetInputData(ds); 125 #else 119 126 cellToPtData->SetInput(ds); 127 #endif 120 128 //cellToPtData->PassCellDataOn(); 121 129 cellToPtData->Update(); … … 135 143 // Generate a 3D unstructured grid 136 144 vtkSmartPointer<vtkDelaunay3D> mesher = vtkSmartPointer<vtkDelaunay3D>::New(); 145 #ifdef USE_VTK6 146 mesher->SetInputData(pd); 147 #else 137 148 mesher->SetInput(pd); 149 #endif 138 150 _contourFilter->SetInputConnection(mesher->GetOutputPort()); 139 151 } else { … … 144 156 } else { 145 157 // DataSet is NOT a vtkPolyData 158 #ifdef USE_VTK6 159 _contourFilter->SetInputData(ds); 160 #else 146 161 _contourFilter->SetInput(ds); 162 #endif 147 163 } 148 164
Note: See TracChangeset
for help on using the changeset viewer.