From fe3aaeefe1255fa6394e7b1a0fbb22322acd8974 Mon Sep 17 00:00:00 2001 From: Jimbles Date: Fri, 3 Jul 2020 16:52:08 +0100 Subject: [PATCH] fixed bug in stl2inr with struct input --- MATLAB/stl2inr.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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);