Hi guys.
 
I am writing a 3D polygonal modeller, with a view to simulating surgery procedures.
Sometimes I require an actor to be viewed as a solid object sometimes as a wireframe mesh.
I am using two vtkProperty objects to make the change when necessary.
The code is (roughly, i think):
 
/ /wireframe required:
myActor->SetProperty(wireprop)
// Solid required:
myActor->SetProperty(prevprop)
 
where:
wireprop->SetRepresentationToWireframe
prevprop->SetRepresentationToSurface
 
All properties (surface colour etc) update ok when the properties are swapped but the representation always stays the same (ie if wireframe property is initially used actor is always in wireframe mode). Is this a bug in vtkProperty or have I screwed up the code?? btw i am using vtk 2.2
 
Also, I need to be able to perform boolean subtractions on polygonal objects. As far as I am aware, there is no filter in vtk that will allow me to subtract one polygonal model from another. Has anyone implemented such a thing??
 
Thanks in advance,
Case