[vtkusers] Problem with viewing vtkReebGraph

Jim Peterson jimcp at cox.net
Sun Dec 12 16:10:15 EST 2010


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
>
> 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