[Paraview] Issue with vtkStructuredGrid and ParaView

Adriano Gagliardi agagliardi at ara.co.uk
Thu Jun 9 12:24:03 EDT 2011


I am trying to visualise a structured grid using ParaView. I am able to
create a vtkStructuredGrid and read it into ParaView fine. ParaView returns
the correct number of points and cells. However, it doesn't display anything
even though I followed the example in the VTK tutorials. Have I missed a
step out or could this be related to my (I,J) ordering? Example code below:

  vtkSmartPointer<vtkStructuredGrid> grid =
vtkSmartPointer<vtkStructuredGrid>::New();
  grid->SetDimensions(i, j, 1);
  grid->SetPoints(nodes);
  for (int var = 0; var != numVars; ++var)
    grid->GetPointData()->AddArray(vars[var]);
  grid->Update();

Thanks,

Adriano

===================================

Adriano Gagliardi MEng PhD
Business Sector Leader
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agagliardi at ara.co.uk
Url: www.ara.co.uk 


**********************************************************************
This email contains information that is private and confidential and is intended only for the addressee.
If you are not the intended recipient please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other than the recipient, for
system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No 503668 Registered Office:
Manton Lane, Bedford MK41 7PF England VAT No GB 196351245

**********************************************************************


More information about the ParaView mailing list