Save isosurface Stl file with java code

bonej
plugin
Tags: #<Tag:0x00007fb8829e9fc0> #<Tag:0x00007fb8829e9d90>

#1

Hello,

why my code doesn’t save any stl file?

public static void getStl(ImagePlus imp,String path3d){
    IJ.runPlugIn(imp, "org.double.bonej.MeasureSurface", "resampling=6 threshold=128 save save="+path3d+"/stlImage3D.stl");
}

Thanks


#2
  1. you have misnamed the classpath, which should be org.doube.bonej.MeasureSurface

  2. Maybe something else too - fix 1. above and let us know if it works.

  3. Put your call in a try-catch and paste any exceptions you get to your next message to help up diagnose your issue.