[vtkusers] Gouraud interpolation
Csaba Palotai
c0palo01 at louisville.edu
Thu Jul 18 13:07:21 EDT 2002
Hi all,
I tried to get rid of my facetts with SetInterpolationToGouraud but it
didn't make any difference at all.
I pasted part of the code (see below).
Can anyone help out with ideas why it didn't work or sample code?
I appreciate any help
Regards,
Csaba
************
vtkDelaunay2D* dely = vtkDelaunay2D::New();
dely->SetInput(polydata);
dely->SetSource(polydata);
vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
mapper->SetInput(dely->GetOutput());
mapper->SetScalarRange(0.0,dens_max*1.1);
vtkActor* actor = vtkActor::New();
actor->SetMapper(mapper);
actor->GetProperty()->SetInterpolationToGouraud();
vtkRenderer* ren = vtkRenderer::New();
ren->AddActor(actor);
***************
Csaba Palotai
Research Assistant
Comparative Planetology Laboratory
104 Sackett Hall, University of Louisville
Louisville, KY 40292
phone: (502) 852-3927 email: csaba.palotai at louisville.edu
fax: (502) 852-6053 URL:www.louisville.edu/research/cpl
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 1074 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20020718/8fba5b14/attachment.bin>
More information about the vtkusers
mailing list