[vtkusers] Create a grid?
Frederic DANESI
frederic.danesi at dinccs.com
Thu Feb 21 04:33:38 EST 2008
I don't really understand you issue : what are you exactly trying to do ?
creating and visualizing a grid as cubic cells or in a "triangulated" way ?
only the outside ?
vtkRectilinearGrid and vtkUnstructuredGrid are valid input for
vtkDataSetMapper, or you should consider using a filter such as
vtkGeometryFilter to get a polydata representation of the outside of your
grids ...
For example (in Java) :
vtkUnstructuredGridReader rd = new
vtkUnstructuredGridReader();
rd.SetFileName(myGridFile);
vtkGeometryFilter ext = new vtkGeometryFilter();
ext.SetInput((rd.GetOutput()));
ext.Update();
vtkPolyDataMapper map = new vtkPolyDataMapper();
map.SetInput(ext.GetOutput());
vtkActor actref = new vtkActor();
actref.SetMapper(map);
actref.GetProperty().SetRepresentationToWireframe();
Cordialement,
F.Danesi
--
Département DINCCS (Département Ingénierie Numérique, Conception
Collaborative et Simulation)
MICADO / DINCCS
Pole de Haute Technologie, 7 boulevard Jean Delautre (IFTS)
08000 Charleville-Mézières
Tel. : 03.24.41.69.55 / 06.62.76.13.32
Email : frederic.danesi at dinccs.com
Web: www.afmicado.com / www.dinccs.com
> -----Message d'origine-----
> De : vtkusers-bounces+frederic.danesi=dinccs.com at vtk.org [mailto:vtkusers-
> bounces+frederic.danesi=dinccs.com at vtk.org] De la part de Yuri Ivanov
> Envoyé : jeudi 21 février 2008 10:12
> À : vtkusers at vtk.org
> Objet : Re: [vtkusers] Create a grid?
>
>
> Hi,
>
> I have the same problem with you. I have x,y,z and colour values. I use
> vtkUnstructeredGrid and then triangulate them with vtkDelaunay3D. But it
> must be converted to vtkImageData. I think, if we convert it to
> vtkImagedata, then we can do what we want.
>
> Sincerely..
>
>
>
>
>
> Brian Man wrote:
> >
> > Hi all,
> >
> > Could someone help me out in creating a simple rectangular grid. I
> > tried to use an vtkImageData and a dataset mapper but failed in this
> > pursuit.
> >
> > Regards
> > Brian Gee Chacko
> > _______________________________________________
> > This is the private VTK discussion list.
> > Please keep messages on-topic. Check the FAQ at:
> > http://www.vtk.org/Wiki/VTK_FAQ
> > Follow this link to subscribe/unsubscribe:
> > http://www.vtk.org/mailman/listinfo/vtkusers
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Create-a-grid--
> tp15539043p15607214.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
More information about the vtkusers
mailing list