[vtkusers] Need help for modification in vtkFeatureEdges !

Turner, Wesley D (Research) turner at crd.ge.com
Mon Jun 2 12:18:42 EDT 2003


Sebastien,

I don't know if this helps, but I had a similar problem with a VTK filter
and solved it much easier by just defining a vtkNullLocator.  The locator
does nothing on an InsertUniquePoint, except to do an InsertNextPoint.  I.e.
no merging occurs because every point is assumed to be unique.  Then given a
vtkFeatureEdges instantiation, f, and a vtkNullLocator instantiation n, you
would just do f->SetLocator(n).  I have included the code below, if it looks
to be of general interest, it can be checked into the repository.



-----Original Message-----
From: Sebastien Auclair [mailto:sxa at fluent.com]
Sent: Monday, June 02, 2003 11:49 AM
To: vtkusers at public.kitware.com
Subject: [vtkusers] Need help for modification in vtkFeatureEdges !


Greetings,

As said last week, vtkFeatureEdges needs to be modified to eliminate the
fact that it uses vtkMergePoints the "slow\memory costly" operation that
isn't necessary. (Merging points !)

I just need a bit of help for line 331 and the re-implementation of the
function FeatureEdges::InsertUniquePoint(...) which is now localy
implemented.
I guess it just need to provide a point index ... but i am not sure how to
do that efficiently.

The vtk (.h, .cxx) files and classes were temporarly renamed to facilitate
our compilation process...

We would need this for today so if someone could help it would be "Really"
great !!

Thanks for any help !

(See attachments )
_____________________________________
Seb


begin 600 vtkNullLocator.h
M+RH]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]
M/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]/3T]#0H-"B`@4')O9W)A;3H@
M("!6:7-U86QI>F%T:6]N(%1O;VQK:70-"B`@36]D=6QE.B`@("`D4D-39FEL
M93H@=G1K3G5L;$QO8V%T;W(N:"QV("0-"B`@3&%N9W5A9V4Z("!#*RL-"B`@
M1&%T93H@("`@("`D1&%T93H@,C`P,B\P-B\Q."`Q-#HU.3HR,B`D#0H@(%9E
M<G-I;VXZ("`@)%)E=FES:6]N.B`Q+C$@)`T*#0H@($-O<'ER:6=H="`H8RD@
M,3DY,RTR,#`R($ME;B!-87)T:6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&]C871O<BD[#0H-"FEN=`T*=G1K3G5L;$QO8V%T;W(Z
M.DEN<V5R=%5N:7%U95!O:6YT*&-O;G-T(&9L;V%T('A;,UTL('9T:TED5'EP
M92`F:60I#0I[#0H@(&ED(#T@=&AI<RT^26YS97)T3F5X=%!O:6YT*'@I.PT*
0("!R971U<FX@,3L-"GT-"@==
`
end



More information about the vtkusers mailing list