Change Details
sfc/slicer.py |
92 | 92 | |
93 | 93 | def usage(): |
94 | 94 | print >>sys.stderr, "usage:", sys.argv[0], \ |
95 | | "[-a (top|bottom)(+|-)offset] [-f] [-h height]" + \ |
96 | | "\t[-b piece_distance] [-o z_offset] [-s max_step] file.stl" |
| 95 | "[-a (top|bottom)(+|-)offset] [-f] [-h height]\n" + \ |
| 96 | "\t[-m tolerance] [-p piece_distance] [-o z_offset] "+ \ |
| 97 | "[-s max_step] file.stl" |
97 | 98 | sys.exit(1) |
98 | 99 | |
99 | 100 | |
... | ... | |
106 | 107 | os.dup2(2, 1) |
107 | 108 | sys.stdout = os.fdopen(stdout, "w") |
108 | 109 | |
109 | | opts, args = getopt.getopt(sys.argv[1:], "a:e:fh:o:p:s:") |
| 110 | opts, args = getopt.getopt(sys.argv[1:], "a:e:fh:m:o:p:s:") |
110 | 111 | for opt, arg in opts: |
111 | 112 | if opt == "-a": |
112 | 113 | if arg[0:3] == "top": |
... | ... | |
115 | 116 | align_bottom = float(arg[6:]) |
116 | 117 | else: |
117 | 118 | usage() |
| 119 | elif opt == "-m": |
| 120 | mech_eps = float(arg) |
118 | 121 | elif opt == "-o": |
119 | 122 | end = float(arg) |
120 | 123 | elif opt == "-f": |
Download the corresponding diff file