Changeset 3327 for branches/Rappture 1.2/packages
- Timestamp:
- Feb 23, 2013, 2:20:57 PM (12 years ago)
- Location:
- branches/Rappture 1.2/packages/vizservers/vtkvis
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Rappture 1.2/packages/vizservers/vtkvis/RpContour3D.cpp
r3309 r3327 165 165 } 166 166 167 _contourFilter->ComputeNormalsO n();167 _contourFilter->ComputeNormalsOff(); 168 168 _contourFilter->ComputeGradientsOff(); 169 169 … … 189 189 initProp(); 190 190 191 if (_normalsGenerator == NULL) { 192 _normalsGenerator = vtkSmartPointer<vtkPolyDataNormals>::New(); 193 } 194 195 _normalsGenerator->SetInputConnection(_contourFilter->GetOutputPort()); 196 _normalsGenerator->SetFeatureAngle(90.); 197 _normalsGenerator->AutoOrientNormalsOff(); 198 _normalsGenerator->ComputePointNormalsOn(); 199 191 200 if (_dsMapper == NULL) { 192 201 _dsMapper = vtkSmartPointer<vtkPolyDataMapper>::New(); 193 202 _dsMapper->SetResolveCoincidentTopologyToPolygonOffset(); 194 _dsMapper->SetInputConnection(_ contourFilter->GetOutputPort());203 _dsMapper->SetInputConnection(_normalsGenerator->GetOutputPort()); 195 204 _dsMapper->ScalarVisibilityOff(); 196 205 //_dsMapper->SetColorModeToMapScalars(); -
branches/Rappture 1.2/packages/vizservers/vtkvis/RpContour3D.h
r3223 r3327 11 11 #include <vtkSmartPointer.h> 12 12 #include <vtkContourFilter.h> 13 #include <vtkPolyDataNormals.h> 13 14 #include <vtkLookupTable.h> 14 15 #include <vtkPolyDataMapper.h> … … 103 104 vtkSmartPointer<vtkLookupTable> _lut; 104 105 vtkSmartPointer<vtkContourFilter> _contourFilter; 106 vtkSmartPointer<vtkPolyDataNormals> _normalsGenerator; 105 107 vtkSmartPointer<vtkPolyDataMapper> _dsMapper; 106 108 };
Note: See TracChangeset
for help on using the changeset viewer.