[vtkusers] STL file surface coordinate
Amy Squillacote
amy.squillacote at kitware.com
Thu Dec 28 13:50:40 EST 2006
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
> ------------------------------------------------------------------------
>
> _______________________________________________
> 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
>
More information about the vtkusers
mailing list