author: 'ben lipkowitz' license: 'GPL2+' urls: - 'http://heybryan.org/mediawiki/index.php/Skdb' - 'http://fennetic.net/git/gitweb.cgi?p=skdb.git;a=blob_plain;f=screw.yaml' - 'git://fennetic.net/git/skdb.git/' #re: tolerances. http://www.lego.com/info/pdf/LEGO_company_profile_UK.pdf #http://www.lugnet.com/~330/FAQ/Build/dimensions #width: 8.0mm +- 2microns #6:5 (width:height) #height: 9.582mm +- 2microns #6:5 (width:height) #depth: 10mm +- 2microns # geometry: #!cylinder #this is not necessary since a Peg interface should know its geometry # height: 1.7mm # diameter: 5mm #1FLU = 1 * "fundamental lego unit" parts: - !lego name: 2x2 round brick description: some crap i found in the national design repository ldraw: 3941 size: 2x2 #the Lego class should be able to generate the interfaces from this material: ABS files: - "brick_thick_round.stp" interfaces: - !lego_feature point: [-8.0, 0.0, -8.0] type: stud cup x_vec: [-1.0, 0.0, 0.0] y_vec: [-0.0, -0.0, -1.0] - !lego_feature point: [-4.0, 0.0, -4.0] type: anti stud x_vec: [-1.0, 0.0, 0.0] y_vec: [-0.0, -0.0, -1.0] - !lego_feature point: [-12.0, 0.0, -4.0] type: anti stud x_vec: [-1.0, 0.0, 0.0] y_vec: [-0.0, -0.0, -1.0] - !lego_feature point: [-12.0, 0.0, -12.0] type: anti stud x_vec: [-1.0, 0.0, 0.0] y_vec: [-0.0, -0.0, -1.0] - !lego_feature point: [-4.0, 0.0, -12.0] type: anti stud x_vec: [-1.0, 0.0, 0.0] y_vec: [-0.0, -0.0, -1.0] - !lego_feature point: [-12.0, 9.6, -4.0] type: stud x_vec: [-1.0, 0.0, -0.0] y_vec: [-0.0, -0.0, 1.0] - !lego_feature point: [-4.0, 9.6, -4.0] type: stud x_vec: [-1.0, 0.0, -0.0] y_vec: [-0.0, -0.0, 1.0] - !lego_feature point: [-4.0, 9.6, -12.0] type: stud x_vec: [-1.0, 0.0, -0.0] y_vec: [-0.0, -0.0, 1.0] - !lego_feature point: [-12.0, 9.6, -12.0] type: stud x_vec: [-1.0, 0.0, -0.0] y_vec: [-0.0, -0.0, 1.0] - !lego_feature point: [-8.0, 9.6, -8.0] type: anti stud cup x_vec: [-1.0, 0.0, -0.0] y_vec: [-0.0, -0.0, 1.0] - !lego_feature point: [-8.0, 9.6, -8.0] type: anti axle x_vec: [-1.0, 0.0, -0.0] y_vec: [-0.0, -0.0, 1.0] - !lego name: 2x4 brick description: the classic lego brick. i think the cad model scale might be off a bit ldraw: 3001 size: 2x4 material: ABS files: - "brick_thick.stp" interfaces: - !lego_feature point: [-4.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-12.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-20.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-28.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-4.0, 0.0, -12.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-12.0, 0.0, -12.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-20.0, 0.0, -12.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-28.0, 0.0, -12.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [-4.0, 9.6, -4.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [-12.0, 9.6, -4.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [-20.0, 9.6, -4.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [-28.0, 9.6, -4.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [-4.0, 9.6, -12.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [-12.0, 9.6, -12.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [-20.0, 9.6, -12.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [-28.0, 9.6, -12.0] type: stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego name: 1x4 technic beam description: has 3 holes and hollow studs. i think the cad model scale might be off a bit ldraw: 3701 size: 1x4 material: ABS files: - "brick_thick_single_hole.stp" interfaces: - !lego_feature point: [4.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [12.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [20.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [28.0, 0.0, -4.0] type: anti stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, 1.0] - !lego_feature point: [4.0, 9.6, -4.0] type: technic stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [12.0, 9.6, -4.0] type: technic stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [20.0, 9.6, -4.0] type: technic stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [28.0, 9.6, -4.0] type: technic stud x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 0.0, -1.0] - !lego_feature point: [8.0, 5.5, -8.0] type: pin hole x_vec: [1.0, -0.0, 0.0] y_vec: [0.0, 1.0, 0.0] - !lego_feature point: [16.0, 5.5, -8.0] type: pin hole x_vec: [1.0, -0.0, 0.0] y_vec: [0.0, 1.0, 0.0] - !lego_feature point: [24.0, 5.5, -8.0] type: pin hole x_vec: [1.0, -0.0, 0.0] y_vec: [0.0, 1.0, 0.0] - !lego_feature point: [8.0, 5.5, -0.0] type: pin hole x_vec: [1.0, 0.0, -0.0] y_vec: [0.0, -1.0, 0.0] - !lego_feature point: [16.0, 5.5, -0.0] type: pin hole x_vec: [1.0, 0.0, -0.0] y_vec: [0.0, -1.0, 0.0] - !lego_feature point: [24.0, 5.5, -0.0] type: pin hole x_vec: [1.0, 0.0, -0.0] y_vec: [0.0, -1.0, 0.0] - !lego name: technic pin description: i think the cad model scale might be off a bit ldraw: 3673 size: material: ABS files: - "gear_pin1.stp" interfaces: - !lego_feature point: [0.0, 0.0, 0.0] type: pin x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, 1.0, 0.0] - !lego_feature point: [0.0, 0.0, -16.0] type: pin x_vec: [1.0, 0.0, 0.0] y_vec: [0.0, -1.0, 0.0]