[vtkusers] wireframes??

Frank Conradie frank at qfin.net
Thu Mar 18 10:05:22 EST 2004


David

1. You'll have to set ambient to 1.0, and diffuse and specular to 0.0
        actor.GetProperty().SetAmbient(1.0)
        actor.GetProperty().SetDiffuse(0.0)
        actor.GetProperty().SetSpecular(0.0)

2. vtkActor::GetProperty()::SetLineWidth(n)

Frank

----- Original Message -----
From: "david michell" <davidmichell at rediffmail.com>
To: <vtkusers at vtk.org>
Sent: Wednesday, March 17, 2004 11:33 PM
Subject: [vtkusers] wireframes??


Hi everyone,
I have a vtkUnstructuredGrid and I managed to render the data as a surface.
I want to display the surface as a wireframe , i used
vtkActor::GetProperty()::SetRepresentationToWireframe()
It works , but I have two problems,
1) In the wireframe the backface is always black only the front face shows
colour. I used TwoSidedLightingOn(), but this has no effect.
2) I want to change the width of the wireframe lines, how do I do that.

Please help me out.
Thank you all.
David Michell




More information about the vtkusers mailing list