Date:2015-05-22 15:00:16 (8 years 4 months ago)
Author:Werner Almesberger
Commit:ecaffbb1fe39090d78d47b17aeb7973ab25ad36e
Message:sfc/slicer.py: new option -m for model tolerance; correct usage

Files: sfc/slicer.py (3 diffs)

Change Details

sfc/slicer.py
9292
9393def usage():
9494    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"
9798    sys.exit(1)
9899
99100
...... 
106107os.dup2(2, 1)
107108sys.stdout = os.fdopen(stdout, "w")
108109
109opts, args = getopt.getopt(sys.argv[1:], "a:e:fh:o:p:s:")
110opts, args = getopt.getopt(sys.argv[1:], "a:e:fh:m:o:p:s:")
110111for opt, arg in opts:
111112    if opt == "-a":
112113        if arg[0:3] == "top":
...... 
115116            align_bottom = float(arg[6:])
116117        else:
117118            usage()
119    elif opt == "-m":
120        mech_eps = float(arg)
118121    elif opt == "-o":
119122        end = float(arg)
120123    elif opt == "-f":

Archive Download the corresponding diff file

Branches:
master



interactive