Posted by
SteveWest on
Apr 23, 2017; 7:57pm
URL: http://imagej.273.s1.nabble.com/MCIB3D-Plugins-ClassCastException-when-running-Convex-Hull-plugin-tp5018589p5018592.html
Hi all,
So it turns out I was using an older version of MCIB3D plugins and core (3.6). I updated to 3.9, and have run the 3D Viewer (4.0.1) to make sure Java3D is installed, and I tried to run the convex hull again and I get a new error:
java.lang.NoClassDefFoundError: com/github/quickhull3d/QuickHull3D
at mcib3d.geom.Object3DSurface.computeConvexHull3D(Object3DSurface.java:325)
at mcib3d.geom.Object3D.getConvexSurface(Object3D.java:3592)
at mcib3d.geom.Object3D.getConvexObject(Object3D.java:3607)
at mcib3d.geom.Object3D.getConvexObject(Object3D.java:3623)
at mcib_plugins.Convex_Hull3D.run(Convex_Hull3D.java:62)
at ij.plugin.filter.PlugInFilterRunner.processOneImage(PlugInFilterRunner.java:265)
at ij.plugin.filter.PlugInFilterRunner.<init>(PlugInFilterRunner.java:114)
at ij.IJ.runUserPlugIn(IJ.java:219)
at ij.IJ.runPlugIn(IJ.java:181)
at ij.Executer.runCommand(Executer.java:137)
at ij.Executer.run(Executer.java:66)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: com.github.quickhull3d.QuickHull3D
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 12 more
Which is bizarre, as the new MCIB3D plugins package comes with quickhull3d.jar embedded within it!
http://imagejdocu.tudor.lu/doku.php?id=plugin:stacks:3d_ij_suite:startI thin the problem is the MCIB3D plugin for convex hull expects the QuickHull3D class to be in the com.github.quickhull3d package, but apparently it is not (path seems to be quickhull3d.QuickHull3D).
Any help with getting this plugin to calculate the convex hull of objects would be greatly appreciated!
Thanks,
Steve.