Save isosurface Stl file with java code


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");


  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.

1 Like