[vtkusers] VtkVRMLImporter
Tom Citriniti
citrit at rpi.edu
Mon May 24 20:20:51 EDT 2004
Currently the VRML importer does not handler per vertex coloring..
Tom C.
----- Original Message -----
From: <alletto at dei.unipd.it>
To: "VtkUsers" <vtkusers at vtk.org>
Sent: Saturday, May 22, 2004 11:13 AM
Subject: [vtkusers] VtkVRMLImporter
>
>
> Hi vtk users,
> I have some problems when using vtkVRMLImporter, namely with importing
colour.
> Does vtk support color node and precisely ColorPerVertex?
>
> vtkRenderWindow *renWin = vtkRenderWindow::New();
> vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New();
> vtkInteractorStyleTrackballCamera *style =
> vtkInteractorStyleTrackballCamera::New();
> vtkVRMLImporter *importObj = vtkVRMLImporter::New();
> importObj->SetFileName(newfile);
> importObj->SetRenderWindow(renWin);
> importObj->Read();
>
> vtkRenderer *ren1 = importObj->GetRenderer();
> iren->SetRenderWindow(renWin);
> iren->SetInteractorStyle(style);
> renWin->Render();
> renWin->SetWindowName(newfile);
> renWin->Render();
>
> iren->Start();
>
> renWin->Delete();
> iren->Delete();
> style->Delete();
> importObj->Delete();
>
> Is there anything wrong?
>
> Thank you in advance
>
> Michele Alletto
>
>
>
> -------------------------------------------------
> This mail sent through IMP: http://horde.org/imp/
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
More information about the vtkusers
mailing list