[vtkusers] how to get the details about the object created by vtk sources?
Shriram Iyer
shriram.uc at gmail.com
Mon Oct 22 15:13:19 EDT 2007
Use cone->GetOutput()->GetPoints() to get the vertices.
Shriram
On 10/22/07, Toron J. <ji_wi at yahoo.com> wrote:
>
> Hi All,
>
> I used the following codes to build a simple cone.
>
> ---------------------------------------------------------------------------------------
> vtkConeSource *cone = vtkConeSource::New();
> cone->SetHeight( 3.0 );
> cone->SetRadius( 1.0 );
> cone->SetResolution( 6 );
>
> vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New();
> coneMapper->SetInput( cone->GetOutput() );
>
> --------------------------------------------------------------------------------------
> Does any one can help me to know how to get the position (x,y,z) of each
> vertex and the rendering index? Thanks in advance!
>
> Toron
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071022/75dfb834/attachment.htm>
More information about the vtkusers
mailing list