[vtkusers] vtkCGMWriter not working ?

de Boer Ingo I.deBoer at polytec.de
Mon Apr 3 06:55:37 EDT 2006


Hi,

ok... I have to set the viewport, like

pvtkCGMWriter->SetViewport(renderer);

But can I get the correct color gradient from the cube sample ?
As I can read from the vtkCGMWriter docs, I can only colorize
the cells, right ? So, I'll never get a color gradient in a
single cell in .cgm ?

greets
  Ingo

> -----Original Message-----
> Subject: [vtkusers] vtkCGMWriter not working ?
> 
> 
> Hi,
> 
> I am using VTK 4.4 with vtkCGMWriter. I have modified the 
> cube.cxx sample to write a .cgm file. But it's only black. Is 
> there more to do than:
> 
> vtkCGMWriter* pvtkCGMWriter = vtkCGMWriter::New();
> pvtkCGMWriter->SetInput(cube);
> pvtkCGMWriter->SetFileName("c:\\temp\\out.cgm");
> pvtkCGMWriter->Write();
> pvtkCGMWriter->Delete();
> 
> ??
> 
> I have attached the complete sample.
> 
> greets
>   Ingo
> 
> ---
> Dr.-Ing. Ingo H. de Boer
> 
> Polytec GmbH
> Polytec-Platz 1-7, 76337 Waldbronn, Germany
> phone: ++49 7243 604 106
> fax  : ++49 7243 604 255
>  
> 



More information about the vtkusers mailing list