1
0
mirror of https://github.com/nophead/Mendel90.git synced 2025-01-16 20:38:15 +01:00
This commit is contained in:
Chris Palmer 2020-07-10 09:44:45 +01:00
commit a77346794c
3 changed files with 8 additions and 1 deletions

View File

@ -11,6 +11,11 @@ from __future__ import print_function
import sys
def _cmz(x):
''' Convert "-0" to "0". '''
return '0' if x == '-0' else x
class Vertex:
def __init__(self, x, y, z):
self.x, self.y, self.z = x, y, z
@ -44,7 +49,7 @@ class STL:
self.facets = []
f = open(fname)
words = [s.strip() for s in f.read().split()]
words = [_cmz(s.strip()) for s in f.read().split()]
f.close()
if words[0] == 'solid' and words[1] == 'OpenSCAD_Model':

View File

@ -7,6 +7,7 @@
//
// Linear bearings
//
LM12UU = [30, 21, 12];
LM10UU = [29, 19, 10];
LM8UU = [24, 15, 8];
LM6UU = [19, 12, 6];

View File

@ -23,6 +23,7 @@
MDF6 = [ "MD", "MDF sheet", 6, [0.4, 0.4, 0.2, 1 ], true]; // ~1/4"
MDF10 = [ "MD", "MDF sheet", 10, [0.4, 0.4, 0.2, 1 ], true]; // ~3/8"
MDF12 = [ "MD", "MDF sheet", 12, [0.4, 0.4, 0.2, 1 ], true]; // ~1/2"
MDF19 = [ "MD", "MDF sheet", 19, [0.4, 0.4, 0.2, 1 ], true]; // ~3/4"
PMMA6 = [ "AC", "Acrylic sheet", 6, [1, 1, 1, 0.5 ], false]; // ~1/4"
PMMA8 = [ "AC", "Acrylic sheet", 8, [1, 1, 1, 0.5 ], false]; // ~5/16"
PMMA10 = [ "AC", "Acrylic sheet", 10, [1, 1, 1, 0.5 ], false]; // ~3/8"