You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mcstas-comps/union/Union_mesh.comp
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -222,8 +222,7 @@ void read_stl(char* filename,
222
222
fclose(file);
223
223
224
224
} else {
225
-
#ifndef _MSC_EXTENSIONS
226
-
FILE *file = Open_File(filename, "r", NULL);
225
+
FILE *file = Open_File(filename, "rb", NULL);
227
226
// Read header
228
227
char header[80];
229
228
fread(header, sizeof(char), 80, file);
@@ -247,9 +246,6 @@ void read_stl(char* filename,
247
246
}
248
247
249
248
fclose(file);
250
-
#else
251
-
fprintf(stderr,"Union_mesh ERROR:\n Binary STL is not yet supported when compiling with MSVC.\n Please convert file to e.g. ascii OFF via meshlab.\n.");
0 commit comments