Changeset 5836 for vtkvis/branches/1.8/PolyData.cpp
- Timestamp:
- Aug 22, 2015, 2:18:27 PM (9 years ago)
- Location:
- vtkvis/branches/1.8
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/branches/1.8
- Property svn:mergeinfo changed
/vtkvis/trunk merged: 5835
- Property svn:mergeinfo changed
-
vtkvis/branches/1.8/PolyData.cpp
r5072 r5836 129 129 _dataSet->numDimensions() < 2 || ds->GetNumberOfPoints() < 3) { // 0D or 1D or not enough points to mesh 130 130 vtkSmartPointer<vtkVertexGlyphFilter> vgf = vtkSmartPointer<vtkVertexGlyphFilter>::New(); 131 #ifdef USE_VTK6132 131 vgf->SetInputData(ds); 133 #else134 vgf->SetInput(ds);135 #endif136 132 _mapper->SetInputConnection(vgf->GetOutputPort()); 137 133 } else if (_dataSet->is2D(&plane, &offset)) { … … 157 153 mesher->SetTransform(trans); 158 154 } 159 #ifdef USE_VTK6160 155 mesher->SetInputData(ds); 161 #else162 mesher->SetInput(ds);163 #endif164 156 mesher->ReleaseDataFlagOn(); 165 157 mesher->Update(); … … 173 165 WARN("Delaunay2D mesher failed"); 174 166 vtkSmartPointer<vtkVertexGlyphFilter> vgf = vtkSmartPointer<vtkVertexGlyphFilter>::New(); 175 #ifdef USE_VTK6176 167 vgf->SetInputData(ds); 177 #else178 vgf->SetInput(ds);179 #endif180 168 _mapper->SetInputConnection(vgf->GetOutputPort()); 181 169 } else { … … 186 174 } else { 187 175 vtkSmartPointer<vtkDelaunay3D> mesher = vtkSmartPointer<vtkDelaunay3D>::New(); 188 #ifdef USE_VTK6189 176 mesher->SetInputData(ds); 190 #else191 mesher->SetInput(ds);192 #endif193 177 mesher->ReleaseDataFlagOn(); 194 178 mesher->Update(); … … 199 183 WARN("Delaunay3D mesher failed"); 200 184 vtkSmartPointer<vtkVertexGlyphFilter> vgf = vtkSmartPointer<vtkVertexGlyphFilter>::New(); 201 #ifdef USE_VTK6202 185 vgf->SetInputData(ds); 203 #else204 vgf->SetInput(ds);205 #endif206 186 _mapper->SetInputConnection(vgf->GetOutputPort()); 207 187 } else { … … 221 201 // DataSet is a vtkPolyData with cells 222 202 if (hasNormals) { 223 #ifdef USE_VTK6224 203 _mapper->SetInputData(pd); 225 #else226 _mapper->SetInput(pd);227 #endif228 204 } else { 229 205 vtkSmartPointer<vtkPolyDataNormals> normalFilter = vtkSmartPointer<vtkPolyDataNormals>::New(); 230 #ifdef USE_VTK6231 206 normalFilter->SetInputData(pd); 232 #else233 normalFilter->SetInput(pd);234 #endif235 207 _mapper->SetInputConnection(normalFilter->GetOutputPort()); 236 208 } … … 241 213 //gf->UseStripsOn(); 242 214 gf->ReleaseDataFlagOn(); 243 #ifdef USE_VTK6244 215 gf->SetInputData(ds); 245 #else246 gf->SetInput(ds);247 #endif248 216 vtkSmartPointer<vtkPolyDataNormals> normalFilter = vtkSmartPointer<vtkPolyDataNormals>::New(); 249 217 normalFilter->SetInputConnection(gf->GetOutputPort());
Note: See TracChangeset
for help on using the changeset viewer.