[vtkusers] How to draw a ploygon on 3D object?

David Doria daviddoria at gmail.com
Mon Oct 25 08:31:42 EDT 2010


On Mon, Oct 25, 2010 at 2:27 AM, finsher <zhuyinghua01 at gmail.com> wrote:

>
> Hi all,
> i want to draw a ploygon on a 3D window, the window display the
> reconstruction volume.
> after drawing the graphics, the volume data will be cut by the projected
> Ploygon.
>
> any suggestion will be appreciate!
>
> Yinghua.
>

This is how to draw a general polygon:
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon

and this is how to draw a "regular" polygon (all sides equal length and
convex):
http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/RegularPolygonSource
<http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/RegularPolygonSource>
Is that what you are looking for?

David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20101025/0dbf4491/attachment.htm>


More information about the vtkusers mailing list