<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class='hmmessage'>
Hello Rashed, you can draw it manually using vtkPoints and vtkPolyLine to define an ellipse according to ellipse equation.<BR>
i did it as follows in python:<BR>
<BR>
while self.i<=(2*pi):<BR> self.polyLinePoints.InsertPoint(self.cont, self.a*cos(self.i)+ 0,self.b*sin(self.i)+ 0, 0)<BR> self.i=self.i+(pi/15)<BR> self.cont=self.cont+1<BR>Next:<BR>
self.aPolyLine = vtkPolyLine()<BR>self.aPolyLine.GetPointIds().SetNumberOfIds(self.cont+1)<BR>for self.j in range(self.cont):<BR> self.aPolyLine.GetPointIds().SetId(self.j, self.j)<BR>
<BR>
Although, you can also modify the circle. I didnt never try to do it.<BR>
<BR>> Date: Sat, 7 Jun 2008 16:29:29 -0700<BR>> From: rashed.vtk@googlemail.com<BR>> To: vtkusers@vtk.org<BR>> Subject: [vtkusers] How to draw an ellipse?<BR>> <BR>> <BR>> Hi all, <BR>> <BR>> How do I draw a 2D ellipse on the screen? Is there a VTK function which does<BR>> this? I know for a circle you can use a vtkRegularPolygonSource. <BR>> <BR>> Thanks<BR>> Rashed<BR>> -- <BR>> View this message in context: http://www.nabble.com/How-to-draw-an-ellipse--tp17714285p17714285.html<BR>> Sent from the VTK - Users mailing list archive at Nabble.com.<BR>> <BR>> _______________________________________________<BR>> This is the private VTK discussion list.<BR>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ<BR>> Follow this link to subscribe/unsubscribe:<BR>> http://www.vtk.org/mailman/listinfo/vtkusers<BR><BR><br /><hr />Sigue de cerca las últimas tendencias y lo que más rompe <a href='http://video.msn.com/video.aspx?mkt=es-es' target='_new'>MSN Vídeo</a></body>
</html>