[vtkusers] error with find point

Gonzalo Amadio gonzaloamadio at gmail.com
Tue Aug 21 09:54:03 EDT 2012


I made it manually and it works (Is not the best way, but...)
Like this :

  bool found = false;

  for(int pointId = 0; pointId < polydata->GetNumberOfPoints(); pointId++)
>    {
> double pt[3];
> polydata->GetPoint(pointId,pt);//obtain points coordinates for each point.
>


 if(p[0] == pt[0] && p[1] == pt[1] && p[2] == pt[2]) //In p, is stored the
> point of edges.
> {
>  idPointCorrespondant = pointId;
> found = true;
> }
>


 if(found)
> break;

   }


2012/8/21 Jana Sefcikova <neollie at gmail.com>

> Hi Gonzalo, I would say that there is not one-to-one mapping between
> original polydata and polydata resulted from vtkFeatureEdges. Fast
> looking to code vtkFeatureEdges.cxx, I found for example
>
>  vtkTriangleStrip::DecomposeStrip(npts, pts, newPolys);
>
> This can result in different mesh (convert polydata to triangles before
> running filter). I did not go further inside that code ...
>
> j.
>



-- 
--------
Gonzalo Amadio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120821/64cdc2f4/attachment.htm>


More information about the vtkusers mailing list