[vtkusers] Problem with viewing vtkReebGraph
Jim Peterson
jimcp at cox.net
Mon Dec 13 18:16:19 EST 2010
Mehdi,
I am using vtk 5.6.1. The vtkReeb.... classes are new with vtk 5.7.0. I
don't know what to expect from them, so I cannot help there.
I assume you have the source, maybe there is an author link you could
contact there.
good luck,
Hope that helps,
Jim
Mehdi Ben Larbi wrote:
> Thanks a lot Jim,it works,the graph is displayed,i couldn't figure out
> which DLL i had to add to make it work.
> However,i think that i need the vtkReebGraphSurfaceSkeletonFilter
> <http://www.vtk.org/doc/nightly/html/c2_vtk_t_15.html#c2_vtk_t_vtkReebGraphSurfaceSkeletonFilter>
> to obtain what i'm expecting ( skeleton to compare the 3D objects ).Am
> i right ?
>
> David,i'll gladly add the code to the Java examples but I'm a beginner
> in VTK,I'm not sure it's the best way to do things.
>
> 2010/12/12 Jim Peterson <jimcp at cox.net <mailto:jimcp at cox.net>>
>
> Mehdi,
> The unsatisfied link error would mean you have not loaded the
> vtkViewsJava library in order to have access to the native vtk
> functions for the vtkGraphLayout class.
>
> I hope that helps,
> Jim
>
> Mehdi Ben Larbi wrote:
>
> Hello,
>
> I'm new to VTK,i'm working on a 3D indexing project for my
> research so i need to use Reeb's graph.
> I have been trying to view vtkReebGraph since 2 days now,i
> have he correct data but i'm not able to display it.
> I'm developing on Java and this is my code,the view part
> copied form this one
> http://www.vtk.org/Wiki/VTK/Examples/Graphs/VisualizeDirectedGraph
> i just translated it to Java :
>
> vtkPolyDataToReebGraphFilter surfaceReebGraphFilter = new
> vtkPolyDataToReebGraphFilter();
>
>
> surfaceReebGraphFilter.SetInput(reader.GetOutput());
>
> surfaceReebGraphFilter.Update();
>
> vtkReebGraph surfaceReebGraph =
> surfaceReebGraphFilter.GetOutput();
>
> System.out.println(surfaceReebGraph.Print());
> vtkGraphLayoutView
> graphLayoutView =new vtkGraphLayoutView ();
> vtkGraphLayout layout = new
> vtkGraphLayout ();
> vtkSimple2DLayoutStrategy strategy = new
> vtkSimple2DLayoutStrategy ();
> layout.SetInput(surfaceReebGraph);
> layout.SetLayoutStrategy(strategy);
> ......
>
>
>
> The Graph is correctly printed but i have this weird error :
> Exception in thread "main" java.lang.UnsatisfiedLinkError:
> vtk.vtkGraphLayoutView.VTKInit()J
>
> The PATH is correctly set so i don't know where it may come from.
> Can you please help me ? I'm desperate.
> Maybe another method to display ReebGraph without using the
> graphLayoutView ?
>
> Thanks a lot.
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Powered by www.kitware.com <http://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
>
>
>
>
More information about the vtkusers
mailing list