[vtkusers] how can I visualize a circular nut with VTK ?
Shady Shidfar
shady_shidfar at yahoo.com
Thu May 14 09:19:36 EDT 2009
Hi, by setting Opacity to zero you are making your actor invisible. Instead of doing that, change the z order of your actors so that the small object would be displayed over the
small one. Hope this helps
Shaadi
________________________________
From: luciangoron <luciangoron at gmail.com>
To: vtkusers at vtk.org
Sent: Thursday, 14 May, 2009 13:58:25
Subject: [vtkusers] how can I visualize a circular nut with VTK ?
http://www.nabble.com/file/p23540071/e.g.jpg e.g.jpg
as in the image I uploaded...
I tried to do it with help of the vtkDiskSource class.. but I could not set
the center, or set the number o sides (to be smooth as a circle)
I also tried using vtkRegularPolygonSource class.. by visualizing two
circles (big one + small one) with the same center
the big one (with bigger radius) to be at 100% Opacity ( SetOpacity(1.0) )
the small one (with smaller radius) to be at 0% Opacity ( SetOpacity(0.0) )
but the Renderer show the Opacity of the big circle... as it actually should
be !
If anybody has a solution, please answer me...
Thank you in advance !
--
View this message in context: http://www.nabble.com/how-can-I-visualize-a-circular-nut-with-VTK---tp23540071p23540071.html
Sent from the VTK - Users mailing list archive at Nabble.com.
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090514/b6a3de8f/attachment.htm>
More information about the vtkusers
mailing list