update
This commit is contained in:
Binary file not shown.
@ -41,11 +41,15 @@ class VolumeViewer(QVTKRenderWindowInteractor):
|
||||
self.scalarTF.AddPoint(110, 0.00)
|
||||
self.scalarTF.AddPoint(512, 0.5)
|
||||
|
||||
self.gradientTF = vtkPiecewiseFunction()
|
||||
self.gradientTF.AddPoint(-200, 0.0)
|
||||
|
||||
self.volume_property = vtkVolumeProperty()
|
||||
self.volume_property.ShadeOn()
|
||||
self.volume_property.SetInterpolationTypeToLinear()
|
||||
self.volume_property.SetColor(self.colorTF)
|
||||
self.volume_property.SetScalarOpacity(self.scalarTF)
|
||||
# self.volume_property.SetGradientOpacity(self.gradientTF)
|
||||
|
||||
self.volume = vtkVolume()
|
||||
self.volume.SetMapper(self.volume_mapper)
|
||||
|
Reference in New Issue
Block a user