[RE][vtkusers] Re: How to draw a circle ?

Goodwin Lawlor goodwin.lawlor at ucd.ie
Wed Nov 8 09:49:40 EST 2006


If you are not too concern about the added thickness to your circle the
you can also use

vtkRotationalExtrusionFilter and SetAngle(360). This needs a profile
(line) which you can define with one point at x,R and other at x, R+tol.
Where

x is your center and R is your radius and tol is some tolerance,
normally 1e-4 or 1e03...



-Regards

Praveen








     ---------[ Received Mail Content ]----------

     *Subject : *[vtkusers] Re: How to draw a circle ?

     *Date : *Mon, 06 Nov 2006 18:18:43 +0000

     *From : *Goodwin Lawlor <goodwin.lawlor at ucd.ie>

     *To : *vtkusers at public.kitware.com

     *Cc : *


     Hummel, Jerome wrote:


      > Dear VTK users,


      >


      > Sorry in advance if the answer is straightforward, I am kind of a
     newbie here. I


      > can' t figure out how to draw a circle (or a torre) in a 3D space
     (giving a plan


      > a center and a radius)?


      > Can anybody help?


      > Thank you for your time.


      > regards,



     Hi Jerome,



     You can use vtkRegularPolygonSource... set the center, radius and


     normal. Obviously, the more NumberOfSides you set the more circular
     your


     polygon will look.



     hth



     Goodwin



     _______________________________________________


     This is the private VTK discussion list.


     Please keep messages on-topic. Check the FAQ at:
     http://www.vtk.org/Wiki/VTK_FAQ


     Follow this link to subscribe/unsubscribe:


     http://www.vtk.org/mailman/listinfo/vtkusers




------------------------------------------------------------------------

The new LYCOS MAIL. Want to share all your favorite videos, photos and
music with your friends? Now you can.
Sign up now for your free account. 3 gigs of storage for free. Unlimited
size file attachments. _http://mail.lycos.com_



More information about the vtkusers mailing list