[vtkusers] Splitting vtkImageData in vtkImageData (for each stack image)
Natalia Díaz Rodríguez
nataluxy888 at hotmail.com
Thu Oct 1 03:00:23 EDT 2009
Hello!
I would like to know if there is a way to split or decompose a stack of images contained in vtkImageData in more vtkImageData (one per stack image) in order to apply different transformations to each of those and put them all the images together again afterwards as a single vtkImageData.
********
Natalia Díaz Rodríguez
Åbo Akademi University, Turku, Finland
Universidad de Granada, Spain
E-mail: diaz.rodriguez.natalia at gmail.com
> From: vtkusers-request at vtk.org
> Subject: vtkusers Digest, Vol 65, Issue 33
> To: vtkusers at vtk.org
> Date: Wed, 30 Sep 2009 12:00:17 -0400
>
> 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. vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use
> the ray cast mapper without scalars! (Ali Habib)
> 2. vtk equivalent for ParaView's Tetraheralize filter?
> (Eric Mark (CISD/CIV))
> 3. Re: Using vtkLookupTable (John Durkin)
> 4. Re: vtk equivalent for ParaView's Tetraheralize filter?
> (David Thompson)
> 5. Re: vtk equivalent for ParaView's Tetraheralize filter?
> (UNCLASSIFIED) (Mark, Eric (Civ, ARL/CISD))
> 6. VTK in Python -how? (Helvin Lui)
> 7. Re: QVTKRenderWindowInteractor crashes under Mac OS X 10.6 +
> CMake x86_64 issue (Piotr Byzia)
> 8. Re: VTK in Python -how? (Charl Botha)
> 9. How to read this! (Arsham Mesbah)
> 10. Anyone knows how to calculate a specific point on a poly
> surface? (Dajiang Zhu)
> 11. Re: QVTKRenderWindowInteractor crashes under Mac OS X 10.6 +
> CMake x86_64 issue (Sean McBride)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 29 Sep 2009 21:47:35 +0200
> From: Ali Habib <ali.mahmoud.habib at gmail.com>
> Subject: [vtkusers] vtkUnstructuredGridVolumeRayCastMapper (05B22CB8):
> Can't use the ray cast mapper without scalars!
> To: vtkusers at vtk.org
> Message-ID:
> <a065f39a0909291247s69399dd9ydef2241ab0800904 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I wrote a code to make tetrahedral mesh on sphere , but it no give result
> except :
>
> ERROR: In
> m:\dev\cur\vtkdotnet\branch\50\VolumeRendering\vtkUnstructuredGridVolumeRayCastMapper.cxx,
> line 274
> vtkUnstructuredGridVolumeRayCastMapper (05B22CB8): Can't use the ray cast
> mapper without scalars!
>
> every time I run the code
>
> attached is the c++ code , your fast reply is highly appretiated
>
>
> best regards
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090929/99a427a8/attachment-0001.htm>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: C++SourceCode.h
> Type: application/octet-stream
> Size: 3081 bytes
> Desc: not available
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090929/99a427a8/attachment-0001.obj>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 29 Sep 2009 15:50:27 -0400
> From: "Eric Mark (CISD/CIV)" <emark at arl.army.mil>
> Subject: [vtkusers] vtk equivalent for ParaView's Tetraheralize
> filter?
> To: vtkusers at vtk.org
> Message-ID: <4AC26503.6000803 at arl.army.mil>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> Hello All,
>
> I'm attempting to convert an unstructured grid to a tetrahedral mesh and
> have been trying to use the Delauney3D filter but the results are not
> what I expected. I've tried adjusting the Tolerance and Offset
> parameters but it still seems to be connecting points that it shouldn't.
>
> If I read the dataset into ParaView and use the Tetrahedralize filter it
> seems to give me exactly what I want. Is there an equivalent filter or
> combination of filters in vtk that I can use? I've looked through the
> class list but I don't see anything that appears to operate on the whole
> dataset and generate tets. Does anyone know of an equivalent?
>
> Thanks,
>
> Eric
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 29 Sep 2009 15:56:29 -0400
> From: John Durkin <jrd5084 at psu.edu>
> Subject: Re: [vtkusers] Using vtkLookupTable
> To: Cory Quammen <cquammen at cs.unc.edu>
> Cc: vtkusers at vtk.org
> Message-ID:
> <fd6f6c1f0909291256u229ce8e5t29b23068daa72835 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Cory and vtkusers,
>
> Is there any way to use vtkcolortransferFunction with vtkActor or is it only
> applicable with vtkVolume?
>
> Also any pointers on how to go about having one scalar map the hue and
> another scalar map to the value (HSV) of the vtkPolyData?
>
> thanks,
>
> John
>
> On Tue, Sep 29, 2009 at 6:15 AM, Cory Quammen <cquammen at cs.unc.edu> wrote:
>
> > John,
> >
> > I don't believe that this is possible with existing classes in VTK.
> > You could try subclassing vtkLookupTable or vtkColorTransferFunction.
> >
> > Cory
> >
> > On Mon, Sep 28, 2009 at 10:19 PM, John Durkin <jrd5084 at psu.edu> wrote:
> > > Dear vtkusers and developers,
> > >
> > >
> > > I've had this problem for a while now and no one seems to be able to come
> > up
> > > with an answer. I have vtkPolyData that consists of vtkPoints and TWO
> > sets
> > > of associated scalars. I want to set the hue of the data using one set
> > of
> > > scalars and the alpha value (opacity) using the other set of scalars. Is
> > > there any way to use vtkLookupTable to do this?
> > >
> > > thanks,
> > >
> > > John
> > >
> > > _______________________________________________
> > > 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
> > >
> > >
> >
> >
> >
> > --
> > Cory Quammen
> > Center for Computer Integrated Systems for Microscopy and Manipulation
> > (CISMM)
> > Department of Computer Science
> > University of North Carolina at Chapel Hill
> > http://www.cs.unc.edu/~cquammen <http://www.cs.unc.edu/%7Ecquammen>
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090929/113e03fa/attachment-0001.htm>
>
> ------------------------------
>
> Message: 4
> Date: Tue, 29 Sep 2009 13:50:56 -0700
> From: "David Thompson" <dcthomp at sandia.gov>
> Subject: Re: [vtkusers] vtk equivalent for ParaView's Tetraheralize
> filter?
> To: "Eric Mark" <emark at arl.army.mil>
> Cc: "vtkusers at vtk.org" <vtkusers at vtk.org>
> Message-ID: <B0EDA740-3D30-4EB5-840B-EEB18F05CB73 at sandia.gov>
> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
>
> Hi Eric,
>
> If you look in Servers/ServerManager/Resources/filters.xml, you'll see
> the name of the ParaView filter (Tetrahedralize) as a SourceProxy
> label attribute and the name of the class implementing the filter
> (vtkDataSetTriangleFilter) as the class attribute of the same
> SourceProxy entry. The vtkDataSetTriangleFilter can be found in VTK/
> Graphics/vtkDataSetTriangleFilter.h .
>
> David
>
> On Sep 29, 2009, at 12:50 , Eric Mark (CISD/CIV) wrote:
>
> > Hello All,
> >
> > I'm attempting to convert an unstructured grid to a tetrahedral mesh
> > and
> > have been trying to use the Delauney3D filter but the results are not
> > what I expected. I've tried adjusting the Tolerance and Offset
> > parameters but it still seems to be connecting points that it
> > shouldn't.
> >
> > If I read the dataset into ParaView and use the Tetrahedralize
> > filter it
> > seems to give me exactly what I want. Is there an equivalent filter
> > or
> > combination of filters in vtk that I can use? I've looked through the
> > class list but I don't see anything that appears to operate on the
> > whole
> > dataset and generate tets. Does anyone know of an equivalent?
> >
> > Thanks,
> >
> > Eric
> > _______________________________________________
> > 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: 5
> Date: Tue, 29 Sep 2009 17:48:49 -0400
> From: "Mark, Eric (Civ, ARL/CISD)" <emark at arl.army.mil>
> Subject: Re: [vtkusers] vtk equivalent for ParaView's Tetraheralize
> filter? (UNCLASSIFIED)
> To: "David Thompson" <dcthomp at sandia.gov>
> Cc: vtkusers at vtk.org
> Message-ID:
> <56D23B61D58733478FA4E0C1434AAC58023FE90A at ARLABML02.DS.ARL.ARMY.MIL>
> Content-Type: text/plain; charset="us-ascii"
>
> Classification: UNCLASSIFIED
> Caveats: NONE
>
> Hi David,
>
> Thanks for the pointer to find the actual filter. I had searched for
> tetrahedra in the Paraview source and didn't find anything.
> I was actually using the vtkDataSetTriangleFilter as the input to the
> Delaunay3D filter since the DataSetTriangleFilter was producing triangles as
> output and I needed tets. It turns out that I had a geometryFilter before
> the DataSetTriangleFilter so the output was only 2D. Taking out the geometry
> filter did the trick.
>
> Your pointer was the ticket to the solution.
>
> Thanks again,
>
> Eric
>
> Classification: UNCLASSIFIED
> Caveats: NONE
>
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/x-pkcs7-signature
> Size: 5194 bytes
> Desc: not available
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090929/868ff6c7/attachment-0001.bin>
>
> ------------------------------
>
> Message: 6
> Date: Wed, 30 Sep 2009 22:40:58 +1300
> From: Helvin Lui <helvinlui at gmail.com>
> Subject: [vtkusers] VTK in Python -how?
> To: vtkusers at vtk.org
> Message-ID:
> <f27262c50909300240h2ee96579y9f3e7c613400356f at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi!
> I documented how to install VTK for use with python in my blog, but right
> now am wondering if I did so correctly. Is anyone kind enough to check?
> There weren't many detailed explanations online about this when I started
> and hence my documentation.
> http://learnwithhelvin.blogspot.com/2009/07/how-to-install-vtk-for-use-with-python.html
>
> Another thing is that in my app, I append the path to the VTK Python
> bindings. But then I realised in order for my 'import vtk' line to work, my
> app's main script needed to be in the directory where vtkpython.exe has been
> installed. In my case: C:\Qt\VTKbin7\bin\release. Is there some way that I
> could use so that my app can use VTK outside of its bin directory? I tried
> adding its bin path to my system variables and also appended it at the top
> of my script: sys.path.append("C:\Qt\VTKbin7\bin\release").
>
> Kind Regards,
> Helvin Lui
> Newbie
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090930/d6f14514/attachment-0001.htm>
>
> ------------------------------
>
> Message: 7
> Date: Wed, 30 Sep 2009 13:07:36 +0200
> From: Piotr Byzia <piotr.byzia at gmail.com>
> Subject: Re: [vtkusers] QVTKRenderWindowInteractor crashes under Mac
> OS X 10.6 + CMake x86_64 issue
> To: Clinton Stimpson <clinton at elemtech.com>
> Cc: vtkusers at vtk.org
> Message-ID: <C68CC99F-6327-4892-8D32-59B73D1EBCB9 at gmail.com>
> Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes
>
> Hi Clinton,
>
> On 22.09.2009, at 18:38, Clinton Stimpson wrote:
>
> > Is your VTK configured to use Cocoa? And your Qt to use Carbon?
>
> My VTK is configured to use Cocoa, not Carbon.
> I don't remember how I configured QT and how to check it. Is there a
> simple way to do it?
>
> > Have you ever gotten PyQt (Carbon) with VTK (Carbon) to work on Mac
> > OS X?
>
> No, I haven't. QVTKRenderWindowInteractor is my 1st attempt and I
> tried it with VTK(Cocoa) and QT(Carbon or Cocoa-don't know).
>
> > I didn't think it worked, because of previous limitations in Carbon's
> > HIToolbox when used with OpenGL. Modifying vtkCarbonRenderWindow to
> > use new
> > Mac 10.5 apis might help it work.
> >
> > Using Cocoa all around should work better, but you'll need to
> > rebuild your Qt,
> > and use VTK from CVS.
>
> I will try that.
>
> But here is another issue with 10.6 (Cmake 2.6-4):
>
> Linking CXX shared library ../bin/libvtkCommonPythonD.dylib
> ld: warning: in /Library/Frameworks//Python.framework/Python, missing
> required architecture x86_64 in file
>
> What should I specify to correct this?
> I have
> CMAKE_OSX_ARCHITECTURES i386
> CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.6.sdk
>
> Regards,
> Piotr
>
> > Clint
> >
> > On Tuesday 22 September 2009 10:04:04 am Piotr Byzia wrote:
> >> Dear all,
> >>
> >> When launching VTK/Wrapping/Python/vtk/qt4/
> >> QVTKRenderWindowInteractor.py it crashes with traceback as below.
> >>
> >> I'm using
> >> PyQt 4.5.4
> >> VTK 5.4.2
> >> Python 2.6.1
> >>
> >> Phil Thompson (author of the patch for PyQt4 release) suggested that
> >> it's problem on the Apple side.
> >>
> >> Does anyone know how to fix it or what exactly is causing this
> >> behavior?
> >>
> >> Best regards,
> >> Piotr Byzia
> >>
> >>
> >>
> >> $ python QVTKRenderWindowInteractor.py
> >> 2009-09-22 17:30:04.641 python[284:903] invalid drawable
> >> 2009-09-22 17:30:04.646 python[284:903] invalid drawable
> >> 2009-09-22 17:30:04.802 python[284:903] -[NSHIObject frame]:
> >> unrecognized selector sent to instance 0x1672360
> >> 2009-09-22 17:30:04.897 python[284:903] HIToolbox: ignoring exception
> >> '-[NSHIObject frame]: unrecognized selector sent to instance
> >> 0x1672360' that raised inside Carbon event dispatch
> >> (
> >> 0 CoreFoundation 0x905a258a __raiseError +
> >> 410
> >> 1 libobjc.A.dylib 0x917bbf49
> >> objc_exception_throw + 56
> >> 2 CoreFoundation 0x905ee9db -[NSObject
> >> (NSObject) doesNotRecognizeSelector:] + 187
> >> 3 CoreFoundation 0x9054a026
> >> ___forwarding___ +
> >> 950
> >> 4 CoreFoundation 0x905edd92
> >> __forwarding_prep_1___ + 50
> >> 5 libvtkRendering.5.4.dylib 0x05f50836
> >> _ZN20vtkCocoaRenderWindow7GetSizeEv + 94
> >> 6 libvtkRendering.5.4.dylib 0x05e4f9af
> >> _ZN15vtkRenderWindow6RenderEv + 1773
> >> 7 libvtkRenderingPythonD.5.4.dylib 0x05ac7da3
> >> _Z24PyvtkRenderWindow_RenderP7_objectS0_ + 103
> >> 8 .Python 0x000b575d
> >> PyEval_EvalFrameEx
> >> + 24210
> >> 9 .Python 0x000b6177 PyEval_EvalCodeEx
> >> + 1967
> >> 10 .Python 0x0003b69c function_call +
> >> 162
> >> 11 .Python 0x0000e606 PyObject_Call +
> >> 77
> >> 12 .Python 0x0001f51e
> >> instancemethod_call + 401
> >> 13 .Python 0x0000e606 PyObject_Call +
> >> 77
> >> 14 .Python 0x000aeaa3
> >> PyEval_CallObjectWithKeywords + 72
> >> 15 sip.so 0x006cf4dd
> >> sip_api_call_method + 76
> >> 16 QtGui.so 0x020046cd
> >> _Z13sipVH_QtGui_416PyGILState_STATEP7_objectP11QPaintEvent + 91
> >> 17 QtGui.so 0x0241bdf9
> >> _ZN10sipQWidget10paintEventEP11QPaintEvent + 121
> >> 18 QtGui 0x028ed3be
> >> _ZN7QWidget5eventEP6QEvent + 3934
> >> 19 QtGui.so 0x0241b790
> >> _ZN10sipQWidget5eventEP6QEvent + 102
> >> 20 QtGui 0x028a0c0f
> >> _ZN19QApplicationPrivate13notify_helperEP7QObjectP6QEvent + 191
> >> 21 QtGui 0x028a7a3c
> >> _ZN12QApplication6notifyEP7QObjectP6QEvent + 1036
> >> 22 QtGui.so 0x023d27c3
> >> _ZN15sipQApplication6notifyEP7QObjectP6QEvent + 109
> >> 23 QtCore 0x012d1bd2
> >> _ZN16QCoreApplication14notifyInternalEP7QObjectP6QEvent + 98
> >> 24 QtGui 0x02847870
> >> _ZN14QWidgetPrivate15qt_widget_eventEP25OpaqueEventHandlerCallRefP14OpaqueE
> >> ventRefPv + 4416
> >> 25 HIToolbox 0x97b4a129
> >> _ZL23DispatchEventToHandlersP14EventTargetRecP14OpaqueEventRefP14HandlerCal
> >> lRec + 1567
> >> 26 HIToolbox 0x97b493f0
> >> _ZL30SendEventToEventTargetInternalP14OpaqueEventRefP20OpaqueEventTargetRef
> >> P14HandlerCallRec + 411
> >> 27 HIToolbox 0x97b4924f
> >> SendEventToEventTargetWithOptions + 58
> >> 28 HIToolbox 0x97b7115d
> >> _ZN6HIView8SendDrawEsP13OpaqueGrafPtrPK9__HIShapeP9CGContext + 475
> >> 29 HIToolbox 0x97b70ab1
> >> _ZN6HIView23RecursiveDrawCompositedEPK9__HIShapemPS_P9CGContexthf +
> >> 713
> >> 30 HIToolbox 0x97b70d24
> >> _ZN6HIView23RecursiveDrawCompositedEPK9__HIShapemPS_P9CGContexthf +
> >> 1340
> >> 31 HIToolbox 0x97b70d24
> >> _ZN6HIView23RecursiveDrawCompositedEPK9__HIShapemPS_P9CGContexthf +
> >> 1340
> >> 32 HIToolbox 0x97b6fad7
> >> _ZN6HIView14DrawCompositedEsP13OpaqueGrafPtrPK9__HIShapemPS_P9CGContext
> >> + 873
> >> 33 HIToolbox 0x97b6f71d
> >> _ZN6HIView4DrawEsP13OpaqueGrafPtrm + 83
> >> 34 HIToolbox 0x97b6f66d
> >> _ZN6HIView6RenderEmP9CGContext + 45
> >> 35 HIToolbox 0x97b6efaf
> >> _ZN10WindowData20PrepareForVisibilityEv + 145
> >> 36 HIToolbox 0x97b6e589
> >> _ShowHideWindows +
> >> 286
> >> 37 HIToolbox 0x97b6e468 ShowHide + 38
> >> 38 QtGui 0x02844bf7
> >> _ZN14QWidgetPrivate8show_sysEv + 775
> >> 39 QtGui 0x028f06a9
> >> _ZN14QWidgetPrivate11show_helperEv + 297
> >> 40 QtGui 0x028f0da3
> >> _ZN7QWidget10setVisibleEb + 1267
> >> 41 QtGui.so 0x0241b51e
> >> _ZN10sipQWidget10setVisibleEb + 108
> >> 42 QtGui.so 0x024239cb meth_QWidget_show
> >> + 121
> >> 43 .Python 0x000b575d
> >> PyEval_EvalFrameEx
> >> + 24210
> >> 44 .Python 0x000b5998
> >> PyEval_EvalFrameEx
> >> + 24781
> >> 45 .Python 0x000b6177 PyEval_EvalCodeEx
> >> + 1967
> >> 46 .Python 0x000b632e PyEval_EvalCode
> >> + 87
> >> 47 .Python 0x000d9bbf PyRun_FileExFlags
> >> + 150
> >> 48 .Python 0x000da9a7
> >> PyRun_SimpleFileExFlags + 818
> >> 49 .Python 0x000eaf30 Py_Main + 3481
> >> 50 python 0x00001f8e 0x0 + 8078
> >> 51 python 0x00001eb5 0x0 + 7861
> >> )
> >>
> >> _______________________________________________
> >> 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: Wed, 30 Sep 2009 13:25:02 +0200
> From: Charl Botha <c.p.botha at tudelft.nl>
> Subject: Re: [vtkusers] VTK in Python -how?
> To: Helvin Lui <helvinlui at gmail.com>
> Cc: vtkusers at vtk.org
> Message-ID:
> <31ddba770909300425o3597c769u112689c1b16dad0a at mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> > Another thing is that in my app, I append the path to the VTK Python
> > bindings. But then I realised in order for my 'import vtk' line to work, my
> > app's main script needed to be in the directory where vtkpython.exe has been
> > installed. In my case:?C:\Qt\VTKbin7\bin\release. Is there some way that I
> > could use so that my app can use VTK outside of its bin directory? I tried
> > adding its bin path to my system variables and also appended it at the top
> > of my script:?sys.path.append("C:\Qt\VTKbin7\bin\release").
>
> See the instructions at
> http://cpbotha.net/2009/08/13/python-2-6-enabled-vtk-5-4-windows-binaries/
>
> If you add, under windows, the necessary paths to PATH and PYTHONPATH,
> import vtk should work in your normal "python" executable.
>
>
> ------------------------------
>
> Message: 9
> Date: Wed, 30 Sep 2009 09:41:23 -0400
> From: Arsham Mesbah <arsham at uga.edu>
> Subject: [vtkusers] How to read this!
> To: vtkusers at vtk.org
> Message-ID:
> <303b1f660909300641t3ee96c5apdb5021ee5d1f5c4e at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I have a raw data that I am trying to read using VTK the data for mat is as
> follows:
>
> LINES 18281 1716999
> 41 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
> 25.........
> 95 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 6...........
>
> so basically you have 18281 lines and the first number in the line "41"
> here for the first line shows how many point Ids you gonna have in that
> line! (points are connected to create a line!) I need to store the points in
> to the vector! so I have the vector 2D and I just need to adjust one of the
> dimensions according to how many there are in a line! How can I read only
> the first Number?
>
> I tried
> vtkPolyData* fbData = vtkPolyData::New();
> fbData = poly_Reader->GetOutput();
>
> I read number of points and cells (here number of cells is one of the
> dimensions in the vector) but I cant find smth to just read the first
> element of the line and then put the rest in to the vector according to that
> number! Any idea how to do this?
> --
> Sincerely Yours,
> A.M
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090930/772b5bee/attachment-0001.htm>
>
> ------------------------------
>
> Message: 10
> Date: Wed, 30 Sep 2009 10:27:29 -0400
> From: Dajiang Zhu <djzhu at uga.edu>
> Subject: [vtkusers] Anyone knows how to calculate a specific point on
> a poly surface?
> To: vtkusers at vtk.org
> Message-ID:
> <42f970280909300727i5774ea9cmbeb35b125399fdcb at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> hi, I have a poly surface. I know two points on the surface A and B. I also
> have a point C outside the surface. Now I want to find point D on the
> surface which has the same distance with line AB as C. It seems like find
> the intersection point with an arc and a surface. I know CellLocator can
> find the intersection point with a line but how about an arc? Anyone has an
> idea? Thanks
>
>
> Best,
>
>
> Dajiang
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090930/a0e8463d/attachment-0001.htm>
>
> ------------------------------
>
> Message: 11
> Date: Wed, 30 Sep 2009 10:59:56 -0400
> From: "Sean McBride" <sean at rogue-research.com>
> Subject: Re: [vtkusers] QVTKRenderWindowInteractor crashes under Mac
> OS X 10.6 + CMake x86_64 issue
> To: "Piotr Byzia" <piotr.byzia at gmail.com>, "Clinton Stimpson"
> <clinton at elemtech.com>
> Cc: vtkusers at vtk.org
> Message-ID: <20090930145956.1180993022 at kingu.local>
> Content-Type: text/plain; charset=ISO-8859-1
>
> On 9/30/09 1:07 PM, Piotr Byzia said:
>
> >But here is another issue with 10.6 (Cmake 2.6-4):
> >
> >Linking CXX shared library ../bin/libvtkCommonPythonD.dylib
> >ld: warning: in /Library/Frameworks//Python.framework/Python, missing
> >required architecture x86_64 in file
> >
> >What should I specify to correct this?
> >I have
> >CMAKE_OSX_ARCHITECTURES i386
> >CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.6.sdk
>
> You might be seeing:
> <http://public.kitware.com/Bug/view.php?id=9466>
>
> Try CMake from CVS.
>
> --
> ____________________________________________________________
> Sean McBride, B. Eng sean at rogue-research.com
> Rogue Research www.rogue-research.com
> Mac Software Developer Montr?al, Qu?bec, Canada
>
>
>
>
> ------------------------------
>
> _______________________________________________
> vtkusers mailing list
> vtkusers at vtk.org
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
> End of vtkusers Digest, Vol 65, Issue 33
> ****************************************
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091001/6efa9f8f/attachment.htm>
More information about the vtkusers
mailing list