[vtkusers] <no subject>
ahmed Tokalak
tokalak at web.de
Mon Jan 14 18:29:02 EST 2002
Hi all,
I do the following to color all sides of a vtkCubeSource
differently. But i doesnt function.
(prog-snippet in Java) :
vtkCubeSource cSource = new vtkCubeSource();
cSource.SetXLength(3);
cSource.SetYLength(3);
cSource.SetZLength(3);
vtkPolyData cube = cSource.GetOutput();
cube.BuildCells();
System.out.println(cube.Print());
cube.GetCellData().SetScalars(faceColors);
vtkPolyDataMapper cubeMapper = new vtkPolyDataMapper();
cubeMapper.SetScalarRange(0, 6.0);
cubeMapper.SetScalarModeToUseCellData();
........
The result is that all 6 sides are gray. The problem is that
"cube" has no cells and polys defined. How can i reach this ?
How can color all 6 sides of a cube differently ?
Thanks for any help
Greetings,
Ahmet
______________________________________________________________________________
Darf es ein bisschen mehr sein? Mehr Speicher, mehr Mail, mehr Erlebnis,
mehr Prämie, mehr WEB.DE. Der WEB.DE Club - http://club.web.de
More information about the vtkusers
mailing list