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
Add --flip-x argument to optionally mirror the output.
When used with the usual cookie cutter profile, this makes the input shape correspond to the shape of the final cookie rather than the shape of the cookie cutter sitting upside down on the printer.
This doesn't really belong in here (sweep should not know anything about cookie cutters, but just process the input files as they are), but it was the easiest point to insert it in the Inkscape integration.
// now we have a mesh in a typical list-of-vertex-coordinates + list-of-faces-by-vertex-indices form, save it in STL format, which only stores individual triangles
493
508
FILE* of;
494
-
if (strcmp(argv[3], "-") == 0) {
509
+
if (strcmp(filenames[2], "-") == 0) {
495
510
of = stdout;
496
511
}
497
512
else {
498
-
of = fopen(argv[3], "wb");
513
+
of = fopen(filenames[2], "wb");
499
514
}
500
515
if (of == NULL) {
501
-
fprintf(stderr, "cannot open file %s: %s\n", argv[3], strerror(errno));
516
+
fprintf(stderr, "cannot open file %s: %s\n", filenames[2], strerror(errno));
0 commit comments