ldcheck.py

changeset 32
75f44d3063da
parent 26
7c263b864371
child 34
7ed2e831acd4
equal deleted inserted replaced
31:02e7e1d73ebb 32:75f44d3063da
41 yield from [ 41 yield from [
42 library_path / path 42 library_path / path
43 for path in ['LDConfig.ldr', 'ldconfig.ldr'] 43 for path in ['LDConfig.ldr', 'ldconfig.ldr']
44 if (library_path / path).is_file() 44 if (library_path / path).is_file()
45 ] 45 ]
46
47 def hairline_score(smallest_angle):
48 from math import log10
49 return max(0, -log10(smallest_angle))
50 46
51 class Model: 47 class Model:
52 def __init__(self, body): 48 def __init__(self, body):
53 self.body = body 49 self.body = body
54 self.body_offset = 0 50 self.body_offset = 0

mercurial