[vtkusers] Getting verts and lines from polydata source
Charl P. Botha
cpbotha at gmail.com
Fri Aug 27 17:40:41 EDT 2004
I really prefer not top-quoting, but your Outlook has embedded your
message in such a way that gmail can't inline your message with little
> thingies. Oh well.
To answer your question: pass the output of the vtkCubeSource through
a vtkExtractEdges.
----- Original Message -----
From: Alex Lear <alear at cns.montana.edu>
Date: Fri, 27 Aug 2004 15:15:18 -0600
Subject: [vtkusers] Getting verts and lines from polydata source
To: vtkusers at vtk.org
I am using a vtkCubeSource to create a cube but I would like to get
just the verts and lines from it to make a wireframe basically. So
far I have tried to create a vtkPolyData and use the GetVerts() from
the GetOutput() from the cube source and SetVerts() on the
vtkPolyData. I do this for the lines as well. This didn't work for
me so I tried a GetNumberOfVerts() and GetNumberOfLines() on the
GetOutput() from the cube source and both resulted in zero.
Can someone see what I'm doing wrong or how I can accomplish what I'm
trying to do. If any of this is confusing I can include a code chunk.
Thanks,
Alex
_______________________________________________
This is the private VTK discussion list.
Please keep messages on-topic. Check the FAQ at:
<http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to subscribe/unsubscribe:
http://www.vtk.org/mailman/listinfo/vtkusers
--
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/
More information about the vtkusers
mailing list