[vtkusers] STL file surface coordinate

tony hakki tony2007vtk at yahoo.com
Thu Dec 28 14:49:29 EST 2006


You are right ,I am trying to print the coordinates as text on the screen.


----- Original Message ----
From: Amy Squillacote <amy.squillacote at kitware.com>
To: tony hakki <tony2007vtk at yahoo.com>; VTK Users <vtkusers at vtk.org>
Sent: Thursday, December 28, 2006 8:40:34 PM
Subject: Re: [vtkusers] STL file surface coordinate


Hi Tony,

Please keep the discussion on the mailing list so other people can help 
answer your questions and so any answers are archived.

What do you mean by "show the coordinates on the screen"? Are you trying 
to print the coordinates as text on the screen? Or are you trying to 
display the dataset (a vtkPolyData) you read in using the vtkSTLReader?

- Amy

tony hakki wrote:
> Dear Amy;
> thanks for kind help  , really, I am ver happy. One more little 
> question. I would like to show this coordinates on the screen . For 
> this , what should I do.
>  Thanks in advance
> tony
>  
>  
>  
>  
> ----- Original Message ----
> From: Amy Squillacote <amy.squillacote at kitware.com>
> To: tony hakki <tony2007vtk at yahoo.com>
> Cc: VTK Ortak mail hesabi <vtkusers at vtk.org>
> Sent: Thursday, December 28, 2006 7:50:40 PM
> Subject: Re: [vtkusers] STL file surface coordinate
>
> Hi Tony,
>
> Do something like the following.
>
> vtkSTLReader *reader = vtkSTLReader::New();
> ...
> vtkPoints *points = reader->GetOutput()->GetPoints();
> int numPts = points->GetNumberOfPoints();
> int i;
> double *pt;
>
> for (i = 0; i < numPts; i++)
> {
>   pt = points->GetPoint(i);
>   // Now you have the point coordinates as a double[3].
> }
>
>
> - Amy
>
> tony hakki wrote:
> > hi all;
> > I would like to get surface coordinate of a STL data. how can I do
> > that? Now I just read the stl data
> > thanks in advance
> >  
> > tony
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail.yahoo.com <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
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20061228/84c1ed11/attachment.htm>


More information about the vtkusers mailing list