[vtkusers] Distinctive indexes on a vtkPolyData

Hila Hiler hilahiler at gmail.com
Tue May 1 08:49:00 EDT 2012


Hi Wen,
many thanks for your answer.

I've read about kDTree and wondered if the OcTree is better (I have a 3D
image).
please detail (if you know) why KdTree is better than OcTree or the
opposite ...

regarding my first q:
-------------------------
my data structure:
vtkPolyData <=> vtkFloatArray <=> Scalars

I'm searching for a method that divides the poly to regions (how do I
insert the number of the required regions) and returns the indexes
(vtkIdType) + its corresponding scalar (float) in each region.

How I can get this?

Best and thanks in advance.
Hila



On Sun, Apr 29, 2012 at 10:32 PM, Li, Wen <wen-li at uiowa.edu> wrote:

>  Hila,
>
>  Is vtkKdTreePointLocator::FindPointsWithinRadius going to help you?
>
>  You can exclude points within a specific radius and the rest points on
> the surface are beyond that value.
>
>  You are right about the point ids. neighboring points could have very
> different point Ids.
>
>  Good Luck,
> Wen
>
>   On Apr 29, 2012, at 2:21 PM, Hila Hiler wrote:
>
>  Hi All,
>
> I'd like to get some *distant points* on a surface (in this case, a head).
> How do I know what the distance value should be?
>
> Actually, in my program I use this type: vtkIdType and with a loop move on
> a vtkPolyData.
> I tried to guess a number (5000), presented the points on the surface but
> realized that even that those points look very close, their indexes are
> faraway from each other- so I guess that I don't have a clue about it :-)
>
>
> so, any idea how I should find indexes/points which are faraway from each
> other on a surface ?
>
>
> Thanks in advance.
>
> Hila
>  _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK 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/20120501/eb87d418/attachment.htm>


More information about the vtkusers mailing list