[vtkusers] python wrapper for vtkPartialVolumeModeller

Dr. Roman Grothausmann grothausmann.roman at mh-hannover.de
Wed Jan 7 05:57:08 EST 2015


Hi Cory,

On 07/01/15 11:07, Dr. Roman Grothausmann wrote:
>  > Let us know how it goes,
> Is that the correct way to do it now in VTK-6.1.0?

Just did some tests and the output is not completely empty but far from what I'd 
expect and what I used to get with vtkPartialVolumeModeller and VTK-5.10.
Have You used vtkPartialVolumeModeller with VTK-6 before? Should it work as 
expected still?

Best
Roman

>> On Tue, Jan 6, 2015 at 3:50 AM, Dr. Roman Grothausmann
>> <grothausmann.roman at mh-hannover.de> wrote:
>>> Dear Cory,
>>>
>>>
>>> Recently I wanted to use Your vtkPartialVolumeModeller in VTK-6.1.0 with
>>> python (as before). However, the VTK directory structure has changed and I
>>> could not find a directory to put it into to compile. Either
>>> vtkBoxClipDataSet.h or vtkDataSetSurfaceFilter.h are not found. There is a
>>> note in the CMakeLists.txt that they used to be in the same directory but
>>> that was changed.
>>> What could I do to get a python wrapping for vtkPartialVolumeModeller again
>>> in VTK6?
>>>
>>> Thanks for any help or hints.
>>> Roman
>>>
>>> On 11/07/12 16:46, Cory Quammen wrote:
>>>>
>>>> Okay, great, I'm glad you find it useful.
>>>>
>>>>   > I just tried this but although all compiles fine I get this error when
>>>>   > python is about to include vtk:
>>>>   >
>>>>   > Error: /opt/vtk-5.10.0/lib/vtk-5.10/libvtkImaging.so.5.10: undefined
>>>> symbol:
>>>>   > _ZN17vtkBoxClipDataSet10SetBoxClipEdddddd.
>>>>
>>>> The linker error you are getting means that a required library is not
>>>> being linked against for libvtkImaging. I would try to move
>>>> vtkPartialVolumeModeller from VTK/Imaging to VTK/Graphics, then add
>>>> vtkPartialVolumeModeller.cxx in the CMakeLists.txt file under
>>>> VTK/Graphics instead of VTK/Imaging, just like you had it.
>>>> libvtkGraphics may have the right libraries specified to eliminate the
>>>> linker error.
>>>>
>>>>   > I added vtkPartialVolumeModeller in VTK/Imaging/CMakeLists.txt under
>>>>   > Kit_SRCS:
>>>>   >
>>>>   > SET( Kit_SRCS
>>>>   > vtkPartialVolumeModeller.cxx
>>>>   > vtkBooleanTexture.cxx
>>>>   > .
>>>>   > .
>>>>   > .
>>>>   >
>>>>   > Is that correct? There was no Module_SRCS and also no subdirectory
>>>> Hybrid in
>>>>   > VTK/Imaging/.
>>>>
>>>> Ah, my instructions were for the latest VTK in the git repository. I
>>>> see now that you are using VTK 5.10. Yes, that is the right way to add
>>>> the source file.
>>>>
>>>>   > Do You have any ideas how to fix the undefined symbol error?
>>>>
>>>> The linker error you are getting means that a required library is not
>>>> being linked against for libvtkImaging. I would try to move
>>>> vtkPartialVolumeModeller from VTK/Imaging to VTK/Graphics, then add
>>>> vtkPartialVolumeModeller.cxx in the CMakeLists.txt file under
>>>> VTK/Graphics instead of VTK/Imaging, just like you had it.
>>>>
>>>> Please let me know how that goes.
>>>>
>>>> Cory
>>>>
>>>> --
>>>> Cory Quammen
>>>> Research Associate
>>>> Department of Computer Science
>>>> The University of North Carolina at Chapel Hill
>>>>
>>>
>>> --
>>> Dr. Roman Grothausmann
>>>
>>> Tomographie und Digitale Bildverarbeitung
>>> Tomography and Digital Image Analysis
>>>
>>> Institut für Funktionelle und Angewandte Anatomie, OE 4120
>>> Medizinische Hochschule Hannover
>>> Carl-Neuberg-Str. 1
>>> D-30625 Hannover
>>>
>>> Tel. +49 511 532-9574
>>> _______________________________________________
>>> 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
>>>
>>> Search the list archives at: http://markmail.org/search/?q=vtkusers
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/vtkusers
>>
>>
>>
>

-- 
Dr. Roman Grothausmann

Tomographie und Digitale Bildverarbeitung
Tomography and Digital Image Analysis

Institut für Funktionelle und Angewandte Anatomie, OE 4120
Medizinische Hochschule Hannover
Carl-Neuberg-Str. 1
D-30625 Hannover

Tel. +49 511 532-9574


More information about the vtkusers mailing list