[vtkusers] What's wrong with my script?

s comp sscomp2004 at yahoo.com.au
Tue Oct 19 13:32:53 EDT 2004


Hi all,
 
any help would be appreciated.
 
The relevant section is shown below
I am trying to contour two different sets of scalar point attributes, stored on the same grid, but it always produces 2 contours of the one set of scalar data (In this case since both isovalues are the same just the one contour is seen)
 
Thanks,
 
sonam
 
$octreeSource SetScalarsName "psf1"
$octreeSource Update
 
vtkContourFilter cf
  cf SetInput  [$octreeSource GetOutput]
  cf SetValue 0 0
 vtkPolyDataMapper contoursMapper
  contoursMapper SetInput [cf GetOutput]
 vtkActor contours
  contours SetMapper contoursMapper
 
$octreeSource SetScalarsName "psf2"
$octreeSource Update


vtkContourFilter cf2
  cf2 SetInput  [$octreeSource GetOutput]
  cf2 SetValue 0 0
 vtkPolyDataMapper contoursMapper2
  contoursMapper2 SetInput [cf2 GetOutput]
 vtkActor contours2
  contours2 SetMapper contoursMapper2

  



---------------------------------
Find local movie times and trailers on Yahoo! Movies.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20041020/3730e8d8/attachment.htm>


More information about the vtkusers mailing list