[vtkusers] vtkusers Digest, Vol 70, Issue 5

nikhil singhania niksinghania at gmail.com
Tue Feb 2 11:56:04 EST 2010


hi all,
I am converting a code from vtk to java where i have used the
boxwidget function. code as such is running fine but after including
the code for boxwidget its giving the following error:

Exception in thread "main" java.lang.UnsatisfiedLinkError:
vtk.vtkBoxWidget.VTKInit()J
        at vtk.vtkBoxWidget.VTKInit(Native Method)
        at vtk.vtkObject.<init>(vtkObject.java:96)
        at vtk.vtkInteractorObserver.<init>(vtkInteractorObserver.java:181)
        at vtk.vtk3DWidget.<init>(vtk3DWidget.java:120)
        at vtk.vtkBoxWidget.<init>(vtkBoxWidget.java:304)
        at javaapplication12.Main.main(Main.java:176)

please help me out, what may be the possible error.

On 02/02/2010, vtkusers-request at vtk.org <vtkusers-request at vtk.org> wrote:
> Send vtkusers mailing list submissions to
> 	vtkusers at vtk.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://www.vtk.org/mailman/listinfo/vtkusers
> or, via email, send a message with subject or body 'help' to
> 	vtkusers-request at vtk.org
>
> You can reach the person managing the list at
> 	vtkusers-owner at vtk.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of vtkusers digest..."
>
>
> Today's Topics:
>
>    1. Re: connecting points in from vtkPoints (Rakesh Patil)
>    2. Re: How to put a legend box? (Rakesh Patil)
>    3. The VTK Journal-New Submission (VTK Journal)
>    4. The VTK Journal-New Submission (VTK Journal)
>    5. Re: The VTK Journal-New Submission (Bill Lorensen)
>    6. Re: connecting points in from vtkPoints (Bill Lorensen)
>    7. Re: vtkDataArray: Memory allocation problem (Liam Kurmos)
>    8. Re: java.lang.UnsatisfiedLinkError with vtk 5.4 and	java
>       wrapper (Sebastien Jourdain)
>    9. Re: Efficiency problem in mesh display script ; TCL - VTK
>       (Rafal Robak)
>   10. quadratic comparison of points in a polyData mesh,	a faster
>       way? (Ryven)
>   11. Re: connecting points in from vtkPoints (Bill Lorensen)
>   12. Re: VTK Examples can use your help! (Andy Bauer)
>   13. Re: quadratic comparison of points in a polyData mesh,	a
>       faster way? (David Gobbi)
>   14. Re: VTK Examples can use your help! (David Doria)
>   15. Re: VTK Examples can use your help! (Bill Lorensen)
>   16. Re: quadratic comparison of points in a polyData mesh,	a
>       faster way? (David Doria)
>   17. Re: VTK Examples can use your help! (Andy Bauer)
>   18. Re: quadratic comparison of points in a polyData mesh,	a
>       faster way? (Wes Turner)
>   19. Re: [Paraview] Rendering: Paraview only renders portions	of
>       the screen when switching between windows (da)
>   20. Positioning vtkActor2D (Allan James)
>   21. Re: [Paraview] Rendering: Paraview only renders portions	of
>       the screen when switching between windows (Berk Geveci)
>   22. Selections (David Doria)
>   23. Re: Selections (Bill Lorensen)
>   24. Re: connecting points in from vtkPoints (Rakesh Patil)
>   25. Re: connecting points in from vtkPoints (Bill Lorensen)
>   26. vtkSplineFilter not distributing points evenly... (Rakesh Patil)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 01 Feb 2010 22:46:53 +0530
> From: "Rakesh Patil" <rakeshthp at in.com>
> Subject: Re: [vtkusers] connecting points in from vtkPoints
> To: "Bill Lorensen" <bill.lorensen at gmail.com>
> Cc: , vtkusers <vtkusers at vtk.org>
> Message-ID: <1265044613.f7cade80b7cc92b991cf4d2806d6bd78 at mail.in.com>
> Content-Type: text/plain; charset="utf-8"
>
>  Hi.I guess vtkStripper produces vtkPolydata as its output.. so How can be
> the polyline extracted from vtkstripper?As u said, i'm using the points from
> stripper and producing polyline of my own..Thanks Original message From:Bill
> Lorensen< bill.lorensen at gmail.com >Date: 01 Feb 10 19:19:48Subject:Re:
> [vtkusers] connecting points in from vtkPointsTo: Rakesh Patil Are you using
> the polyline generated by the stripper or creating yourown? You must use the
> one produced by the stripper.On Mon, Feb 1, 2010 at 4:14 AM, Rakesh
> Patilwrote:>> Yes it does changes ... I get the points.. But when i connect
> these points> using polyline, again i get a zigzag lines...>>  Original
> message > From:David Doria< daviddoria+vtk at gmail.com >> Date: 31 Jan 10
> 01:22:41> Subject: Re: [vtkusers] connecting points in from vtkPoints> To:
> rakeshthp at in.com>> Thanks,>> David>>>> On Sat, Jan 30, 2010 at 12:25 PM,
> Rakesh Patil wrote:>> I need to store the points in an array.. but
> vtkStripper is not returning>> th
>  e points.. i tried implementing it as follows>>>> vtkStripper *sp =
> vtkStripper::New();>>>> sp>SetInputConnection(
> contFilter>GetOutputPort());>>>> vtkPoints *pt = sp>GetPoints();>>>> Here pt
> is not showing any values.. It is all empty..>>>>  Original message >>
> From:Bill Lorensen< bill.lorensen at gmail.com >>> Date: 3 0 Jan 10 18:44:20>>
> Subject: Re: [vtkusers] connecting points in from vtkPoints>> To: Rakesh
> Patil>>>> Use vtkStripper to order the line segments output from
> vtkContourFilter.>>>> On Fri, Jan 29, 2010 at 5:30 AM, Rakesh Patil
> wrote:>>> Hello,>>>>>> I have a scatter data, (xyz file), where x and y are
> long, and lat resp>>> and>>> z is depth. I need to extract a zero contour
> from this xyz data. I use>>> vtkContourFilter to extract the points for zero
> contour.>>>>>> I get the points what i require correctly.. But if i connect
> them>>> serially,>>> it shows that points are connected in a zigzag form. I
> get points>>> directly>>> from contuorfilter. i.e.>>>>>> vtkPoint
>  s *pts = contFilter>GetOutput()>GetPoints();>>>>>> What and how do i do, so
> that when i connect the points, i get a decent>> > connected line, instead
> of zig zag ..?>>>>>> Thanks>>>>>> Regards>>>>>>>>> Dear vtkusers ! Get
> Yourself a cool, short @in.com Email ID now!>>> >>> Powered by
> www.kitware.com>>>>>> Visit other Kitware opensource projects at>>>
> http://www.kitware.com/opensource/opensource.html>>>>>> Please keep messages
> ontopic and check the VTK FAQ at:>>> http://www.vtk.org/Wiki/VTKFAQ>>>>>>
> Follow this link to subscribe/unsubscribe:>>> http://www.
> vtk.org/mailman/listinfo/vtkusers>>>>>>>>>> >> Powered by
> www.kitware.com>>>> Visit other Kitware opensource projects at>>
> http://www.kitware.com/opensource/opensource.html>>>> Please keep messages
> ontopic and check the VTK FAQ at:>> http://www.vtk.org/Wiki/VTKFAQ>>>>
> Follow this link to subscribe/unsubscribe:>>
> http://www.vtk.org/mailman/listinfo/vtkusers>>>>>> Try updating the
> stripper:>> vtkSmartPointer stripper => vtkSm
>  artPointer::New();> st ripper>SetInputConnection(
> contFilter>GetOutputPort());> stripper>Update();> vtkPoints *pt =
> stripper>GetPoints();>> Does that change anything?>> Dave> > Powered by
> www.kitware.com>> Visit other Kitware opensource projects at>
> http://www.kitware.com/opensource/opensource.html>> Please keep messages
> ontopic and check the VTK FAQ at:> http://www.vtk.org/Wiki/VTKFAQ>> Follow
> this link to subscribe/unsubscribe:>
> http://www.vtk.org/mailman/listinfo/vtkusers>>> Get Yourself a cool, short
> @in.com Email ID now!> > Powered by www.kitware.com>> Visit other Kitware
> opensource projects at> http://www.kitware.com/opensource/opensource.html>>
> Please keep messages ontopic and check the VTK FAQ at:>
> http://www.vtk.org/Wiki/VTKFAQ>> 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/20100201/bee0a1da/attachment-0001.htm>
>
> ------------------------------
>
> Message: 2
> Date: Mon, 01 Feb 2010 22:53:08 +0530
> From: "Rakesh Patil" <rakeshthp at in.com>
> Subject: Re: [vtkusers] How to put a legend box?
> To: "David Doria" <daviddoria+vtk at gmail.com>
> Cc: vtkusers <vtkusers at vtk.org>
> Message-ID: <1265044988.06f7c042b76e4b04f698c75b7b2777ea at mail.in.com>
> Content-Type: text/plain; charset="utf-8"
>
>  Thanks David,I understand the concept of legendboxactor now.. But I hope
> you know why i want touse different sized symbol.. I am displaying vector
> plots. So to show the magnitude range of a vector (min and max size of
> arrow) i need different sized shapes in legendboxactor.As you said, colors,
> these vectors can be plotted either in black color, or with colorscaled by
> the vector magnitude. So in second case, i need both color and size to
> indicate range. Whereas in first case i only need size...So, Apart from
> writing my own actor, can anyone suggest some other solution..??Thanks 'n'
> Regards Original message From:David Doria< daviddoria+vtk at gmail.com >Date:
> 01 Feb 10 19:29:20Subject:Re: [vtkusers] How to put a legend box?To:
> rakeshthp at in.comOn Mon, Feb 1, 2010 at 5:24 AM, Rakesh Patilwrote:> Hello,>>
> I want to display a legend box ... The legend should be an arrow. One big>
> arrow and one small arrow along with the smallest and the largest length of>
> the arrow. How do i do this..
>  ??>> Thanks>The problem was that he was trying to put different sized
> symbols inthe legend box. Rakesh, the legend actor automatically resizes
> thesymbols, as we discussed in the last thread about this. Differentsized
> symbols in a legend is probably not a good idea, hence whythey've written
> the code as such. You'll probably either want to diginto the code of the
> actor or find a different way (maybe color?) toindicate which arrows are
> which.Thanks,DavidPowered by www.kitware.comVisit other Kitware opensource
> projects at http://www.kitware.com/opensource/opensource.htmlPlease keep
> messages ontopic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTKFAQFollow 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/20100201/2128a152/attachment-0001.htm>
>
> ------------------------------
>
> Message: 3
> Date: Mon,  1 Feb 2010 13:07:55 -0500 (EST)
> From: VTK Journal <webmaster at insightsoftwareconsortium.org>
> Subject: [vtkusers] The VTK Journal-New Submission
> To: vtkusers at vtk.org
> Message-ID: <20100201180755.EC82757A0B at insightjournal.kitwarein.com>
>
> Hello,
> A new submission has been added to the VTK Journal.
>
> Title: A Leica PTX Reader for VTK
> Author(s): Doria D.
> Abstract:
> Leica LiDAR scanners output points in the PTX file format. It is often
> useful to convert this format to a standard VTK point cloud or mesh format
> before processing. We propose a new class, vtkPTXReader, to provide this
> functionality.
>
> Download and Review the paper at:
> http://www.midasjournal.org/browse/publication/712
>
> Generated by the VTK Journal
> You are receiving this email because you asked to be informed by the VTK
> Journal for new submissions.
>
> To change your email preference go to http://www.midasjournal.org .
>
>
> ------------------------------
>
> Message: 4
> Date: Mon,  1 Feb 2010 13:09:27 -0500 (EST)
> From: VTK Journal <webmaster at insightsoftwareconsortium.org>
> Subject: [vtkusers] The VTK Journal-New Submission
> To: vtkusers at vtk.org
> Message-ID: <20100201180927.2588E4CFEF at insightjournal.kitwarein.com>
>
> Hello,
> A new submission has been added to the VTK Journal.
>
> Title: Point Set Surface Reconstruction for VTK
> Author(s): Doria D.
> Abstract:
> This document presents a set of classes (vtkPointSetSurfaceReconstruction,
> vtkVoxelizePolyData) to produce a surface from an oriented point set. These
> classes are implemented as VTK filters. A Paraview plugin interface is
> provided to allow extremely easy experimentation with the new functionality.
> We propose these classes as an addition to the Visualization Toolkit.
>
> Download and Review the paper at:
> http://www.insight-journal.org/browse/publication/713
>
> Generated by the VTK Journal
> You are receiving this email because you asked to be informed by the VTK
> Journal for new submissions.
>
> To change your email preference go to http://www.insight-journal.org .
>
>
> ------------------------------
>
> Message: 5
> Date: Mon, 1 Feb 2010 13:20:16 -0500
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] The VTK Journal-New Submission
> To: David Doria <daviddoria+vtk at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<4db4735c1002011020l44c08d42sb3734235e031a979 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> I  think it is reasonable to have an OBJWriter. As long as the
> OBJExporter is refactored to use it. It covers the simple use case. It
> probably should optionally create material files. Tye materials could
> be defined with a vtkProperty passed in to a SetProperty method.
>
> On Mon, Feb 1, 2010 at 12:06 PM, David Doria <daviddoria+vtk at gmail.com>
> wrote:
>> On Mon, Feb 1, 2010 at 11:57 AM, Bill Lorensen <bill.lorensen at gmail.com>
>> wrote:
>>>
>>> The OBJExporter could be refactored to use the OBJReader internally.
>>> Then there would be no code duplication between the Exporter and
>>> Reader.
>>
>> I'd agree with that (I think you meant to replace all instances of
>> 'Reader'
>> with 'Writer', to say "The OBJExporter can use OBJWriter internally"), but
>> it sounds like code duplication is not what Alexandre is worried about,
>> it's
>> more of a "OBJ is not supposed to be used for this" thing. The problem is
>> that obj IS used for this type of thing, so I was trying to support it
>> even
>> though it is not "correct".
>> Thanks,
>>
>> David
>> _______________________________________________
>> 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
>>
>>
>
>
> ------------------------------
>
> Message: 6
> Date: Mon, 1 Feb 2010 13:29:19 -0500
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] connecting points in from vtkPoints
> To: Rakesh Patil <rakeshthp at in.com>
> Cc: vtkusers <vtkusers at vtk.org>
> Message-ID:
> 	<4db4735c1002011029j36a64a68wc9e71498e5cbe358 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> You can get the number of lines with:
>
> yourPolyData->GetNumberOfLines();
>
> You can get the lines with something like:
>
> vtkIdType npts;
> vtkIdType *indx;
>
> cells = yourPolyData->GetLines();
>
> for (cells->InitTraversal(); cells->GetNextCell(npts,indx); )
> ....
> indx is an index into the points.
>
> On Mon, Feb 1, 2010 at 12:16 PM, Rakesh Patil <rakeshthp at in.com> wrote:
>>
>>
>> Hi.
>>
>> I guess vtkStripper produces vtkPolydata as its output.. so How can be the
>> polyline extracted from vtkstripper?
>> As u said, i'm using the points from stripper and producing polyline of my
>> own..
>>
>> Thanks
>>
>> ---------- Original message ----------
>> From:Bill Lorensen< bill.lorensen at gmail.com >
>> Date: 01 Feb 10 19:19:48
>> Subject: Re: [vtkusers] connecting points in from vtkPoints
>> To: Rakesh Patil
>>
>> Are you using the polyline generated by the stripper or creating your
>> own? You must use the one produced by the stripper.
>>
>>
>> On Mon, Feb 1, 2010 at 4:14 AM, Rakesh Patil wrote:
>>>
>>> Yes it does changes ... I get the points.. But when i connect these
>>> points
>>> using polyline, again i get a zigzag lines...
>>>
>>> ---------- Original message ----------
>>> From:David Doria< daviddoria+vtk at gmail.com >
>>> Date: 31 Jan 10 01:22:41
>>> Su bject: Re: [vtkusers] connecting points in from vtkPoints
>>> To: rakeshthp at in.com
>>>
>>> Thanks,
>>>
>>> David
>>>
>>>
>>>
>>> On Sat, Jan 30, 2010 at 12:25 PM, Rakesh Patil wrote:
>>>> I need to store the points in an array.. but vtkStripper is not
>>>> returning
>>>> the points.. i tried implementing it as follows
>>>>
>>>> vtkStripper *sp = vtkStripper::New();
>>>>
>>>> sp->SetInputConnection( contFilter->GetOutputPort());
>>>>
>>>> vtkPoints *pt = sp->GetPoints();
>>>>
>>>> Here pt is not showing any values.. It is all empty..
>>>>
>>>> ---------- Original message ----------
>>>> From:Bill Lorensen< bill.lorensen at gmail.com >
>>>> Date: 3 0 Jan 10 18:44:20
>>>> Subject: Re: [vtkusers] connecting points in from vtkPoints
>>>> To: Rakesh Patil
>>>>
>>>> Use vtkStripper to order the line segments output from vtkContourFilter.
>>>>
>>>> On Fri, Jan 29, 2010 at 5:30 AM, Rakesh Patil wrote:
>>>>> Hello,
>>>>>
>>>>> I have a scatter data, (xyz file), where x and y are long, and lat resp
>>>>> and
>>>>> z is depth. I need to extract a zero contour from this xyz data. I use
>>>>> vtkContourFilter to extract the points for zero contour.
>>>>>
>>>>> I get the points what i require correctly.. But if i connect them
>>>>> serially,
>>>>> it shows that points are connected in a zig-zag form. I get points
>>>>> directly
>>>>> from contuorfilter. i.e.
>>>>>
>>>>> vtkPoints *pts = contFilter->GetOutput()->GetPoints();
>>>>>
>>>>> What and how do i do, so that when i connect the points, i get a decent
>>>> > connected line, instead of zig zag ..?
>>>>>
>>>>> Thanks
>>>>>
>>>>> Regards
>>>>>
>>>>>
>>>>> Dear vtkusers ! Get Yourself a cool, short @in.com Email ID now!
>>>>> _______________________________________________
>>>>> 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
>>>>>
>> &gt ;>>
>>>>
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>> Try updating the stripper:
>>>
>>> vtkSmartPointer stripper =
>>> vtkSmartPointer::New();
>>> st ripper->SetInputConnectio n( contFilter->GetOutputPort());
>>> stripper->Update();
>>> vtkPoints *pt = stripper->GetPoints();
>>>
>>> Does that change anything?
>>>
>>> Dave
>>> _______________________________________________
>>> 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
>>>
>>>
>>> Get Yourself a cool, short @in.com Email I D now!
>>> _______________________________________________
>>> 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
>>>
>>>
>>
>
>
> ------------------------------
>
> Message: 7
> Date: Mon, 1 Feb 2010 19:26:49 +0000
> From: Liam Kurmos <quantum.leaf at googlemail.com>
> Subject: Re: [vtkusers] vtkDataArray: Memory allocation problem
> To: vtk <vtkusers at vtk.org>
> Message-ID:
> 	<e90a17d21002011126t5183a36cnc6034bab05b5dd7e at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi David,
>
>> This type of feedback is extremely important, thanks.
>> I added a sentence to the section:
>> Working with Stuctured (grid aligned) 3D Data (vtkImageData)
>> "ImageData" is not the traditional "flat, 2D image" you are used to. It is
>> a
>> special VTK data structure in the collection of 3D data structures
>> provided
>> by VTK. Here is an overview of these data structures: [1]. Image data can
>> represent at typical 2D image, but also, a 3D volume.
>> I also added:
>> "Set and access locations in a 3D image."
>> on the main examples page with the example you referred to, and
>> "This example demonstrates how to set and access locations in a 3D image."
>> On the example itself.
>> Would this have helped you find what you were looking for?
>
> I think so yes.
> I'll continue to give this type of feedback about my experience of
> learning Vtk.
>
> cheers,
>
> Liam
>
>
>
> Any further
>> suggestions?
>> Thanks,
>>
>> David
>> _______________________________________________
>> 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
>>
>>
>
>
> ------------------------------
>
> Message: 8
> Date: Mon, 1 Feb 2010 20:29:13 +0100
> From: Sebastien Jourdain <jourdain at artenum.com>
> Subject: Re: [vtkusers] java.lang.UnsatisfiedLinkError with vtk 5.4
> 	and	java	wrapper
> To: pingwin.newsgroup at gmx.org, vtkusers at vtk.org
> Message-ID: <292BFAFD-7B1C-4BA0-845C-D37147B264EA at artenum.com>
> Content-Type: text/plain; charset=US-ASCII; format=flowed
>
> Hi Carsten,
>
> your error just come from the name you used in your System.loadLibrary.
> You should use "vtkCommonJava" instead of "libvtkCommonJava".
>
> If you want more informations, you can read this forum thread:
> http://dev.artenum.com/projects/cassandra/forum/how-to-use-eclipse-and-vtk
>
> Regards,
>
> Seb
>
>
> ------------------------------
>
> Message: 9
> Date: Mon, 1 Feb 2010 21:22:19 +0100
> From: Rafal Robak <rafalrobak at gmail.com>
> Subject: Re: [vtkusers] Efficiency problem in mesh display script ;
> 	TCL - VTK
> To: vtkusers at vtk.org
> Message-ID:
> 	<3fcc991e1002011222kc86fcby4950a1217257fd3b at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-2"
>
> Yes Vincent you are right. Thank You.
> It make a script much faster then previous version.
>
> I'm also thinking to myself that it is not necessary to create hexa elements
> for entire model (inside hexa elements). Maybe better solution is selecting
> exterior points from vtkPoints and then create only quad elements. It should
> also improve efficiency in program. What do you think about ?
> It is some method to extract exterior nodes from the class vtkPoints (or
> another data class should be used instead) ?
>
> 2010/1/25 Vincent Magnotta <vincent-magnotta at uiowa.edu>
>
>>  I believe that you want to use vtkUnstructuredGrid to represent the
>> object.
>>
>> Vince
>>
>>
>>
>>
>> On 1/25/10 2:46 PM, "Rafal Robak" <rafalrobak at gmail.com> wrote:
>>
>> Hi,
>> I'm looking for 3d engine to display a mesh from FEM softwares like ANSYS
>> cdb file / Nastran bdf file. First of all i would like to display FEM
>> model
>> in 3D interactive GL window. I choose TCL and VTK and i create following
>> code. In entry widget i define a quantity of nodes and elements in node
>> and
>> element file and then based on function invoked from 'Render' button model
>> is displayed.
>> Problem is in efficiency. Because each element is created as separate
>> object (i would like to display models above 1000000 elements) VTK has big
>> problem.
>> VTK has possibility to create something like poly vtkHexahedron object ?
>> in vertex is polyvertex and therefore i'm wondering about poly hex object
>> ?
>> Do you have any idea ?
>> Best regards,
>>
>> ####### CODE #######
>> package require vtk
>> package require vtkinteraction
>> package require vtktesting
>> package require Tcl
>> package require Tk
>>
>> global qty
>>
>> # Main code
>> vtkRenderer model_renderer
>> [model_renderer GetCullers] RemoveAllItems
>>
>> vtkRenderWindow model_window
>> model_window AddRenderer model_renderer
>>
>> model_renderer SetBackground .5 .5 .5
>>
>> model_renderer ResetCamera
>> [model_renderer GetActiveCamera] Dolly 2.5
>> model_renderer ResetCameraClippingRange
>>
>> vtkRenderWindowInteractor iaction
>> iaction SetRenderWindow model_window
>>
>> wm title . "CDB reader"
>> label .l1 -text "OpenGL module ver 0.1 - CDB Reader"
>> frame .f1
>> entry .e1 -textvariable node_qty
>> entry .e2 -textvariable elem_qty
>> button .b1 -text "Open node" -command "open_model_node node_qty"
>> button .b2 -text "Open elem" -command "open_model_elem elem_qty"
>> button .b3 -text "Render" -command "render elem_qty"
>> button .b4 -text "Close" -command "destroy ."
>> set render_widget [vtkTkRenderWidget .f1.r -width 800 -height 600 -rw
>> model_window]
>> iaction Initialize
>> ::vtk::bind_tk_render_widget $render_widget
>>
>> grid .l1 -row 1 -column 1 -columnspan 7
>> grid .f1 -row 2 -column 1 -columnspan 7
>> grid .e1 -row 3 -column 2
>> grid .e2 -row 3 -column 3
>> grid .b1 -row 3 -column 4
>> grid .b2 -row 3 -column 5
>> grid .b3 -row 3 -column 6
>> grid .b4 -row 3 -column 7
>> grid .f1.r -row 1 -column 1
>>
>> .b3 configure -state disabled
>>
>> #$render_widget Render
>>
>> proc generate {qty} {
>> upvar 1 $qty qty_loc
>> set fw [open node_file.txt w]
>> for {set i 1} {$i <= $qty_loc} {incr i} {
>> puts $fw "$i [expr rand()] [expr rand()] [expr rand()]"
>> }
>> close $fw
>> }
>>
>>
>> proc open_model_node {node_qty} {
>> global ndata
>> upvar 1 $node_qty node_qty_loc
>>
>> set file_select [tk_getOpenFile -initialdir [pwd]]
>> set fr_node [open $file_select r]
>>
>> for {set i 1} {$i <= $node_qty_loc} {incr i} {
>> set line [gets $fr_node]
>> lappend ndata([lindex $line 0]) [lindex $line 1]
>> lappend ndata([lindex $line 0]) [lindex $line 2]
>> lappend ndata([lindex $line 0]) [lindex $line 3]
>> }
>> close $fr_node
>> }
>>
>> proc open_model_elem {elem_qty} {
>> global edata
>> upvar 1 $elem_qty elem_qty_loc
>>
>> set file_select [tk_getOpenFile -initialdir [pwd]]
>> set fr_elem [open $file_select r]
>>
>> for {set i 1} {$i <= $elem_qty_loc} {incr i} {
>> set line [gets $fr_elem]
>> lappend edata($i) [lindex $line 13]
>> lappend edata($i) [lindex $line 0]
>> lappend edata($i) [lindex $line 1]
>> lappend edata($i) [lindex $line 2]
>> lappend edata($i) [lindex $line 3]
>> lappend edata($i) [lindex $line 4]
>> lappend edata($i) [lindex $line 5]
>> lappend edata($i) [lindex $line 6]
>> lappend edata($i) [lindex $line 7]
>> }
>>
>>
>> .b3 configure -state normal
>> }
>>
>> proc clear {} {
>> model_renderer Clear
>> model_window Clear
>> }
>>
>> proc element {eid n1 n2 n3 n4 n5 n6 n7 n8} {
>> global ndata
>>
>> vtkPoints hexahedronPoints_$eid
>>   hexahedronPoints_$eid SetNumberOfPoints 8
>>   hexahedronPoints_$eid InsertPoint 0 [lindex $ndata($n1) 0] [lindex
>> $ndata($n1) 1] [lindex $ndata($n1) 2]
>>   hexahedronPoints_$eid InsertPoint 1 [lindex $ndata($n2) 0] [lindex
>> $ndata($n2) 1] [lindex $ndata($n2) 2]
>>   hexahedronPoints_$eid InsertPoint 2 [lindex $ndata($n3) 0] [lindex
>> $ndata($n3) 1] [lindex $ndata($n3) 2]
>>   hexahedronPoints_$eid InsertPoint 3 [lindex $ndata($n4) 0] [lindex
>> $ndata($n4) 1] [lindex $ndata($n4) 2]
>>   hexahedronPoints_$eid InsertPoint 4 [lindex $ndata($n5) 0] [lindex
>> $ndata($n5) 1] [lindex $ndata($n5) 2]
>>   hexahedronPoints_$eid InsertPoint 5 [lindex $ndata($n6) 0] [lindex
>> $ndata($n6) 1] [lindex $ndata($n6) 2]
>>   hexahedronPoints_$eid InsertPoint 6 [lindex $ndata($n7) 0] [lindex
>> $ndata($n7) 1] [lindex $ndata($n7) 2]
>>   hexahedronPoints_$eid InsertPoint 7 [lindex $ndata($n8) 0] [lindex
>> $ndata($n8) 1] [lindex $ndata($n8) 2]
>> vtkHexahedron aHexahedron_$eid
>>   [aHexahedron_$eid GetPointIds] SetId 0 0
>>   [aHexahedron_$eid GetPointIds] SetId 1 1
>>   [aHexahedron_$eid GetPointIds] SetId 2 2
>>   [aHexahedron_$eid GetPointIds] SetId 3 3
>>   [aHexahedron_$eid GetPointIds] SetId 4 4
>>   [aHexahedron_$eid GetPointIds] SetId 5 5
>>   [aHexahedron_$eid GetPointIds] SetId 6 6
>>   [aHexahedron_$eid GetPointIds] SetId 7 7
>> vtkUnstructuredGrid aHexahedronGrid_$eid
>>   aHexahedronGrid_$eid Allocate 1 1
>>   aHexahedronGrid_$eid InsertNextCell [aHexahedron_$eid GetCellType]
>> [aHexahedron_$eid GetPointIds]
>>   aHexahedronGrid_$eid SetPoints hexahedronPoints_$eid
>> vtkDataSetMapper aHexahedronMapper_$eid
>>   aHexahedronMapper_$eid SetInput aHexahedronGrid_$eid
>> vtkActor aHexahedronActor_$eid
>>   aHexahedronActor_$eid SetMapper aHexahedronMapper_$eid
>>   [aHexahedronActor_$eid GetProperty] SetColor 0.5 1 1
>>
>> model_renderer AddActor aHexahedronActor_$eid
>> }
>>
>> proc render {elem_qty} {
>> global ndata
>> global edata
>> upvar 1 $elem_qty elem_qty_loc
>>
>> for {set i 1} {$i <= $elem_qty_loc} {incr i} {
>> element [lindex $edata($i) 0] [lindex $edata($i) 1] [lindex $edata($i) 2]
>> [lindex $edata($i) 3] [lindex $edata($i) 4] [lindex $edata($i) 5] [lindex
>> $edata($i) 6] [lindex $edata($i) 7] [lindex $edata($i) 8]
>> }
>>
>> model_renderer ResetCamera
>> }
>>
>> ####### CODE #######
>>
>>
>> ----------------------
>> Associate Professor
>> Department of Radiology
>> 0453-D JCP
>> 200 Hawkins Drive
>> Iowa City, IA 52242
>> E-mail: vincent-magnotta at uiowa.edu
>> Phone: 319-356-8255 Fax: 319-353-6275
>> Website: http://www.radiology.uiowa.edu
>>
>>
>>
>
>
> --
> Rafa? Robak
> www.robak.info
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/979d9b75/attachment-0001.htm>
>
> ------------------------------
>
> Message: 10
> Date: Mon, 1 Feb 2010 20:34:28 +0000
> From: Ryven <swifteye at gmail.com>
> Subject: [vtkusers] quadratic comparison of points in a polyData mesh,
> 	a faster way?
> To: vtkusers at vtk.org
> Message-ID:
> 	<ab5867af1002011234x6e489d09x7c9b6f942489124b at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi
>
> Currently i'm doing a embedded for loop comparison of points in a mesh
> (points->GetPoint(i)) to compare them for equality (i need to make a list of
> identical points). I'm not necessary trying to remove identical points, so
> just using the vtkClean class is no good, all i really want to do is be able
> to identify these points. Currently it's pretty slow, just looping through
> (it seems to act like a linkedList?).
>
> My question is if there's a faster way of accessing data in the points array
> to do comparisons?
>
> Thanks
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/58122c07/attachment-0001.htm>
>
> ------------------------------
>
> Message: 11
> Date: Mon, 1 Feb 2010 15:44:28 -0500
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] connecting points in from vtkPoints
> To: Rakesh Patil <rakeshthp at in.com>
> Cc: vtkusers <vtkusers at vtk.org>
> Message-ID:
> 	<4db4735c1002011244n7cc479a7tb0b3440496080030 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> This example
> http://vtk.org/Wiki/VTK/Examples/ExtractPolyLinesFromPolyData#ExtractPolyLinesFromPolyData.cxx
> shows you how to extract the polylines from vtkCutter followed by
> vtkStripper.
>
> On Mon, Feb 1, 2010 at 1:29 PM, Bill Lorensen <bill.lorensen at gmail.com>
> wrote:
>> You can get the number of lines with:
>>
>> yourPolyData->GetNumberOfLines();
>>
>> You can get the lines with something like:
>>
>> vtkIdType npts;
>> vtkIdType *indx;
>>
>> cells = yourPolyData->GetLines();
>>
>> for (cells->InitTraversal(); cells->GetNextCell(npts,indx); )
>> ....
>> indx is an index into the points.
>>
>> On Mon, Feb 1, 2010 at 12:16 PM, Rakesh Patil <rakeshthp at in.com> wrote:
>>>
>>>
>>> Hi.
>>>
>>> I guess vtkStripper produces vtkPolydata as its output.. so How can be
>>> the
>>> polyline extracted from vtkstripper?
>>> As u said, i'm using the points from stripper and producing polyline of
>>> my
>>> own..
>>>
>>> Thanks
>>>
>>> ---------- Original message ----------
>>> From:Bill Lorensen< bill.lorensen at gmail.com >
>>> Date: 01 Feb 10 19:19:48
>>> Subject: Re: [vtkusers] connecting points in from vtkPoints
>>> To: Rakesh Patil
>>>
>>> Are you using the polyline generated by the stripper or creating your
>>> own? You must use the one produced by the stripper.
>>>
>>>
>>> On Mon, Feb 1, 2010 at 4:14 AM, Rakesh Patil wrote:
>>>>
>>>> Yes it does changes ... I get the points.. But when i connect these
>>>> points
>>>> using polyline, again i get a zigzag lines...
>>>>
>>>> ---------- Original message ----------
>>>> From:David Doria< daviddoria+vtk at gmail.com >
>>>> Date: 31 Jan 10 01:22:41
>>>> Su bject: Re: [vtkusers] connecting points in from vtkPoints
>>>> To: rakeshthp at in.com
>>>>
>>>> Thanks,
>>>>
>>>> David
>>>>
>>>>
>>>>
>>>> On Sat, Jan 30, 2010 at 12:25 PM, Rakesh Patil wrote:
>>>>> I need to store the points in an array.. but vtkStripper is not
>>>>> returning
>>>>> the points.. i tried implementing it as follows
>>>>>
>>>>> vtkStripper *sp = vtkStripper::New();
>>>>>
>>>>> sp->SetInputConnection( contFilter->GetOutputPort());
>>>>>
>>>>> vtkPoints *pt = sp->GetPoints();
>>>>>
>>>>> Here pt is not showing any values.. It is all empty..
>>>>>
>>>>> ---------- Original message ----------
>>>>> From:Bill Lorensen< bill.lorensen at gmail.com >
>>>>> Date: 3 0 Jan 10 18:44:20
>>>>> Subject: Re: [vtkusers] connecting points in from vtkPoints
>>>>> To: Rakesh Patil
>>>>>
>>>>> Use vtkStripper to order the line segments output from
>>>>> vtkContourFilter.
>>>>>
>>>>> On Fri, Jan 29, 2010 at 5:30 AM, Rakesh Patil wrote:
>>>>>> Hello,
>>>>>>
>>>>>> I have a scatter data, (xyz file), where x and y are long, and lat
>>>>>> resp
>>>>>> and
>>>>>> z is depth. I need to extract a zero contour from this xyz data. I use
>>>>>> vtkContourFilter to extract the points for zero contour.
>>>>>>
>>>>>> I get the points what i require correctly.. But if i connect them
>>>>>> serially,
>>>>>> it shows that points are connected in a zig-zag form. I get points
>>>>>> directly
>>>>>> from contuorfilter. i.e.
>>>>>>
>>>>>> vtkPoints *pts = contFilter->GetOutput()->GetPoints();
>>>>>>
>>>>>> What and how do i do, so that when i connect the points, i get a
>>>>>> decent
>>>>> > connected line, instead of zig zag ..?
>>>>>>
>>>>>> Thanks
>>>>>>
>>>>>> Regards
>>>>>>
>>>>>>
>>>>>> Dear vtkusers ! Get Yourself a cool, short @in.com Email ID now!
>>>>>> _______________________________________________
>>>>>> 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
>>>>>>
>>> &gt ;>>
>>>>>
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>> Try updating the stripper:
>>>>
>>>> vtkSmartPointer stripper =
>>>> vtkSmartPointer::New();
>>>> st ripper->SetInputConnectio n( contFilter->GetOutputPort());
>>>> stripper->Update();
>>>> vtkPoints *pt = stripper->GetPoints();
>>>>
>>>> Does that change anything?
>>>>
>>>> Dave
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>> Get Yourself a cool, short @in.com Email I D now!
>>>> _______________________________________________
>>>> 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
>>>>
>>>>
>>>
>>
>
>
> ------------------------------
>
> Message: 12
> Date: Mon, 1 Feb 2010 16:06:22 -0500
> From: Andy Bauer <andy.bauer at kitware.com>
> Subject: Re: [vtkusers] VTK Examples can use your help!
> To: vtkusers at vtk.org, daviddoria+vtk at gmail.com
> Message-ID:
> 	<c9010c7d1002011306k6d8822f1x3ddb66bb8d9063de at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I'm attaching my changes to the CellLocator.cxx example.  The main changes
> was:
> this->CellLocator->GenerateRepresenation(1, this->PolyData);
>
> to:
> this->CellLocator->GenerateRepresentation(this->CellLocator->GetLevel(),
> this->PolyData);
>
> I also formatted it to be more consistent with VTK style.
>
> Andy
>
>
>> Date: Mon, 1 Feb 2010 10:49:12 -0500
>> From: David Doria <daviddoria+vtk at gmail.com <daviddoria%2Bvtk at gmail.com>>
>> Subject: Re: [vtkusers] VTK Examples can use your help!
>> Cc: vtkusers at vtk.org
>> Message-ID:
>>        <c19fcadc1002010749q3b0a007ai3c9dac4741c196f7 at mail.gmail.com>
>> Content-Type: text/plain; charset="iso-8859-1"
>>
>> On Mon, Feb 1, 2010 at 10:39 AM, Andy Bauer <andy.bauer at kitware.com>
>> wrote:
>>
>> > Hi David,
>> >
>> > I tried the CellLocator example and didn't see anything wrong with it.
>>  Did
>> > someone go in and fix it?  If so, I'll more the example to the proper
>> > place.  Otherwise I can try and fix it if someone gives me a clue about
>> > what's wrong with it.
>> >
>> > Andy
>> >
>> >
>>  Andy,
>>
>> It doesn't look like anyone has fixed it. If I press 'n' a few times, then
>> press 'p', I'd expect to get back to where I started, but instead I just
>> see
>> a full cube anytime after I've pressed either key more than once.
>>
>> Can you not reproduce this behavior?
>>
>> David
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL: <
>> http://www.vtk.org/pipermail/vtkusers/attachments/20100201/1f3d55ca/attachment-0001.htm
>> >
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/78b0c936/attachment-0001.htm>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: CellLocator.cxx
> Type: text/x-c++src
> Size: 4084 bytes
> Desc: not available
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/78b0c936/attachment-0001.cxx>
>
> ------------------------------
>
> Message: 13
> Date: Mon, 1 Feb 2010 14:07:54 -0700
> From: David Gobbi <david.gobbi at gmail.com>
> Subject: Re: [vtkusers] quadratic comparison of points in a polyData
> 	mesh,	a 	faster way?
> To: Ryven <swifteye at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<48a17b781002011307h26899187w51b1bbef440a32b9 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi Ryven,
>
> The GetPoint() method involves a virtual method call, since it needs
> some way to resolve whether the underlying data is double or float.
> You can increase the efficiency by calling points->GetData() in order
> to get the underlying data array:
>
> vtkDoubleArray *doubleArray =
> vtkDoubleArray::SafeDownCast(points->GetData());
> vtkFloatArray *floatArray = vtkFloatArray::SafeDownCast(points->GetData());
>
> if (doubleArray != NULL)
>   {
>   // write a loop that uses doubleArray->GetTupleValue() to get each point
>   }
> else if (floatArray != NULL)
>   {
>   // write a loop that uses floatArray->GetTupleValue() to get each point
>   }
>
> By doing this, you will be calling the inline method "GetTupleValue()"
> instead of the virtual method "GetPoint()".  You can go even further
> by calling GetPointer() on the array to get a pointer to the
> underlying floats or doubles, but that probably won't be any more
> efficient that the inline GetTupleValue() methods.
>
>    David
>
>
>
>
>
> On Mon, Feb 1, 2010 at 1:34 PM, Ryven <swifteye at gmail.com> wrote:
>> Hi
>>
>> Currently i'm doing a embedded for loop comparison of points in a mesh
>> (points->GetPoint(i)) to compare them for equality (i need to make a list
>> of
>> identical points). I'm not necessary trying to remove identical points, so
>> just using the vtkClean class is no good, all i really want to do is be
>> able
>> to identify these points. Currently it's pretty slow, just looping through
>> (it seems to act like a linkedList?).
>>
>> My question is if there's a faster way of accessing data in the points
>> array
>> to do comparisons?
>>
>> Thanks
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> ------------------------------
>
> Message: 14
> Date: Mon, 1 Feb 2010 16:15:56 -0500
> From: David Doria <daviddoria+vtk at gmail.com>
> Subject: Re: [vtkusers] VTK Examples can use your help!
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<c19fcadc1002011315p472269f4if984c21aed82d2bf at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Mon, Feb 1, 2010 at 4:06 PM, Andy Bauer <andy.bauer at kitware.com> wrote:
>
>> I'm attaching my changes to the CellLocator.cxx example.  The main changes
>> was:
>> this->CellLocator->GenerateRepresenation(1, this->PolyData);
>>
>> to:
>> this->CellLocator->GenerateRepresentation(this->CellLocator->GetLevel(),
>> this->PolyData);
>>
>> I also formatted it to be more consistent with VTK style.
>>
>> Andy
>>
>>
>>
> Ah yes, what a silly typo. Thanks Andy, the page has been updated.
>
> Any more takers?? Come on guys (and gals)!!
>
> Thanks,
>
> David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/c624ba9f/attachment-0001.htm>
>
> ------------------------------
>
> Message: 15
> Date: Mon, 1 Feb 2010 16:17:43 -0500
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] VTK Examples can use your help!
> To: Andy Bauer <andy.bauer at kitware.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<4db4735c1002011317m280b6257k4c90305fbae0b134 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Andy,
>
> You have the power to make the changes yourself!!
>
> Bill
>
> On Mon, Feb 1, 2010 at 4:06 PM, Andy Bauer <andy.bauer at kitware.com> wrote:
>> I'm attaching my changes to the CellLocator.cxx example.? The main changes
>> was:
>> this->CellLocator->GenerateRepresenation(1, this->PolyData);
>>
>> to:
>> this->CellLocator->GenerateRepresentation(this->CellLocator->GetLevel(),
>> this->PolyData);
>>
>> I also formatted it to be more consistent with VTK style.
>>
>> Andy
>>
>>>
>>> Date: Mon, 1 Feb 2010 10:49:12 -0500
>>> From: David Doria <daviddoria+vtk at gmail.com>
>>> Subject: Re: [vtkusers] VTK Examples can use your help!
>>> Cc: vtkusers at vtk.org
>>> Message-ID:
>>> ? ? ? ?<c19fcadc1002010749q3b0a007ai3c9dac4741c196f7 at mail.gmail.com>
>>> Content-Type: text/plain; charset="iso-8859-1"
>>>
>>> On Mon, Feb 1, 2010 at 10:39 AM, Andy Bauer <andy.bauer at kitware.com>
>>> wrote:
>>>
>>> > Hi David,
>>> >
>>> > I tried the CellLocator example and didn't see anything wrong with it.
>>> > ?Did
>>> > someone go in and fix it? ?If so, I'll more the example to the proper
>>> > place. ?Otherwise I can try and fix it if someone gives me a clue about
>>> > what's wrong with it.
>>> >
>>> > Andy
>>> >
>>> >
>>> ?Andy,
>>>
>>> It doesn't look like anyone has fixed it. If I press 'n' a few times,
>>> then
>>> press 'p', I'd expect to get back to where I started, but instead I just
>>> see
>>> a full cube anytime after I've pressed either key more than once.
>>>
>>> Can you not reproduce this behavior?
>>>
>>> David
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL:
>>> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/1f3d55ca/attachment-0001.htm>
>>>
>>
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> ------------------------------
>
> Message: 16
> Date: Mon, 1 Feb 2010 16:18:18 -0500
> From: David Doria <daviddoria+vtk at gmail.com>
> Subject: Re: [vtkusers] quadratic comparison of points in a polyData
> 	mesh,	a 	faster way?
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<c19fcadc1002011318s49fe9d47qc36bb478774751db at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> On Mon, Feb 1, 2010 at 4:07 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>
>> Hi Ryven,
>>
>> The GetPoint() method involves a virtual method call, since it needs
>> some way to resolve whether the underlying data is double or float.
>> You can increase the efficiency by calling points->GetData() in order
>> to get the underlying data array:
>>
>> vtkDoubleArray *doubleArray =
>> vtkDoubleArray::SafeDownCast(points->GetData());
>> vtkFloatArray *floatArray =
>> vtkFloatArray::SafeDownCast(points->GetData());
>>
>> if (doubleArray != NULL)
>>  {
>>  // write a loop that uses doubleArray->GetTupleValue() to get each point
>>  }
>> else if (floatArray != NULL)
>>  {
>>  // write a loop that uses floatArray->GetTupleValue() to get each point
>>  }
>>
>> By doing this, you will be calling the inline method "GetTupleValue()"
>> instead of the virtual method "GetPoint()".  You can go even further
>> by calling GetPointer() on the array to get a pointer to the
>> underlying floats or doubles, but that probably won't be any more
>> efficient that the inline GetTupleValue() methods.
>>
>>   David
>>
>>
>>
>>
>>
> Ryven,
>
> When you try this, can you report the resulting speed increase? Maybe you
> could setup a little experiment where all you do is read the data and
> iterate through all the points and let us know the timing of each?
>
> Thanks,
>
> David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/5167be08/attachment-0001.htm>
>
> ------------------------------
>
> Message: 17
> Date: Mon, 1 Feb 2010 16:39:11 -0500
> From: Andy Bauer <andy.bauer at kitware.com>
> Subject: Re: [vtkusers] VTK Examples can use your help!
> To: Bill Lorensen <bill.lorensen at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<c9010c7d1002011339o5f715218lb51a24e8f75c59a5 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Looks like David beat me to the punch.  This time anyways :)
>
> On Mon, Feb 1, 2010 at 4:17 PM, Bill Lorensen
> <bill.lorensen at gmail.com>wrote:
>
>> Andy,
>>
>> You have the power to make the changes yourself!!
>>
>> Bill
>>
>> On Mon, Feb 1, 2010 at 4:06 PM, Andy Bauer <andy.bauer at kitware.com> wrote:
>> > I'm attaching my changes to the CellLocator.cxx example.  The main
>> changes
>> > was:
>> > this->CellLocator->GenerateRepresenation(1, this->PolyData);
>> >
>> > to:
>> > this->CellLocator->GenerateRepresentation(this->CellLocator->GetLevel(),
>> > this->PolyData);
>> >
>> > I also formatted it to be more consistent with VTK style.
>> >
>> > Andy
>> >
>> >>
>> >> Date: Mon, 1 Feb 2010 10:49:12 -0500
>> >> From: David Doria <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
>> >
>> >> Subject: Re: [vtkusers] VTK Examples can use your help!
>> >> Cc: vtkusers at vtk.org
>> >> Message-ID:
>> >>        <c19fcadc1002010749q3b0a007ai3c9dac4741c196f7 at mail.gmail.com>
>> >> Content-Type: text/plain; charset="iso-8859-1"
>> >>
>> >> On Mon, Feb 1, 2010 at 10:39 AM, Andy Bauer <andy.bauer at kitware.com>
>> >> wrote:
>> >>
>> >> > Hi David,
>> >> >
>> >> > I tried the CellLocator example and didn't see anything wrong with
>> >> > it.
>> >> >  Did
>> >> > someone go in and fix it?  If so, I'll more the example to the proper
>> >> > place.  Otherwise I can try and fix it if someone gives me a clue
>> about
>> >> > what's wrong with it.
>> >> >
>> >> > Andy
>> >> >
>> >> >
>> >>  Andy,
>> >>
>> >> It doesn't look like anyone has fixed it. If I press 'n' a few times,
>> then
>> >> press 'p', I'd expect to get back to where I started, but instead I
>> >> just
>> >> see
>> >> a full cube anytime after I've pressed either key more than once.
>> >>
>> >> Can you not reproduce this behavior?
>> >>
>> >> David
>> >> -------------- next part --------------
>> >> An HTML attachment was scrubbed...
>> >> URL:
>> >> <
>> http://www.vtk.org/pipermail/vtkusers/attachments/20100201/1f3d55ca/attachment-0001.htm
>> >
>> >>
>> >
>> >
>> > _______________________________________________
>> > 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/20100201/52fa60cb/attachment-0001.htm>
>
> ------------------------------
>
> Message: 18
> Date: Mon, 1 Feb 2010 17:28:15 -0500
> From: Wes Turner <wes.turner at kitware.com>
> Subject: Re: [vtkusers] quadratic comparison of points in a polyData
> 	mesh,	a 	faster way?
> To: David Doria <daviddoria+vtk at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<7ade83391002011428k3d613d88o1e680e5afa64841b at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Ryven,
>
> Are you looping through each point and doing an exhaustive search through
> the remaining points for equality?  If so, you might want to try one of the
> locators.  vtkPointLocator for example.  They use a spatial decomposition to
> limit the number of points that must be tested to find the closest point.
>
> http://www.vtk.org/doc/nightly/html/classvtkPointLocator.html
>
> <http://www.vtk.org/doc/nightly/html/classvtkPointLocator.html>- Wes
>
> On Mon, Feb 1, 2010 at 4:18 PM, David Doria
> <daviddoria+vtk at gmail.com<daviddoria%2Bvtk at gmail.com>
>> wrote:
>
>> On Mon, Feb 1, 2010 at 4:07 PM, David Gobbi <david.gobbi at gmail.com> wrote:
>>
>>> Hi Ryven,
>>>
>>> The GetPoint() method involves a virtual method call, since it needs
>>> some way to resolve whether the underlying data is double or float.
>>> You can increase the efficiency by calling points->GetData() in order
>>> to get the underlying data array:
>>>
>>> vtkDoubleArray *doubleArray =
>>> vtkDoubleArray::SafeDownCast(points->GetData());
>>> vtkFloatArray *floatArray =
>>> vtkFloatArray::SafeDownCast(points->GetData());
>>>
>>> if (doubleArray != NULL)
>>>  {
>>>  // write a loop that uses doubleArray->GetTupleValue() to get each point
>>>  }
>>> else if (floatArray != NULL)
>>>  {
>>>  // write a loop that uses floatArray->GetTupleValue() to get each point
>>>  }
>>>
>>> By doing this, you will be calling the inline method "GetTupleValue()"
>>> instead of the virtual method "GetPoint()".  You can go even further
>>> by calling GetPointer() on the array to get a pointer to the
>>> underlying floats or doubles, but that probably won't be any more
>>> efficient that the inline GetTupleValue() methods.
>>>
>>>   David
>>>
>>>
>>>
>>>
>>>
>> Ryven,
>>
>> When you try this, can you report the resulting speed increase? Maybe you
>> could setup a little experiment where all you do is read the data and
>> iterate through all the points and let us know the timing of each?
>>
>> Thanks,
>>
>> David
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> --
> Wesley D. Turner, Ph.D.
> Kitware, Inc.
> Technical Leader
> 28 Corporate Drive
> Clifton Park, NY 12065-8662
> Phone: 518-881-4920
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/25740881/attachment-0001.htm>
>
> ------------------------------
>
> Message: 19
> Date: Mon, 1 Feb 2010 15:43:06 -0700
> From: da <remywendy at gmail.com>
> Subject: Re: [vtkusers] [Paraview] Rendering: Paraview only renders
> 	portions	of the screen when switching between windows
> To: Berk Geveci <berk.geveci at kitware.com>, vtkusers at vtk.org
> Message-ID:
> 	<a96e813b1002011443p4aa9d022u6af39a6ab1f697a5 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Recompiling Qt did the trick (I previously used a flag -qt-noopengl or
> something of that sort, not sure if its related). I'm also now using Qt
> 4.6.1.
>
>>
>>
>> On Sat, Jan 30, 2010 at 6:28 AM, Berk Geveci
>> <berk.geveci at kitware.com>wrote:
>>
>>> Maybe your Qt is to blame? Which version are you using?
>>>
>>> On Fri, Jan 22, 2010 at 7:18 PM, da <remywendy at gmail.com> wrote:
>>> > (Crossposted from vtkusers... Hoping I might get some responses here if
>>> > anybody has had similar issues.)
>>> > I've had this problem forever now, and can't seem to figure out what's
>>> going
>>> > on.
>>> > When I switch between a different window into my application window,
>>> > the
>>> > QVTKWidget often only draws the overlapped region, with the other
>>> > region
>>> > frozen in place. This also occurs in my compilation of Paraview!
>>> > Attached are three images that show how I replicate this problem in
>>> > (compiled) Paraview. However, I can't replicate this problem from the
>>> > downloaded Paraview binaries on the same machine.
>>> > Image 1: starting view.
>>> > Image 2: put a window over parts of QVTKWidget
>>> > Image 3: close the window, rotating the QVTKWidget with the mouse but
>>> only
>>> > the overlapped region updates!
>>> > I can restore a good image by: resizing the window, clicking on a
>>> different
>>> > window elsewhere, and sometimes just clicking anywhere outside of the
>>> > QVTKWidget but inside Paraview.
>>> > This same thing happens in my application's QVTKWidget, I'm guessing
>>> this
>>> > has to do with my compilation of VTK but I can't figure out what?
>>> > (vista
>>> > 64bit)
>>> >
>>> >
>>> >
>>> > _______________________________________________
>>> > 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 ParaView Wiki at:
>>> > http://paraview.org/Wiki/ParaView
>>> >
>>> > Follow this link to subscribe/unsubscribe:
>>> > http://www.paraview.org/mailman/listinfo/paraview
>>> >
>>> >
>>>
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/bf822003/attachment-0001.htm>
>
> ------------------------------
>
> Message: 20
> Date: Tue, 2 Feb 2010 09:38:16 +1000
> From: Allan James <ar.james at qut.edu.au>
> Subject: [vtkusers] Positioning vtkActor2D
> To: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID:
> 	<AEA55085A767D546B94229C14D2AB241133EB25774 at QUTEXMBX01.qut.edu.au>
> Content-Type: text/plain; charset="iso-8859-1"
>
>
> Hi vtk'ers
>
> Could someone point me in the direction of the best way to position a
> vtkActor2D (eg. vtkScalarBarActor / vtkLegendBoxActor) so that when the
> viewport is resized the actual size of the actor remains static, and the top
> remains a constant distance from the top of the viewport?
>
> It seems to be because the Position2Coordinate (top-right) is relative to
> the first coordinate (lower-left). If I want an actor to display in the top
> left corner for example - I set the position1 to a normalized viewport
> position (ie. ~0.75) and then set the position2 coordinate using display
> coords (i.e I want the actor to be exactly 200x100 pixels in size). However
> because the first coordinate remains in the correct place relative to the
> viewport and the actor is a constant size, the top of the actor disappears
> off the top of the screen when the viewport is reduced.
>
> I hope this makes sense! Does anyone have any techniques for setting
> constant size overlay actors (2D) to be a set distance from the corners of
> the viewport?
>
> Thanks,
>
> Allan James
> High Performance Computing & Research Support
> Queensland University of Technology
> (07) 3138 9264
> ar.james at qut.edu.au
> http://www.qut.edu.au/its/hpc
>
>><(((?>  ._.???`?..  >++(((?>  ._.???`?..  >++(((?>
>
>
> ------------------------------
>
> Message: 21
> Date: Mon, 1 Feb 2010 20:06:04 -0500
> From: Berk Geveci <berk.geveci at kitware.com>
> Subject: Re: [vtkusers] [Paraview] Rendering: Paraview only renders
> 	portions	of the screen when switching between windows
> To: da <remywendy at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<45d654b1002011706h1693628dw5c423b65d05561c at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Thanks for the update.
>
> -berk
>
> On Mon, Feb 1, 2010 at 5:43 PM, da <remywendy at gmail.com> wrote:
>
>> Recompiling Qt did the trick (I previously used a flag -qt-noopengl or
>> something of that sort, not sure if its related). I'm also now using Qt
>> 4.6.1.
>>
>>
>>>
>>> On Sat, Jan 30, 2010 at 6:28 AM, Berk Geveci
>>> <berk.geveci at kitware.com>wrote:
>>>
>>>> Maybe your Qt is to blame? Which version are you using?
>>>>
>>>> On Fri, Jan 22, 2010 at 7:18 PM, da <remywendy at gmail.com> wrote:
>>>> > (Crossposted from vtkusers... Hoping I might get some responses here
>>>> > if
>>>> > anybody has had similar issues.)
>>>> > I've had this problem forever now, and can't seem to figure out what's
>>>> going
>>>> > on.
>>>> > When I switch between a different window into my application window,
>>>> the
>>>> > QVTKWidget often only draws the overlapped region, with the other
>>>> region
>>>> > frozen in place. This also occurs in my compilation of Paraview!
>>>> > Attached are three images that show how I replicate this problem in
>>>> > (compiled) Paraview. However, I can't replicate this problem from the
>>>> > downloaded Paraview binaries on the same machine.
>>>> > Image 1: starting view.
>>>> > Image 2: put a window over parts of QVTKWidget
>>>> > Image 3: close the window, rotating the QVTKWidget with the mouse but
>>>> only
>>>> > the overlapped region updates!
>>>> > I can restore a good image by: resizing the window, clicking on a
>>>> different
>>>> > window elsewhere, and sometimes just clicking anywhere outside of the
>>>> > QVTKWidget but inside Paraview.
>>>> > This same thing happens in my application's QVTKWidget, I'm guessing
>>>> this
>>>> > has to do with my compilation of VTK but I can't figure out what?
>>>> (vista
>>>> > 64bit)
>>>> >
>>>> >
>>>> >
>>>> > _______________________________________________
>>>> > 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 ParaView Wiki at:
>>>> > http://paraview.org/Wiki/ParaView
>>>> >
>>>> > Follow this link to subscribe/unsubscribe:
>>>> > http://www.paraview.org/mailman/listinfo/paraview
>>>> >
>>>> >
>>>>
>>>
>>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/62fdb1e6/attachment-0001.htm>
>
> ------------------------------
>
> Message: 22
> Date: Mon, 1 Feb 2010 20:33:14 -0500
> From: David Doria <daviddoria+vtk at gmail.com>
> Subject: [vtkusers] Selections
> To: vtkusers at vtk.org
> Message-ID:
> 	<c19fcadc1002011733n6ff1bacdkd9c43c10848918e7 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am trying to demonstrate vtkSelectionSource and vtkExtractSelection:
> http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection
>
> The example is setup to create 50 random points and extract 10 of them (IDs
> 10 through 20, so maybe 11?). Is this the right idea? Create a
> selectionSource, tell it which things you want to select, then extract the
> selection?
>
> The output of the extractSelection filter is NULL, so clearly it is not
> exactly correct :)
>
> Also, the output of the ExtractSelection is a vtkDataObject, so I tried to
> cast it as a vtkDataSet to get back to a sane data type - is this a
> reasonable approach? 'obj' is null for now so I can't tell if the cast will
> work.
>
> Any suggestions?
>
> Thanks,
>
> David
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100201/7d353037/attachment-0001.htm>
>
> ------------------------------
>
> Message: 23
> Date: Mon, 1 Feb 2010 23:49:57 -0500
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] Selections
> To: David Doria <daviddoria+vtk at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> 	<4db4735c1002012049i5980fc86kb161ec20a952986 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Have you looked for a test that uses vtkExtractSelection? I found one
> in VTK/Graphics/Testing/Cxx/TestExtraction.cxx. It might help. I have
> not looked at your example or the test.
>
> On Mon, Feb 1, 2010 at 8:33 PM, David Doria <daviddoria+vtk at gmail.com>
> wrote:
>> I am trying to demonstrate vtkSelectionSource and vtkExtractSelection:
>> http://www.vtk.org/Wiki/VTK/Examples/ExtractSelection
>> The example is setup to create 50 random points and extract 10 of them
>> (IDs
>> 10 through 20, so maybe 11?). Is this the right idea? Create a
>> selectionSource, tell it which things you want to select, then extract the
>> selection?
>> The output of the extractSelection filter is NULL,?so clearly it is not
>> exactly correct :)
>> Also, the output of the ExtractSelection is a vtkDataObject, so I tried to
>> cast it as a vtkDataSet to get back to a sane data type - is this a
>> reasonable approach? 'obj' is null for now so I can't tell if the cast
>> will
>> work.
>> Any suggestions?
>> Thanks,
>>
>> David
>>
>> _______________________________________________
>> 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
>>
>>
>
>
> ------------------------------
>
> Message: 24
> Date: Tue, 02 Feb 2010 10:30:19 +0530
> From: "Rakesh Patil" <rakeshthp at in.com>
> Subject: Re: [vtkusers] connecting points in from vtkPoints
> To: "Bill Lorensen" <bill.lorensen at gmail.com>
> Cc: vtkusers <vtkusers at vtk.org>
> Message-ID: <1265086819.7f141cf8e7136ce8701dc6636c2a6fe4 at mail.in.com>
> Content-Type: text/plain; charset="utf-8"
>
>  Well, thanks a lot for your help and support...I got the output what i
> wanted... Now a small modification required..Is there any class in VTK to
> redistribute points equally spaced..??The output which i get has points
> which are unequally spaced..But i want them to be equally spaced..Thanks
> Original message From:Bill Lorensen< bill.lorensen at gmail.com >Date: 02 Feb
> 10 02:14:28Subject:Re: [vtkusers] connecting points in from vtkPointsTo:
> Rakesh Patil This
> examplehttp://vtk.org/Wiki/VTK/Examples/ExtractPolyLinesFromPolyData#ExtractPolyLinesFromPolyData.cxxshows
> you how to extract the polylines from vtkCutter followed by vtkStripper.On
> Mon, Feb 1, 2010 at 1:29 PM, Bill Lorensenwrote:> You can get the number of
> lines with:>> yourPolyData>GetNumberOfLines();>> You can get the lines with
> something like:>> vtkIdType npts;> vtkIdType *indx;>> cells =
> yourPolyData>GetLines();>> for (cells>InitTraversal();
> cells>GetNextCell(npts,indx); )> ....> indx is an index into the points.>>
> On Mon,
>   Feb 1, 2010 at 12:16 PM, Rakesh Patilwrote:>>>>>> Hi.>>>> I guess
> vtkStripper produces vtkPolydata as its output.. so How can be the>>
> polyline extracted from vtkstripper?>> As u said, i'm using the points from
> stripper and producing polyline of my>> own..>>>> Thanks>>>>  Original
> message >> From:Bill Lorensen< bill.lorensen at gmail.com >>> Date: 01 Feb 10
> 19:19:48>> Subject: Re: [vtkusers] connecting points in from vtkPoints>> To:
> Rakesh Patil>>>> Are you using the polyline generated by the stripper or
> creating your>> own? You must use the one produced by the stripper.>>>>>> On
> Mon, Feb 1, 2010 at 4:14 AM, Rakesh Patil wrote:>>>>>> Yes it does changes
> ... I get the points.. But when i connect these points>>> using polyline,
> again i get a zigzag lines...>>>>>>  Original message >>> From:David Doria<
> daviddoria+vtk at gmail.com >>>> Date: 31 Jan 10 01:22:41>>> Su bject: Re:
> [vtkusers] connecting points in from vtkPoints>>> To: rakeshthp at in.com>>>>>>
> Thanks,>>>>>> David>>>>>>>>>>>
>  > On Sat, Jan 30, 2010 at 12:25 PM, Rakesh Patil wrote:>>>> I need to store
> the points in an array.. but vtkStripper is not returning>>>> the points.. i
> tried implementing it as follows>>>>>>>> vtkStripper *sp =
> vtkStripper::New();>>>>>>>> sp>SetInputConnection(
> contFilter>GetOutputPort());>>>>>>>> vtkPoints *pt = sp>GetPoints();>>>>>>>>
> Here pt is not showing any values.. It is all empty..>>>>>>>>  Original
> message >>>> From:Bill Lorensen< bill.lorensen at gmail.com >>>>> Date: 3 0 Jan
> 10 18:44:20>>>> Subject: Re: [vtkusers] connecting points in from
> vtkPoints>>>> To: Rakesh Patil>>>>>>>> Use vtkStripper to order the line
> segments output from vtkContourFilter.>>>>>>>> On Fri, Jan 29, 2010 at 5:30
> AM, Rakesh Patil wrote:>>>>> Hello,>>>>>>>>>> I have a scatter data, (xyz
> file), where x and y are long, and lat resp>>>>> and>>>>> z is depth. I need
> to extract a zero contour from this xyz data. I use>>>>> vtkContourFilter to
> extract the points for zero contour.>>>>>>>>>> I get the
>  points what i require correctly.. But if i connect them>>>>> serially,>>>>>
> it shows that points are connected in a zigzag form. I get points>>>>>
> directly>>>>> from contuorfilter. i.e.>>>>>>>>>> vtkPoints *pts =
> contFilter>GetOutput()>GetPoints();>>>>>>>>>> What and how do i do, so that
> when i connect the points, i get a decent>>>> > connected line, instead of
> zig zag ..?>>>>>>>>>> Thanks>>>>>>>>>> Regards>>>>>>>>>>>>>>> Dear vtkusers
> ! Get Yourself a cool, short @in.com Email ID now!>>>>> >>>>> Powered by
> www.kitware.com>>>>>>>>>> Visit other Kitware opensource projects at>>>>>
> http://www.kitware.com/opensource/opensource.html>>>>>>>>>> Please keep
> messages ontopic and check the VTK FAQ at:>>>>>
> http://www.vtk.org/Wiki/VTKFAQ>>>>>>>>>> Follow this link to
> subscribe/unsubscribe:>>>>> http://www.
> vtk.org/mailman/listinfo/vtkusers>>>>>>> > ;>>>>>>>>>> >>>> Powered by
> www.kitware.com>>>>>>>> Visit other Kitware opensource projects at>>>>
> http://www.kitware.com/opensource/opens
>  ource.html>>>>>>>> Please keep messages ontopic and check the VTK FAQ
> at:>>>> http://www.vtk.org/Wiki/VTKFAQ>>>>>>>> Follow this link to
> subscribe/unsubscribe:>>>>
> http://www.vtk.org/mailman/listinfo/vtkusers>>>>>>>>>>>>>> Try updating the
> stripper:>>>>>> vtkSmartPointer stripper =>>> vtkSmartPointer::New();>>> st
> ripper>SetInputConnectio n( contFilter>GetOutputPort());>>>
> stripper>Update();>>> vtkPoints *pt = stripper>GetPoints();>>>>>> Does that
> change anything?>>>>>> Dave>>> >>> Powered by www.kitware.com>>>>>> Visit
> other Kitware opensource projects at>>>
> http://www.kitware.com/opensource/opensource.html>>>>>> Please keep messages
> ontopic and check the VTK FAQ at:>>> http://www.vtk.org/Wiki/VTKFAQ>>>>>>
> Follow this link to subscribe/unsubscribe:>>>
> http://www.vtk.org/mailman/listinfo/vtkusers>>>>>>>>> Get Yourself a cool,
> short @in.com Email I D now!>>> >>> Powered by www.kitware.com>>>>>> Visit
> other Kitware opensource projects at>>> http://www.kitware.com/opensource/op
>  ensource.html>>>>>> Please keep messages ontopic and check the VTK FAQ
> at:>>> http://www.vtk.org/Wiki/VTKFAQ>>>>>> 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/20100202/672a79bb/attachment-0001.htm>
>
> ------------------------------
>
> Message: 25
> Date: Tue, 2 Feb 2010 00:02:30 -0500
> From: Bill Lorensen <bill.lorensen at gmail.com>
> Subject: Re: [vtkusers] connecting points in from vtkPoints
> To: Rakesh Patil <rakeshthp at in.com>
> Cc: vtkusers <vtkusers at vtk.org>
> Message-ID:
> 	<4db4735c1002012102g105f32b7wa22e73fc712b1241 at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> You could fit the lines with parametric splines and resample them uniformly.
>
> On Tue, Feb 2, 2010 at 12:00 AM, Rakesh Patil <rakeshthp at in.com> wrote:
>>
>>
>> Well, thanks a lot for your help and support...
>>
>> I got the output what i wanted... Now a small modification required..
>> Is there any class in VTK to redistribute points equally spaced..??
>> The output which i get has points which are unequally spaced..
>> But i want them to be equally spaced..
>>
>> Thanks
>>
>> ---------- Original message ----------
>> From:Bill Lorensen< bill.lorensen at gmail.com >
>> Date: 02 Feb 10 02:14:28
>> Subject: Re: [vtkusers] connecting points in from vtkPoints
>> To: Rakesh Patil
>>
>> This example
>> http://vtk.org/Wiki/VTK/Examples/ExtractPolyLinesFromPolyData#ExtractPolyLinesFromPolyData.cxx
>> shows you how to extract the polylines from vtkCutter followed by
>> vtkStripper.
>>
>> On Mon, Feb 1, 2010 at 1:29 PM, Bill Lorensen wrote:
>>> You can get the number of lines with:
>>>
>>> yourPolyData->GetNumberOfLines();
>>>
>>> You can get the li nes with something like:
>>>
>>> vtkIdType npts;
>>> vtkIdType *indx;
>>>
>>> cells = yourPolyData->GetLines();
>>>
>>> for (cells->InitTraversal(); cells->GetNextCell(npts,indx); )
>>> ....
>>> indx is an index into the points.
>>>
>>> On Mon, Feb 1, 2010 at 12:16 PM, Rakesh Patil wrote:
>>>>
>>>>
>>>> Hi.
>>>>
>>>> I guess vtkStripper produces vtkPolydata as its output.. so How can be
>>>> the
>>>> polyline extracted from vtkstripper?
>>>> As u said, i'm using the points from stripper and producing polyline of
>>>> my
>>>> own..
>>>>
>>>> Thanks
>>>>
>>>> ---------- Original message ----------
>>>> From:Bill Lorensen< bill.lorensen at gmail.com >
>>>> Date: 01 Feb 10 19:19:48
>>>> Subject: Re: [vtkusers] connecting points in from vtkPoints
>>>> To: Rakesh Patil
>>>>
>>>> Are you using the polyline generated by the stripper or creating your
>>>> own? You must use the one produced by the stripper.
>>>>
>>>>
>>>> On Mon, Feb 1, 2010 at 4:14 AM, Rakesh Patil wrote:
>>>>>
>>>>> Yes it does changes ... I get the points.. But when i connect these
>>>>> points
>>>>> using polyline, again i get a zigzag lines...
>>>>>
>>>>> ---------- Original message ----------
>>>>> From:David Doria< daviddoria+vtk at gmail.com >
>>>>> Date: 31 Jan 10 01:22:41
>>>>> Su bject: Re: [vtkusers] connecting points in from vtkPoints
>>>>> To: rakeshthp at in.com
>>>>>
>>>>> Thanks,
>>>>>
>>>>> David
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Jan 30, 2010 at 12:25 PM, Rakesh Patil wrote:
>>>>>> I need to store the points in an array.. but vtkStripper is not
>>>>>> returning
>>>>>> the point s.. i tried implementing it as follows
>>>>>>
>>>>>> vtkStripper *sp = vtkStripper::New();
>>>>>>
>>>>>> sp->SetInputConnection( contFilter->GetOutputPort());
>>>>>>
>>>>>> vtkPoints *pt = sp->GetPoints();
>>>>>>
>>>>>> Here pt is not showing any values.. It is all empty..
>>>>>>
>>>>>> ---------- Original message ----------
>>>>>> From:Bill Lorensen< bill.lorensen at gmail.com >
>>>>>> Date: 3 0 Jan 10 18:44:20
>>>>>> Subject: Re: [vtkusers] connecting points in from vtkPoints
>>>>>> To: Rakesh Patil
>>>>>>
>>>>>> Use vtkStripper to order the line segments output from
>>>>>> vtkContourFilter.
>>>>>>
>>>>>> On Fri, Jan 29, 2010 at 5:30 AM, Rakesh Patil wrote:
>>>>>>> Hello,
>>>>>>>
>>>>>>> I h ave a scatter data, (xyz file), where x and y are long, and lat
>>>>>>> resp
>>>>>>> and
>>>>>>> z is depth. I need to extract a zero contour from this xyz data. I
>>>>>>> use
>>>>>>> vtkContourFilter to extract the points for zero contour.
>>>>>>>
>>>>>>> I get the points what i require correctly.. But if i connect them
>>>>>>> serially,
>>>>>>> it shows that points are connected in a zig-zag form. I get points
>>>>>>> directly
>>>>>>> from contuorfilter. i.e.
>>>>>>>
>>>>>>> vtkPoints *pts = contFilter->GetOutput()->GetPoints();
>>>>>>>
>>>>>>> What and how do i do, so that when i connect the points, i get a
>>>>>>> decent
>>>>>> > connected line, instead of zig zag ..?
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>> Regards
>>>>>>>
>>>>>>>
>>>>>>> Dear vtkusers ! Get Yourself a cool, short @in.com Email ID now!
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>>>>
>>>> > ;>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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.vt k.org/mailman/listinfo/vtkusers
>>>>>>
>>>>>>
>>>>>
>>>>> Try updating the stripper:
>>>>>
>>>>> vtkSmartPointer stripper =
>>>>> vtkSmartPointer::New();
>>>>> st ripper->SetInputConnectio n( contFilter->GetOutputPort());
>>>>> stripper->Update();
>>>>> vtkPoints *pt = stripper->GetPoints();
>>>>>
>>>>> Does that change anything?
>>>>>
>>>>> Dave
>>>>> _______________________________________________
>>>>> Powered by www.kitware.com
>>>>>
>>>>> Visit other Kitware open-source projects at
>>>>> http://www.kitware.com/opensource/opensource.html
>>>>>
>>>>> Please keep messages on-topic an d 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
>>>>>
>>>>>
>>>>> Get Yourself a cool, short @in.com Email I D now!
>>>>> _______________________________________________
>>>>> 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
>>>>>
>>>>>
>>>>
>>>
>>
>
>
> ------------------------------
>
> Message: 26
> Date: Tue, 02 Feb 2010 12:27:51 +0530
> From: "Rakesh Patil" <rakeshthp at in.com>
> Subject: [vtkusers] vtkSplineFilter not distributing points evenly...
> To: "vtkusers" <vtkusers at vtk.org>
> Message-ID: <1265093871.8011ecba39754a741ff861d810a7601f at mail.in.com>
> Content-Type: text/plain; charset="utf-8"
>
>  Hello, I construct a polyline from the output of contourfilter. After
> constructingpolyline, i found that, the points in this polyline are unevenly
> spaced(unequally spaced). Thus i used vtkSplineFilter to distribute points
> evenly on this polyline.But when i get the output from this filter, is like,
> at the junction point, oftwo lines, points are more closer than the
> specified length, here is the code what i wrote.// few lines of code, to
> construct unstructuredGrid// which is passed to the
> contourfiltervtkContourFilter *contFilter =
> vtkContourFilter::New();contFilter>SetInputConnection(del>GetOutputPort());contFilter>GenerateValues(1,
> 8.5, 8.5);contFilter>Update();vtkSplineFilter *sf =
> vtkSplineFilter::New();sf>SetInputConnection(contFilter>GetOutputPort());sf>SetSubdivideToLength();sf>SetLength(50);vtkStripper
> *stp = vtkStripper::New();stp>SetInputConnection(
> sf>GetOutputPort());stp>Update();Later I extract a polyline from vtkStripper
> as shown inexample below:http://vtk.org/Wi
> ki/VTK/Examples/ExtractPolyLinesFromPolyData#ExtractPolyLinesFromPolyData.cxxI
> do get the output as expected but with a small variation. i.e. at the place
> wheretwo lines meet, the spacing is not same as mentioned in the code.How do
> i overcome this problem..??Thanks in advance
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> <http://www.vtk.org/pipermail/vtkusers/attachments/20100202/0bce965e/attachment.htm>
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 70, Issue 5
> ***************************************
>


-- 
Nikhil Kumar
rit2007033
b.tech IT 6th sem
IIIT Allahabad
contact at 9793905858
email: rit2007033 at iiita.ac.in
          niksinghania at gmail.com
http://profile.iiita.ac.in/RIT2007033/



More information about the vtkusers mailing list