[vtkusers] (no subject)

Luke J West ljw at soc.soton.ac.uk
Fri May 30 07:25:44 EDT 2003


Hi,

If I want to use a vtkStructuredGrid as input to vtkContourFilter, do I need
more than points and scalars? At the moment vtkContourFilter just gives me a
segmentation error. This is what I'm doing...


 vtkStructuredGrid* grid = vtkStructuredGrid::New();
  grid->SetDimensions(dims[0],dims[1],dims[2]);
  grid->SetPoints(points);
  grid->GetPointData()->SetScalars(scalars);

 vtkContourFilter* contour = vtkContourFilter::New();
  contour->SetInput(grid);
  contour->GenerateValues(2,0,1);


Perhaps someone has an example (in any language) of how to create a simple
vtkStructuredGrid which is suitable for contouring?

Thanks,


Luke J West : Research Assistant : e-Science
--------------------------------------------
Rm. 566/12, School of Ocean & Earth Sciences
Southampton Oceanography Centre, Southampton
SO14 3ZH  United Kingdom
--------------------------------------------
Tel: +44 23 8059 4801  Fax: +44 23 8059 3052
Mob: +44 79 6107 4783




More information about the vtkusers mailing list