diff --git a/MATLAB/stl2inr.m b/MATLAB/stl2inr.m index 73b522b..198fd7a 100644 --- a/MATLAB/stl2inr.m +++ b/MATLAB/stl2inr.m @@ -66,7 +66,8 @@ if isstruct(STLin) stlsurf.vertices = STLin.vtx; stlsurf.faces = STLin.tri; - STLin = STLin.name; + savepath = STLin.path; + savename = STLin.name; else disp('Loading Stl meshes'); [stlsurf.vertices,stlsurf.faces,stlsurf.normals,stlsurf.name] = stlRead(STLin);