Changeset 2264 for trunk/packages/vizservers/vtkvis
- Timestamp:
- May 27, 2011, 2:16:22 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/packages/vizservers/vtkvis/RpPolyData.cpp
r2261 r2264 10 10 #include <vtkDataSet.h> 11 11 #include <vtkPolyData.h> 12 #include <vtkDataSetMapper.h>13 12 #include <vtkUnstructuredGrid.h> 14 13 #include <vtkPolyDataMapper.h> … … 132 131 vtkSmartPointer<vtkDelaunay3D> mesher = vtkSmartPointer<vtkDelaunay3D>::New(); 133 132 mesher->SetInput(pd); 134 // Delaunay3D returns an UnstructuredGrid, so feed it through a generic mapper133 // Delaunay3D returns an UnstructuredGrid, so feed it through a surface filter 135 134 // to get the grid boundary as a PolyData 136 vtkSmartPointer<vtkDataSet Mapper> dsMapper = vtkSmartPointer<vtkDataSetMapper>::New();137 dsMapper->SetInput(mesher->GetOutput());138 dsMapper->StaticOn();139 _pdMapper = dsMapper->GetPolyDataMapper();140 _pdMapper->SetResolveCoincidentTopologyToPolygonOffset();141 _pdMapper->S calarVisibilityOff();135 vtkSmartPointer<vtkDataSetSurfaceFilter> gf = vtkSmartPointer<vtkDataSetSurfaceFilter>::New(); 136 gf->SetInput(mesher->GetOutput()); 137 gf->Update(); 138 pd = gf->GetOutput(); 139 assert(pd); 140 _pdMapper->SetInput(pd); 142 141 } 143 142 } else {
Note: See TracChangeset
for help on using the changeset viewer.