[vtkusers] How to create a cube with vtkPolyData

David Doria daviddoria+vtk at gmail.com
Mon May 17 17:08:33 EDT 2010


On Mon, May 17, 2010 at 5:03 PM, Jothy <jothybasu at gmail.com> wrote:
> Hi all,
>
> I want to create a hexahedron using vtkPolyData. I think there is no
> example in wiki. I created it with a vtkHexaHedron but when I cut it
> it produces a line across the cut section.I don't want this. I am not
> able to solve this problem for many months.I used it passing through
> vtkstripper, vtkTriangle. Finally found that only if the input is of
> vtkPolyData, cutter will not produce that line across the cut section.
> Can some with kind enough :), add an example of how to create cube or
> cone with vtkPoldata.
>
> Many thanks,
>
> Jothy

I don't really understand your question. The title and your last
sentence talk about cubes and cones

http://www.vtk.org/Wiki/VTK/Examples/GeometricObjects/Cube
http://www.vtk.org/Wiki/VTK/Examples/GeometricObjects/Display/Cone

but the beginning talks about hexahedrons

http://www.vtk.org/Wiki/VTK/Examples/GeometricObjects/Hexahedron

Let us know if these links do not help.

David



More information about the vtkusers mailing list