<div dir="ltr">I am already doing this!<br><br>My aim is to create much more complicated shapes, for ease of understanding I mentioned basic shapes so that I can learn easier things first.I think if I go to the nightly docs, I will find some examples in vtkPolyData class.<br>
<br>Jothy<br><br><div class="gmail_quote">On Thu, Apr 15, 2010 at 5:51 PM, David Doria <span dir="ltr">&lt;<a href="mailto:daviddoria%2Bvtk@gmail.com">daviddoria+vtk@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5"><div class="gmail_quote">On Thu, Apr 15, 2010 at 12:46 PM, Jothybasu K Selvaraj <span dir="ltr">&lt;<a href="mailto:jothybasu@gmail.com" target="_blank">jothybasu@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div dir="ltr">Hi all,<br><br>Is there any example on the wiki or does anyone know how to create basic sahpes like square/rectangle/circle using polydata?<br><br>Thanks,<br><br>Jothy<br></div><div dir="ltr"><br></div>
</blockquote></div><div><br></div></div></div>Yep, create a 3d object and then cut it:<div><br><div><a href="http://www.vtk.org/Wiki/VTK/Examples/Circle" target="_blank">http://www.vtk.org/Wiki/VTK/Examples/Circle</a></div>
<div><br></div><div>Sphere -&gt; cut -&gt; circle</div>
<div>Cube -&gt; cut -&gt; square</div><div><br></div><div>Thanks,<br><font color="#888888"><br>David</font></div></div>
</blockquote></div><br></div>