[vtkusers] how can I visualize a circular nut with VTK ?

luciangoron luciangoron at gmail.com
Thu May 14 11:27:50 EDT 2009


Yes, but the smaller circle would be still invisible, and I would see the
bigger circle below...
so, I would not get the result I want (as in the e.g. jpg)...
thanks anyway !



Shady Shidfar wrote:
> 
> 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
> 
> 
> 
> 
> _______________________________________________
> 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
> 
> 

-- 
View this message in context: http://www.nabble.com/how-can-I-visualize-a-circular-nut-with-VTK---tp23540071p23542949.html
Sent from the VTK - Users mailing list archive at Nabble.com.




More information about the vtkusers mailing list