[vtkusers] Scalar value minima in PolyData
Kevin H. Hobbs
hobbsk at ohiou.edu
Mon Nov 26 08:46:30 EST 2007
On Thu, 2007-11-22 at 10:06 +1300, David.Pont at ensisjv.com wrote:
> "Kevin H. Hobbs" <hobbsk at ohiou.edu> wrote on 22/11/2007 02:40:31:
>
> > Is there a better way to find all of the positions of the scalar
> value
> > minima in a PolyData than to :
> > loop over all of the points
> > loop over all of the cells the point is in
> > loop over all of the other points in the cell
> > compare the values of the other points to the first
> points value
> > save the points location if it is value is less than all of
> > its neighbor's values.
> >
> >
> vtkThresholdPoints can be used to extract all points with a scalar
> value <= a specified threshold, but if you are after local minima then
> you are on the right track.
> DP
Thank you David.
Yes, I am after scalar value local minima.
Though the code I posted works both the pseudo-code and code make it
obvious that looping like this is inelegant, confusing, and probably
inefficient.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20071126/1fa32838/attachment.pgp>
More information about the vtkusers
mailing list