Dave,<br><br>Here is the function I use to create a polydata circle.<br><br>void CircleInit( vtkPoints *points, int radius, int *center )<br>{<br>    vtkRegularPolygonSource * poly = vtkRegularPolygonSource::New();<br>    poly-&gt;GeneratePolygonOff();<br>
    poly-&gt;SetNumberOfSides(50);<br>    poly-&gt;SetRadius(radius);    <br>    poly-&gt;SetCenter(center[0],center[1],0);<br>    poly-&gt;Update();<br>    points-&gt;DeepCopy(poly-&gt;GetOutput()-&gt;GetPoints());<br>    poly-&gt;Delete();<br>
}<br><br>Siqi<br><br><br><div class="gmail_quote">On Mon, Dec 28, 2009 at 10:50 AM, 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="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I noticed that there is not a &quot;vtkCircleSource&quot;. What is the best way<br>
to create a circle in a polydata? I am trying to make varying size<br>
circles for the vtkVoxelContoursToSurfaceFilter example. Should I use<br>
vtkSphereSource and vtkCutter? Does it make sense to add a<br>
vtkCircleSource class?<br>
<br>
Thanks,<br>
<br>
David<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>