Hi Brian,
On Jan 4, 2013, at 3:28 PM, Brian Davis wrote:
>
>
>
>
> So I was able to get vmtk to build using Python 2.6 x64 (3.0 did not work) so
> the following is not exactly accurate with 1.0 This occurred last night
> after my post after my 3rd attempt at building VMTK with each version of
> Python.
>
> >>>
> Requirements
>
> vmtk is cross-platform and will compile and work on Linux, Mac OSX and
> Windows. Most of the development is performed under Linux and Mac OSX, but
> feel free to update us on eventual issues on Windows.
>
> In order to successfully compile and use vmtk, the following software has to
> be installed in your system: - Git (>= 1.6) - Python (>=2.6) - CMake (>=2.8)
> - A C++ compiler
>
> <<<
>
> especially the part about Python >= 2.6 in my experience (mileage may vary).
>
You're right, when I originally wrote this page Python 3 was not a real option
and no distribution included it. I just updated the version number and never
really thought about it.
The deal with Python 3 is that VTK Python wrappers only support Python 2.x so
far. There's probably some work undergoing to support
Python 3, but AFAIK this is not out in the wild yet. Bottomline, only Python
2.x will work. I fixed the documentation, thanks for this and
sorry you had to find out the hard way.
>
>
> I was also able to get vmtknetworkextraction to work, but only with the
> source build in Win x64 not from binary release
>
This is unexpected, thanks for reporting it.
> I was able to get pypepad to work and python.
>
> In reference to:
>
> >>>
>
>
> To do so, position yourself in the Install directory and create a file named,
> e.g. vmtk-startup.bat
> (the important part is the .bat extension) containing the following code:
>
> rem @echo off
> set VMTK_DIR=%~dp0
> set
> PATH=%VMTK_DIR%bin;%VMTK_DIR%lib\InsightToolkit;%VMTK_DIR%lib\Python;%PATH%
> set
> PYTHONPATH=%VMTK_DIR%lib\site-packages;%VMTK_DIR%lib\vtk-5.10;%VMTK_DIR%lib\vmtk
> cd %VMTK_DIR%
> python bin\vmtk-exe.py
> <<<
>
> Sounds like some good stuff to put into a run_vmtk_python.txt file in the
> release of VMTK and run configure_file on, this way people can get started
> with out having to create their own script (and burn time trying to figure
> out which paths and env vars vmtk needs to do it's magic) as I did in my
> source tree to do just this.
Good point. Can you make a test before I do this?
Can you please remove the two lines setting the environment variables (set PATH
... and set PYTHONPATH) and run the .bat file again?
In theory the python launcher should set the environment variables
automatically already, but let's see if this works on your system.
>
> and
>
> >>>>
> superbuild doesn't have an explicit INSTALL target.
> <<<<
>
> Don't you think it should? I mean vmtk is not the only thing I am building
> in my source tree... it's just one component.
Good point, I'm adding an option now to make this happen. It's called
SUPERBUILD_INSTALL_PREFIX and it defaults to Install to keep the current
behavior unchanged.
> I was impressed that I was able to get most of the centerlines of vasculature
> network on a data set I was working on. Just not sure why it needs and
> initial cut plane for the opening as a requirement. I am not doing CFD so
> for me it seemed like an extra (manual) step I am not sure I need in my
> pipeline, not that I have tried it without this recommended step.
I'm glad it worked for you (after some suffering).
The network extraction algorithm needs a starting point to iteratively chop the
surface with a sphere. Right now it's an opening in the surface, it could be a
seed point, though.
A seed point would probably be better since you could automate it more easily.
Is this what you'd be aiming for?
Thanks for your inputs so far.
Luca
> Thanks
>
> B
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
vmtk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/vmtk-users