case design
This commit is contained in:
parent
27eea7dd1c
commit
06fdda1d93
|
@ -1,5 +0,0 @@
|
|||
|
||||
|
||||
int main() {
|
||||
return 0;
|
||||
}
|
|
@ -17,13 +17,77 @@ Tools
|
|||
https://wokwi.com/easyeda2kicad
|
||||
|
||||
|
||||
Capacitor List
|
||||
--------------
|
||||
- 22u 3x (2x esp32 power + 1x ESP_VDD)
|
||||
- options: CL21A226MAQNNNE 25V $0.05 (basic part)
|
||||
CL10A226MQ8NRNC 6.3V $0.02 (basic part)
|
||||
- 10u 2x (1xHX_VDD + 1xHX signal)
|
||||
- options:
|
||||
CL21A106KAYNNNE 25V $0.03
|
||||
CL10A106KP8NNNC 10V $0.0185
|
||||
|
||||
- 0.1u 9x (2x programmer button + 1x ESP_EN + 1xESP_VDD + 2xHX_VDD + 3xHX_SIGNAL )
|
||||
- options C1005X7R1H104KT000F 50V $0.012 (extended part, but huge stock)
|
||||
|
||||
|
||||
Resistor List
|
||||
-------------
|
||||
- 100
|
||||
0603WAF1000T5E
|
||||
- 200 ( 2x HX_SIGNAL)
|
||||
0603WAF2000T5E
|
||||
- 8.2k (1x HX_SIGNAL)
|
||||
- 0603WAF8201T5E
|
||||
- 20k (1x HX_SIGNAL)
|
||||
- 0603WAF2002T5E 1% 1/10W $0.0022
|
||||
- 10k (1x ESP_VDD)
|
||||
- 0603WAF1002T5E 1% 1/10W $0.0025
|
||||
|
||||
Related open source PCBs
|
||||
========================
|
||||
|
||||
https://github.com/adafruit/Adafruit-HUZZAH32-ESP32-Feather-PCB.git
|
||||
|
||||
|
||||
ESP32 Circuit
|
||||
=============
|
||||
- based on
|
||||
https://www.espressif.com/sites/default/files/documentation/esp32-wrover_datasheet_en.pdf
|
||||
and
|
||||
https://dl.espressif.com/dl/schematics/esp32_devkitc_v4-sch.pdf
|
||||
- further resource https://github.com/adafruit/adafruit-HUZZAH32-ESP32-Feather-PCB
|
||||
- removed the USB programmer (connected externally once then OTA)
|
||||
- Delay power up circuit:
|
||||
data sheet example is 10k and 0.1u with tau=0.001s
|
||||
to use same resistor multiple times, changed to 20k
|
||||
|
||||
|
||||
Requirements HX711
|
||||
==================
|
||||
-
|
||||
|
||||
Power Circuit Design
|
||||
====================
|
||||
- Goal: power by typical outdoor power supply
|
||||
- googled around and found Texas Instruments LM2596SX
|
||||
- they have a tool here to design circuit
|
||||
- https://webench.ti.com/power-designer
|
||||
- Selected Parameters
|
||||
- Input 12V - 25V
|
||||
- Output 5V at 0.8A
|
||||
(0.8A because for higher currents I couldn't find the suggested components on JLCPCB)
|
||||
- Temp 30
|
||||
- From the tool selected components that JLCPB offers
|
||||
- Input Cin: UUD1H221MNL1GS (Nichicon)
|
||||
- Diode D1: SS26FL (Fairchild Semiconductors)
|
||||
- Inductor: SLF12575T-151M1R5-PF (TDK)
|
||||
- Outout Cout: 2x TPSA105K035R3000 (AVX)
|
||||
- Open Questions
|
||||
- ESP32 datasheet mentions 0.5A, so 0.8A design should be enough?
|
||||
|
||||
- to be safe I convert from 24V -> 5V using switching power supply
|
||||
and later 5V -> 3.3V using linear regulator
|
||||
that way I can also optionally connect 5V USB
|
||||
is it better to directly go to 3.3V ?
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,67 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
include <tables/nominalpipesize_table.scad>
|
||||
include <tables/hexagonnut3_table.scad>
|
||||
module ANSI_B36_10M(nps="NPS 1/2", sched="40", l=50, part_mode="default"){
|
||||
check_parameter_type("ANSI B36.10M","nps",nps,"Table Index");
|
||||
check_parameter_type("ANSI B36.10M","sched",sched,"Table Index");
|
||||
check_parameter_type("ANSI B36.10M","l",l,"Length (in)");
|
||||
|
||||
measures_0 = nominalpipesize_table_0(nps);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ANSI B36.10M, table 0");
|
||||
}
|
||||
measures2d_0 = nominalpipesize_table2d_0(nps,sched);
|
||||
if(measures2d_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ANSI B36.10M, table2d 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("",nps," ",sched," Length: ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
pipe_wall(convert_to_default_unit(measures_0[0],"in"), convert_to_default_unit(measures2d_0,"in"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function ANSI_B36_10M_dims(nps="NPS 1/2", sched="40", l=50, part_mode="default") = [
|
||||
["wall", convert_to_default_unit(nominalpipesize_table2d_0(nps,sched),"in")],
|
||||
["od", convert_to_default_unit(nominalpipesize_table_0(nps)[0],"in")],
|
||||
["sched", sched],
|
||||
["l", l],
|
||||
["nps", nps]];
|
||||
|
||||
module ANSI_B18_2_2(key="3/8 in", part_mode="default"){
|
||||
check_parameter_type("ANSI B18.2.2","key",key,"Table Index");
|
||||
|
||||
measures_0 = hexagonnut3_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ANSI B18.2.2, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon nut ","ANSI B18.2.2"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
nut1(convert_to_default_unit(measures_0[0],"in"), convert_to_default_unit(measures_0[1],"in"), convert_to_default_unit(measures_0[2],"in"));
|
||||
}
|
||||
}
|
||||
|
||||
function ANSI_B18_2_2_dims(key="3/8 in", part_mode="default") = [
|
||||
["s", convert_to_default_unit(hexagonnut3_table_0(key)[1],"in")],
|
||||
["d1", convert_to_default_unit(hexagonnut3_table_0(key)[0],"in")],
|
||||
["key", key],
|
||||
["m_max", convert_to_default_unit(hexagonnut3_table_0(key)[2],"in")]];
|
||||
|
|
@ -0,0 +1,65 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
module ASME_B36_10M(nps="NPS 1/2", sched="40", l=50, part_mode="default"){
|
||||
check_parameter_type("ASME B36.10M","nps",nps,"Table Index");
|
||||
check_parameter_type("ASME B36.10M","sched",sched,"Table Index");
|
||||
check_parameter_type("ASME B36.10M","l",l,"Length (in)");
|
||||
|
||||
measures_0 = nominalpipesize_table_0(nps);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ASME B36.10M, table 0");
|
||||
}
|
||||
measures2d_0 = nominalpipesize_table2d_0(nps,sched);
|
||||
if(measures2d_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ASME B36.10M, table2d 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("",nps," ",sched," Length: ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
pipe_wall(convert_to_default_unit(measures_0[0],"in"), convert_to_default_unit(measures2d_0,"in"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function ASME_B36_10M_dims(nps="NPS 1/2", sched="40", l=50, part_mode="default") = [
|
||||
["wall", convert_to_default_unit(nominalpipesize_table2d_0(nps,sched),"in")],
|
||||
["od", convert_to_default_unit(nominalpipesize_table_0(nps)[0],"in")],
|
||||
["sched", sched],
|
||||
["l", l],
|
||||
["nps", nps]];
|
||||
|
||||
module ASME_B18_2_2(key="3/8 in", part_mode="default"){
|
||||
check_parameter_type("ASME B18.2.2","key",key,"Table Index");
|
||||
|
||||
measures_0 = hexagonnut3_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ASME B18.2.2, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon nut ","ASME B18.2.2"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
nut1(convert_to_default_unit(measures_0[0],"in"), convert_to_default_unit(measures_0[1],"in"), convert_to_default_unit(measures_0[2],"in"));
|
||||
}
|
||||
}
|
||||
|
||||
function ASME_B18_2_2_dims(key="3/8 in", part_mode="default") = [
|
||||
["s", convert_to_default_unit(hexagonnut3_table_0(key)[1],"in")],
|
||||
["d1", convert_to_default_unit(hexagonnut3_table_0(key)[0],"in")],
|
||||
["key", key],
|
||||
["m_max", convert_to_default_unit(hexagonnut3_table_0(key)[2],"in")]];
|
||||
|
|
@ -0,0 +1,408 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
include <tables/hexscrew1_table.scad>
|
||||
include <tables/hexbolt1_table.scad>
|
||||
include <tables/din11850range2_table.scad>
|
||||
include <tables/hexagonthinnut2_table.scad>
|
||||
include <tables/hexagonnut2_table.scad>
|
||||
include <tables/singlerowradialbearing_table.scad>
|
||||
include <tables/axialthrustbearing_table.scad>
|
||||
include <tables/plainwasher2_table.scad>
|
||||
include <tables/plainwasherforcheesehead_table.scad>
|
||||
include <tables/heavydutyplainwasher_table.scad>
|
||||
module DIN933(key="M3", l=20, thread_type="coarse", part_mode="default"){
|
||||
BOLTS_warning("The standard DIN933 is withdrawn.
|
||||
Although withdrawn standards are often still in use,
|
||||
it might be better to use its successor None instead");
|
||||
check_parameter_type("DIN933","key",key,"Table Index");
|
||||
check_parameter_type("DIN933","l",l,"Length (mm)");
|
||||
check_parameter_type("DIN933","thread_type",thread_type,"Table Index");
|
||||
|
||||
measures_0 = hexscrew1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN933, table 0");
|
||||
}
|
||||
measures2d_0 = hexscrew1_table2d_0(key,thread_type);
|
||||
if(measures2d_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN933, table2d 0");
|
||||
}
|
||||
measures2d_1 = hexscrew1_table2d_1(key,thread_type);
|
||||
if(measures2d_1 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN933, table2d 1");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head screw ","DIN933"," - ",key,"",measures2d_1," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[4],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DIN933_dims(key="M3", l=20, thread_type="coarse", part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexscrew1_table_0(key)[3],"mm")],
|
||||
["h", convert_to_default_unit(hexscrew1_table_0(key)[4],"mm")],
|
||||
["k", convert_to_default_unit(hexscrew1_table_0(key)[1],"mm")],
|
||||
["thread_type", thread_type],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexscrew1_table_0(key)[2],"mm")],
|
||||
["key", key],
|
||||
["pitch", convert_to_default_unit(hexscrew1_table2d_0(key,thread_type),"mm")],
|
||||
["pitch_name", hexscrew1_table2d_1(key,thread_type)],
|
||||
["d1", convert_to_default_unit(hexscrew1_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN931(key="M3", l=20, part_mode="default"){
|
||||
BOLTS_warning("The standard DIN931 is withdrawn.
|
||||
Although withdrawn standards are often still in use,
|
||||
it might be better to use its successor DINEN24014 instead");
|
||||
check_parameter_type("DIN931","key",key,"Table Index");
|
||||
check_parameter_type("DIN931","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexbolt1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN931, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head bolt ","DIN931"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DIN931_dims(key="M3", l=20, part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexbolt1_table_0(key)[6],"mm")],
|
||||
["key", key],
|
||||
["k", convert_to_default_unit(hexbolt1_table_0(key)[1],"mm")],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexbolt1_table_0(key)[2],"mm")],
|
||||
["b1", convert_to_default_unit(hexbolt1_table_0(key)[3],"mm")],
|
||||
["b2", convert_to_default_unit(hexbolt1_table_0(key)[4],"mm")],
|
||||
["b3", convert_to_default_unit(hexbolt1_table_0(key)[5],"mm")],
|
||||
["d1", convert_to_default_unit(hexbolt1_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN11850_Range_2(dn="10", l=1000, part_mode="default"){
|
||||
check_parameter_type("DIN11850 Range 2","dn",dn,"Table Index");
|
||||
check_parameter_type("DIN11850 Range 2","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = din11850range2_table_0(dn);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN11850 Range 2, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("DIN11850 Range 2 DN ",dn," length ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
pipe(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DIN11850_Range_2_dims(dn="10", l=1000, part_mode="default") = [
|
||||
["dn", dn],
|
||||
["od", convert_to_default_unit(din11850range2_table_0(dn)[1],"mm")],
|
||||
["l", l],
|
||||
["id", convert_to_default_unit(din11850range2_table_0(dn)[0],"mm")]];
|
||||
|
||||
module DIN439B(key="M3", part_mode="default"){
|
||||
BOLTS_warning("The standard DIN439B is withdrawn.
|
||||
Although withdrawn standards are often still in use,
|
||||
it might be better to use its successor DINENISO4035 instead");
|
||||
check_parameter_type("DIN439B","key",key,"Table Index");
|
||||
|
||||
measures_0 = hexagonthinnut2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN439B, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon thin nut ","DIN439B"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
nut1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN439B_dims(key="M3", part_mode="default") = [
|
||||
["e_min", convert_to_default_unit(hexagonthinnut2_table_0(key)[3],"mm")],
|
||||
["s", convert_to_default_unit(hexagonthinnut2_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexagonthinnut2_table_0(key)[0],"mm")],
|
||||
["key", key],
|
||||
["m_max", convert_to_default_unit(hexagonthinnut2_table_0(key)[2],"mm")]];
|
||||
|
||||
module DIN934(key="M3", part_mode="default"){
|
||||
BOLTS_warning("The standard DIN934 is withdrawn.
|
||||
Although withdrawn standards are often still in use,
|
||||
it might be better to use its successor ISO4032 instead");
|
||||
check_parameter_type("DIN934","key",key,"Table Index");
|
||||
|
||||
measures_0 = hexagonnut2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN934, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon nut ","DIN934"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
nut1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN934_dims(key="M3", part_mode="default") = [
|
||||
["e_min", convert_to_default_unit(hexagonnut2_table_0(key)[3],"mm")],
|
||||
["s", convert_to_default_unit(hexagonnut2_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexagonnut2_table_0(key)[0],"mm")],
|
||||
["key", key],
|
||||
["m_max", convert_to_default_unit(hexagonnut2_table_0(key)[2],"mm")]];
|
||||
|
||||
module DIN625_1(key="608", type="open", part_mode="default"){
|
||||
check_parameter_type("DIN625-1","key",key,"Table Index");
|
||||
check_parameter_type("DIN625-1","type",type,"Table Index");
|
||||
|
||||
measures_0 = singlerowradialbearing_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN625-1, table 0");
|
||||
}
|
||||
measures_1 = singlerowradialbearing_table_1(type);
|
||||
if(measures_1 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN625-1, table 1");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Ball bearing ","DIN625-1"," ",key,"",measures_1[0],""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
singlerowradialbearing(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN625_1_dims(key="608", type="open", part_mode="default") = [
|
||||
["B", convert_to_default_unit(singlerowradialbearing_table_0(key)[2],"mm")],
|
||||
["postfix", singlerowradialbearing_table_1(type)[0]],
|
||||
["type", type],
|
||||
["r_fillet", convert_to_default_unit(singlerowradialbearing_table_0(key)[3],"mm")],
|
||||
["key", key],
|
||||
["d2", convert_to_default_unit(singlerowradialbearing_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(singlerowradialbearing_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN711(key="51200", part_mode="default"){
|
||||
check_parameter_type("DIN711","key",key,"Table Index");
|
||||
|
||||
measures_0 = axialthrustbearing_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN711, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Axial thrust bearing ","DIN711"," ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
axialthrustbearing(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[4],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN711_dims(key="51200", part_mode="default") = [
|
||||
["D_w", convert_to_default_unit(axialthrustbearing_table_0(key)[3],"mm")],
|
||||
["d_w", convert_to_default_unit(axialthrustbearing_table_0(key)[0],"mm")],
|
||||
["r_fillet", convert_to_default_unit(axialthrustbearing_table_0(key)[5],"mm")],
|
||||
["D_g", convert_to_default_unit(axialthrustbearing_table_0(key)[2],"mm")],
|
||||
["T", convert_to_default_unit(axialthrustbearing_table_0(key)[4],"mm")],
|
||||
["key", key],
|
||||
["d_g", convert_to_default_unit(axialthrustbearing_table_0(key)[1],"mm")]];
|
||||
|
||||
module DIN125A(key="M3", part_mode="default"){
|
||||
check_parameter_type("DIN125A","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN125A, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DIN125A"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN125A_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher1_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher1_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher1_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN125B(key="M3", part_mode="default"){
|
||||
check_parameter_type("DIN125B","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherchamfered_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN125B, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer with chamfer ","DIN125B"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN125B_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherchamfered_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherchamfered_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherchamfered_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN126(key="M10", part_mode="default"){
|
||||
check_parameter_type("DIN126","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN126, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DIN126"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN126_dims(key="M10", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher2_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher2_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher2_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN433(key="M3", part_mode="default"){
|
||||
check_parameter_type("DIN433","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherforcheesehead_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN433, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DIN433"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN433_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN7349(key="M10", part_mode="default"){
|
||||
check_parameter_type("DIN7349","key",key,"Table Index");
|
||||
|
||||
measures_0 = heavydutyplainwasher_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN7349, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Heavy duty plain washer ","DIN7349"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DIN7349_dims(key="M10", part_mode="default") = [
|
||||
["s", convert_to_default_unit(heavydutyplainwasher_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(heavydutyplainwasher_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(heavydutyplainwasher_table_0(key)[0],"mm")]];
|
||||
|
||||
module DIN7991(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DIN7991","key",key,"Table Index");
|
||||
check_parameter_type("DIN7991","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexsocketcountersunk_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN7991, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("hex socket countersunk head screw ","DIN7991"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex_socket1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), convert_to_default_unit(measures_0[6],"mm"), convert_to_default_unit(measures_0[7],"mm"), convert_to_default_unit(measures_0[9],"mm"), convert_to_default_unit(measures_0[10],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DIN7991_dims(key="M3", l=20, part_mode="default") = [
|
||||
["b2", convert_to_default_unit(hexsocketcountersunk_table_0(key)[3],"mm")],
|
||||
["h_max", convert_to_default_unit(hexsocketcountersunk_table_0(key)[10],"mm")],
|
||||
["l", l],
|
||||
["L", convert_to_default_unit(hexsocketcountersunk_table_0(key)[9],"mm")],
|
||||
["k_max", convert_to_default_unit(hexsocketcountersunk_table_0(key)[5],"mm")],
|
||||
["s", convert_to_default_unit(hexsocketcountersunk_table_0(key)[6],"mm")],
|
||||
["t", convert_to_default_unit(hexsocketcountersunk_table_0(key)[7],"mm")],
|
||||
["key", key],
|
||||
["b3", convert_to_default_unit(hexsocketcountersunk_table_0(key)[4],"mm")],
|
||||
["alpha", hexsocketcountersunk_table_0(key)[8]],
|
||||
["d1", convert_to_default_unit(hexsocketcountersunk_table_0(key)[0],"mm")],
|
||||
["d2", convert_to_default_unit(hexsocketcountersunk_table_0(key)[1],"mm")],
|
||||
["b1", convert_to_default_unit(hexsocketcountersunk_table_0(key)[2],"mm")]];
|
||||
|
||||
module DIN912(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DIN912","key",key,"Table Index");
|
||||
check_parameter_type("DIN912","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexsocketheadcap_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DIN912, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("hex socket head cap screw ","DIN912"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex_socket2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), convert_to_default_unit(measures_0[6],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DIN912_dims(key="M3", l=20, part_mode="default") = [
|
||||
["b", convert_to_default_unit(hexsocketheadcap_table_0(key)[2],"mm")],
|
||||
["t_min", convert_to_default_unit(hexsocketheadcap_table_0(key)[5],"mm")],
|
||||
["k", convert_to_default_unit(hexsocketheadcap_table_0(key)[3],"mm")],
|
||||
["l", l],
|
||||
["L", convert_to_default_unit(hexsocketheadcap_table_0(key)[6],"mm")],
|
||||
["s", convert_to_default_unit(hexsocketheadcap_table_0(key)[4],"mm")],
|
||||
["key", key],
|
||||
["d2", convert_to_default_unit(hexsocketheadcap_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexsocketheadcap_table_0(key)[0],"mm")]];
|
||||
|
|
@ -0,0 +1,91 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
module DINEN24017(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DINEN24017","key",key,"Table Index");
|
||||
check_parameter_type("DINEN24017","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexscrew2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINEN24017, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head screw ","DINEN24017"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[4],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DINEN24017_dims(key="M3", l=20, part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexscrew2_table_0(key)[3],"mm")],
|
||||
["h", convert_to_default_unit(hexscrew2_table_0(key)[4],"mm")],
|
||||
["k", convert_to_default_unit(hexscrew2_table_0(key)[1],"mm")],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexscrew2_table_0(key)[2],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(hexscrew2_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINEN24014(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DINEN24014","key",key,"Table Index");
|
||||
check_parameter_type("DINEN24014","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexbolt2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINEN24014, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head bolt ","DINEN24014"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DINEN24014_dims(key="M3", l=20, part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexbolt2_table_0(key)[6],"mm")],
|
||||
["key", key],
|
||||
["k", convert_to_default_unit(hexbolt2_table_0(key)[1],"mm")],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexbolt2_table_0(key)[2],"mm")],
|
||||
["b1", convert_to_default_unit(hexbolt2_table_0(key)[3],"mm")],
|
||||
["b2", convert_to_default_unit(hexbolt2_table_0(key)[4],"mm")],
|
||||
["b3", convert_to_default_unit(hexbolt2_table_0(key)[5],"mm")],
|
||||
["d1", convert_to_default_unit(hexbolt2_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINEN27089(key="M3", part_mode="default"){
|
||||
check_parameter_type("DINEN27089","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINEN27089, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DINEN27089"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINEN27089_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher1_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher1_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher1_table_0(key)[0],"mm")]];
|
||||
|
|
@ -0,0 +1,213 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
module DINENISO4017(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DINENISO4017","key",key,"Table Index");
|
||||
check_parameter_type("DINENISO4017","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexscrew2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO4017, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head screw ","DINENISO4017"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[4],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO4017_dims(key="M3", l=20, part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexscrew2_table_0(key)[3],"mm")],
|
||||
["h", convert_to_default_unit(hexscrew2_table_0(key)[4],"mm")],
|
||||
["k", convert_to_default_unit(hexscrew2_table_0(key)[1],"mm")],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexscrew2_table_0(key)[2],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(hexscrew2_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINENISO4014(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DINENISO4014","key",key,"Table Index");
|
||||
check_parameter_type("DINENISO4014","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexbolt2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO4014, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head bolt ","DINENISO4014"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO4014_dims(key="M3", l=20, part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexbolt2_table_0(key)[6],"mm")],
|
||||
["key", key],
|
||||
["k", convert_to_default_unit(hexbolt2_table_0(key)[1],"mm")],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexbolt2_table_0(key)[2],"mm")],
|
||||
["b1", convert_to_default_unit(hexbolt2_table_0(key)[3],"mm")],
|
||||
["b2", convert_to_default_unit(hexbolt2_table_0(key)[4],"mm")],
|
||||
["b3", convert_to_default_unit(hexbolt2_table_0(key)[5],"mm")],
|
||||
["d1", convert_to_default_unit(hexbolt2_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINENISO4035(key="M3", part_mode="default"){
|
||||
check_parameter_type("DINENISO4035","key",key,"Table Index");
|
||||
|
||||
measures_0 = hexagonthinnut1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO4035, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon thin nut ","DINENISO4035"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
nut1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO4035_dims(key="M3", part_mode="default") = [
|
||||
["e_min", convert_to_default_unit(hexagonthinnut1_table_0(key)[3],"mm")],
|
||||
["s", convert_to_default_unit(hexagonthinnut1_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexagonthinnut1_table_0(key)[0],"mm")],
|
||||
["key", key],
|
||||
["m_max", convert_to_default_unit(hexagonthinnut1_table_0(key)[2],"mm")]];
|
||||
|
||||
module DINENISO7089(key="M3", part_mode="default"){
|
||||
check_parameter_type("DINENISO7089","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO7089, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DINENISO7089"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO7089_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher1_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher1_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher1_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINENISO7090(key="M3", part_mode="default"){
|
||||
check_parameter_type("DINENISO7090","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherchamfered_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO7090, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer with chamfer ","DINENISO7090"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO7090_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherchamfered_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherchamfered_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherchamfered_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINENISO7091(key="M10", part_mode="default"){
|
||||
check_parameter_type("DINENISO7091","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO7091, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DINENISO7091"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO7091_dims(key="M10", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher2_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher2_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher2_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINENISO7092(key="M3", part_mode="default"){
|
||||
check_parameter_type("DINENISO7092","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherforcheesehead_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO7092, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DINENISO7092"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO7092_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINENISO4762(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DINENISO4762","key",key,"Table Index");
|
||||
check_parameter_type("DINENISO4762","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexsocketheadcap_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINENISO4762, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("hex socket head cap screw ","DINENISO4762"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex_socket2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), convert_to_default_unit(measures_0[6],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DINENISO4762_dims(key="M3", l=20, part_mode="default") = [
|
||||
["b", convert_to_default_unit(hexsocketheadcap_table_0(key)[2],"mm")],
|
||||
["t_min", convert_to_default_unit(hexsocketheadcap_table_0(key)[5],"mm")],
|
||||
["k", convert_to_default_unit(hexsocketheadcap_table_0(key)[3],"mm")],
|
||||
["l", l],
|
||||
["L", convert_to_default_unit(hexsocketheadcap_table_0(key)[6],"mm")],
|
||||
["s", convert_to_default_unit(hexsocketheadcap_table_0(key)[4],"mm")],
|
||||
["key", key],
|
||||
["d2", convert_to_default_unit(hexsocketheadcap_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexsocketheadcap_table_0(key)[0],"mm")]];
|
||||
|
|
@ -0,0 +1,114 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
module DINISO7090(key="M3", part_mode="default"){
|
||||
check_parameter_type("DINISO7090","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherchamfered_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINISO7090, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer with chamfer ","DINISO7090"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINISO7090_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherchamfered_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherchamfered_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherchamfered_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINISO7091(key="M10", part_mode="default"){
|
||||
check_parameter_type("DINISO7091","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINISO7091, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DINISO7091"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINISO7091_dims(key="M10", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher2_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher2_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher2_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINISO7092(key="M3", part_mode="default"){
|
||||
check_parameter_type("DINISO7092","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherforcheesehead_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINISO7092, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","DINISO7092"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function DINISO7092_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[0],"mm")]];
|
||||
|
||||
module DINISO10642(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("DINISO10642","key",key,"Table Index");
|
||||
check_parameter_type("DINISO10642","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexsocketcountersunk_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in DINISO10642, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("hex socket countersunk head screw ","DINISO10642"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex_socket1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), convert_to_default_unit(measures_0[6],"mm"), convert_to_default_unit(measures_0[7],"mm"), convert_to_default_unit(measures_0[9],"mm"), convert_to_default_unit(measures_0[10],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function DINISO10642_dims(key="M3", l=20, part_mode="default") = [
|
||||
["b2", convert_to_default_unit(hexsocketcountersunk_table_0(key)[3],"mm")],
|
||||
["h_max", convert_to_default_unit(hexsocketcountersunk_table_0(key)[10],"mm")],
|
||||
["l", l],
|
||||
["L", convert_to_default_unit(hexsocketcountersunk_table_0(key)[9],"mm")],
|
||||
["k_max", convert_to_default_unit(hexsocketcountersunk_table_0(key)[5],"mm")],
|
||||
["s", convert_to_default_unit(hexsocketcountersunk_table_0(key)[6],"mm")],
|
||||
["t", convert_to_default_unit(hexsocketcountersunk_table_0(key)[7],"mm")],
|
||||
["key", key],
|
||||
["b3", convert_to_default_unit(hexsocketcountersunk_table_0(key)[4],"mm")],
|
||||
["alpha", hexsocketcountersunk_table_0(key)[8]],
|
||||
["d1", convert_to_default_unit(hexsocketcountersunk_table_0(key)[0],"mm")],
|
||||
["d2", convert_to_default_unit(hexsocketcountersunk_table_0(key)[1],"mm")],
|
||||
["b1", convert_to_default_unit(hexsocketcountersunk_table_0(key)[2],"mm")]];
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
module EN7089(key="M3", part_mode="default"){
|
||||
check_parameter_type("EN7089","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in EN7089, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","EN7089"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function EN7089_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher1_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher1_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher1_table_0(key)[0],"mm")]];
|
||||
|
|
@ -0,0 +1,304 @@
|
|||
include <common/conf.scad>
|
||||
include <common/local.scad>
|
||||
include <common/common.scad>
|
||||
include <common/version.scad>
|
||||
include <base/nut.scad>
|
||||
include <base/hex.scad>
|
||||
include <base/aluminiumProfiles.scad>
|
||||
include <base/pipe.scad>
|
||||
include <base/washer.scad>
|
||||
include <base/hex_socket.scad>
|
||||
include <base/batteries.scad>
|
||||
include <base/bearings.scad>
|
||||
include <tables/hexscrew2_table.scad>
|
||||
include <tables/hexbolt2_table.scad>
|
||||
include <tables/hexagonthinnut1_table.scad>
|
||||
include <tables/hexagonnut1_table.scad>
|
||||
include <tables/plainwasher1_table.scad>
|
||||
include <tables/plainwasherchamfered_table.scad>
|
||||
include <tables/hexsocketcountersunk_table.scad>
|
||||
include <tables/hexsocketheadcap_table.scad>
|
||||
module ISO4017(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("ISO4017","key",key,"Table Index");
|
||||
check_parameter_type("ISO4017","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexscrew2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO4017, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head screw ","ISO4017"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[4],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function ISO4017_dims(key="M3", l=20, part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexscrew2_table_0(key)[3],"mm")],
|
||||
["h", convert_to_default_unit(hexscrew2_table_0(key)[4],"mm")],
|
||||
["k", convert_to_default_unit(hexscrew2_table_0(key)[1],"mm")],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexscrew2_table_0(key)[2],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(hexscrew2_table_0(key)[0],"mm")]];
|
||||
|
||||
module ISO4014(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("ISO4014","key",key,"Table Index");
|
||||
check_parameter_type("ISO4014","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexbolt2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO4014, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon head bolt ","ISO4014"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function ISO4014_dims(key="M3", l=20, part_mode="default") = [
|
||||
["e", convert_to_default_unit(hexbolt2_table_0(key)[6],"mm")],
|
||||
["key", key],
|
||||
["k", convert_to_default_unit(hexbolt2_table_0(key)[1],"mm")],
|
||||
["l", l],
|
||||
["s", convert_to_default_unit(hexbolt2_table_0(key)[2],"mm")],
|
||||
["b1", convert_to_default_unit(hexbolt2_table_0(key)[3],"mm")],
|
||||
["b2", convert_to_default_unit(hexbolt2_table_0(key)[4],"mm")],
|
||||
["b3", convert_to_default_unit(hexbolt2_table_0(key)[5],"mm")],
|
||||
["d1", convert_to_default_unit(hexbolt2_table_0(key)[0],"mm")]];
|
||||
|
||||
module ISO4035(key="M3", part_mode="default"){
|
||||
check_parameter_type("ISO4035","key",key,"Table Index");
|
||||
|
||||
measures_0 = hexagonthinnut1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO4035, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon thin nut ","ISO4035"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
nut1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function ISO4035_dims(key="M3", part_mode="default") = [
|
||||
["e_min", convert_to_default_unit(hexagonthinnut1_table_0(key)[3],"mm")],
|
||||
["s", convert_to_default_unit(hexagonthinnut1_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexagonthinnut1_table_0(key)[0],"mm")],
|
||||
["key", key],
|
||||
["m_max", convert_to_default_unit(hexagonthinnut1_table_0(key)[2],"mm")]];
|
||||
|
||||
module ISO4032(key="M3", part_mode="default"){
|
||||
check_parameter_type("ISO4032","key",key,"Table Index");
|
||||
|
||||
measures_0 = hexagonnut1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO4032, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Hexagon nut ","ISO4032"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
nut1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function ISO4032_dims(key="M3", part_mode="default") = [
|
||||
["e_min", convert_to_default_unit(hexagonnut1_table_0(key)[3],"mm")],
|
||||
["s", convert_to_default_unit(hexagonnut1_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexagonnut1_table_0(key)[0],"mm")],
|
||||
["key", key],
|
||||
["m_max", convert_to_default_unit(hexagonnut1_table_0(key)[2],"mm")]];
|
||||
|
||||
module ISO104(key="51200", part_mode="default"){
|
||||
check_parameter_type("ISO104","key",key,"Table Index");
|
||||
|
||||
measures_0 = axialthrustbearing_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO104, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Axial thrust bearing ","ISO104"," ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
axialthrustbearing(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[4],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function ISO104_dims(key="51200", part_mode="default") = [
|
||||
["D_w", convert_to_default_unit(axialthrustbearing_table_0(key)[3],"mm")],
|
||||
["d_w", convert_to_default_unit(axialthrustbearing_table_0(key)[0],"mm")],
|
||||
["r_fillet", convert_to_default_unit(axialthrustbearing_table_0(key)[5],"mm")],
|
||||
["D_g", convert_to_default_unit(axialthrustbearing_table_0(key)[2],"mm")],
|
||||
["T", convert_to_default_unit(axialthrustbearing_table_0(key)[4],"mm")],
|
||||
["key", key],
|
||||
["d_g", convert_to_default_unit(axialthrustbearing_table_0(key)[1],"mm")]];
|
||||
|
||||
module ISO7089(key="M3", part_mode="default"){
|
||||
check_parameter_type("ISO7089","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher1_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO7089, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","ISO7089"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function ISO7089_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher1_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher1_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher1_table_0(key)[0],"mm")]];
|
||||
|
||||
module ISO7090(key="M3", part_mode="default"){
|
||||
check_parameter_type("ISO7090","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherchamfered_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO7090, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer with chamfer ","ISO7090"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function ISO7090_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherchamfered_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherchamfered_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherchamfered_table_0(key)[0],"mm")]];
|
||||
|
||||
module ISO7091(key="M10", part_mode="default"){
|
||||
check_parameter_type("ISO7091","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasher2_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO7091, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","ISO7091"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function ISO7091_dims(key="M10", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasher2_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasher2_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasher2_table_0(key)[0],"mm")]];
|
||||
|
||||
module ISO7092(key="M3", part_mode="default"){
|
||||
check_parameter_type("ISO7092","key",key,"Table Index");
|
||||
|
||||
measures_0 = plainwasherforcheesehead_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO7092, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("Plain washer ","ISO7092"," - ",key,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
washer1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"));
|
||||
}
|
||||
}
|
||||
|
||||
function ISO7092_dims(key="M3", part_mode="default") = [
|
||||
["s", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[2],"mm")],
|
||||
["d2", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[1],"mm")],
|
||||
["key", key],
|
||||
["d1", convert_to_default_unit(plainwasherforcheesehead_table_0(key)[0],"mm")]];
|
||||
|
||||
module ISO10642(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("ISO10642","key",key,"Table Index");
|
||||
check_parameter_type("ISO10642","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexsocketcountersunk_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO10642, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("hex socket countersunk head screw ","ISO10642"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex_socket1(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), convert_to_default_unit(measures_0[6],"mm"), convert_to_default_unit(measures_0[7],"mm"), convert_to_default_unit(measures_0[9],"mm"), convert_to_default_unit(measures_0[10],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function ISO10642_dims(key="M3", l=20, part_mode="default") = [
|
||||
["b2", convert_to_default_unit(hexsocketcountersunk_table_0(key)[3],"mm")],
|
||||
["h_max", convert_to_default_unit(hexsocketcountersunk_table_0(key)[10],"mm")],
|
||||
["l", l],
|
||||
["L", convert_to_default_unit(hexsocketcountersunk_table_0(key)[9],"mm")],
|
||||
["k_max", convert_to_default_unit(hexsocketcountersunk_table_0(key)[5],"mm")],
|
||||
["s", convert_to_default_unit(hexsocketcountersunk_table_0(key)[6],"mm")],
|
||||
["t", convert_to_default_unit(hexsocketcountersunk_table_0(key)[7],"mm")],
|
||||
["key", key],
|
||||
["b3", convert_to_default_unit(hexsocketcountersunk_table_0(key)[4],"mm")],
|
||||
["alpha", hexsocketcountersunk_table_0(key)[8]],
|
||||
["d1", convert_to_default_unit(hexsocketcountersunk_table_0(key)[0],"mm")],
|
||||
["d2", convert_to_default_unit(hexsocketcountersunk_table_0(key)[1],"mm")],
|
||||
["b1", convert_to_default_unit(hexsocketcountersunk_table_0(key)[2],"mm")]];
|
||||
|
||||
module ISO4762(key="M3", l=20, part_mode="default"){
|
||||
check_parameter_type("ISO4762","key",key,"Table Index");
|
||||
check_parameter_type("ISO4762","l",l,"Length (mm)");
|
||||
|
||||
measures_0 = hexsocketheadcap_table_0(key);
|
||||
if(measures_0 == "Error"){
|
||||
BOLTS_error("Table look-up failed in ISO4762, table 0");
|
||||
}
|
||||
if(BOLTS_MODE == "bom"){
|
||||
if(!(part_mode == "diff")){
|
||||
echo(str("hex socket head cap screw ","ISO4762"," - ",key," ",l,""));
|
||||
}
|
||||
cube();
|
||||
} else {
|
||||
hex_socket2(convert_to_default_unit(measures_0[0],"mm"), convert_to_default_unit(measures_0[1],"mm"), convert_to_default_unit(measures_0[2],"mm"), convert_to_default_unit(measures_0[3],"mm"), convert_to_default_unit(measures_0[4],"mm"), convert_to_default_unit(measures_0[5],"mm"), convert_to_default_unit(measures_0[6],"mm"), l);
|
||||
}
|
||||
}
|
||||
|
||||
function ISO4762_dims(key="M3", l=20, part_mode="default") = [
|
||||
["b", convert_to_default_unit(hexsocketheadcap_table_0(key)[2],"mm")],
|
||||
["t_min", convert_to_default_unit(hexsocketheadcap_table_0(key)[5],"mm")],
|
||||
["k", convert_to_default_unit(hexsocketheadcap_table_0(key)[3],"mm")],
|
||||
["l", l],
|
||||
["L", convert_to_default_unit(hexsocketheadcap_table_0(key)[6],"mm")],
|
||||
["s", convert_to_default_unit(hexsocketheadcap_table_0(key)[4],"mm")],
|
||||
["key", key],
|
||||
["d2", convert_to_default_unit(hexsocketheadcap_table_0(key)[1],"mm")],
|
||||
["d1", convert_to_default_unit(hexsocketheadcap_table_0(key)[0],"mm")]];
|
||||
|
|
@ -0,0 +1,674 @@
|
|||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<http://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<http://www.gnu.org/philosophy/why-not-lgpl.html>.
|
|
@ -0,0 +1,472 @@
|
|||
// Modules for the Bosch Rexroth series of aluminium profiles
|
||||
// Sourced from http://www.kjnltd.co.uk/
|
||||
// Author - Damian Axford
|
||||
// Public Domain
|
||||
|
||||
|
||||
eta = 0.01;
|
||||
|
||||
|
||||
// Bore Types
|
||||
BR_20x20_Bore = [5.5, 1.5, 7];
|
||||
|
||||
function aluProBore_r(boreType) = boreType[0]/2;
|
||||
function aluProBore_outsetW(boreType) = boreType[1];
|
||||
function aluProBore_outsetR(boreType) = boreType[2]/2;
|
||||
|
||||
// Core Types
|
||||
BR_20x20_Core = [9,2,0.75];
|
||||
|
||||
function aluProCore_w(coreType) = coreType[0];
|
||||
function aluProCore_keyW(coreType) = coreType[1];
|
||||
function aluProCore_keyD(coreType) = coreType[2];
|
||||
|
||||
//Corner Types
|
||||
BR_20x20_Corner = [20, 7, 1.5, 0.5, 4];
|
||||
|
||||
// Side Types - for closed slots
|
||||
BR_20x20_Side = [20, 1.5];
|
||||
|
||||
// Side Styles
|
||||
BR_0 = [0,0,0,0];
|
||||
BR_1S = [0,1,1,1];
|
||||
BR_2S = [0,1,0,1];
|
||||
BR_3S = [0,1,0,0];
|
||||
BR_2SA = [1,1,0,0];
|
||||
|
||||
// Profiles - combination of elements
|
||||
|
||||
BR_20x20 = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_0, 1, 1, "BR_20x20"];
|
||||
BR_20x20_1S = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_1S, 1, 1, "BR_20x20_1S"];
|
||||
BR_20x20_2S = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_2S, 1, 1, "BR_20x20_2S"];
|
||||
BR_20x20_3S = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_3S, 1, 1, "BR_20x20_3S"];
|
||||
BR_20x20_2SA = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_2SA, 1, 1, "BR_20x20_2SA"];
|
||||
|
||||
BR_20x40 = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_0, 1, 2, "BR_20x40"];
|
||||
|
||||
BR_20x60 = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_0, 1, 3, "BR_20x60"];
|
||||
|
||||
BR_20x80 = [BR_20x20_Bore, BR_20x20_Core, BR_20x20_Corner, BR_20x20_Side, BR_0, 1, 4, "BR_20x80"];
|
||||
|
||||
function aluPro_label(type) = type[7];
|
||||
|
||||
//twistLockNutType
|
||||
|
||||
BR_20x20_TwistLockNut = [5.8,11.3,4,0.8,1.5];
|
||||
|
||||
|
||||
// gussets
|
||||
// width, wall_thickness, slot width, slot height, slot offset from base, nib depth
|
||||
BR_20x20_Gusset = [18, 3, 4.5, 7, 7.7, 1, "BR20x20Gusset"];
|
||||
|
||||
module aluProBore(boreType, $fn=16) {
|
||||
union() {
|
||||
circle(r=aluProBore_r(boreType));
|
||||
|
||||
intersection() {
|
||||
circle(r=aluProBore_outsetR(boreType));
|
||||
for (i=[0:3])
|
||||
rotate([0,0,i*90 + 45])
|
||||
square([aluProBore_outsetR(boreType)*2,aluProBore_outsetW(boreType)], center=true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
module aluProCore(coreType) {
|
||||
w = aluProCore_w(coreType);
|
||||
keyW = aluProCore_keyW(coreType);
|
||||
keyD = aluProCore_keyD(coreType);
|
||||
|
||||
difference() {
|
||||
square([w,w],center=true);
|
||||
|
||||
// remove keys
|
||||
for (i=[0:3])
|
||||
rotate([0,0,i*90])
|
||||
translate([w/2,0,0])
|
||||
polygon([[eta,keyW/2],
|
||||
[-keyD,0],
|
||||
[eta,-keyW/2]]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
module aluProCorner(cornerType, $fn=8) {
|
||||
// xy corner
|
||||
w1 = cornerType[0];
|
||||
w2 = cornerType[1];
|
||||
t = cornerType[2];
|
||||
cham = cornerType[3];
|
||||
w3 = cornerType[4];
|
||||
|
||||
union() {
|
||||
// radial arm
|
||||
rotate([0,0,45]) translate([0,-t/2,0]) square([w1/2+t,t]);
|
||||
|
||||
// outer radius
|
||||
translate([w1/2-t,w1/2-t,0]) circle(r=t);
|
||||
|
||||
// corner block
|
||||
translate([w1/2-w3,w1/2-w3]) square([w3-t+eta,w3-t+eta]);
|
||||
|
||||
// returns
|
||||
for (i=[0,1]) mirror([i,i,0]) {
|
||||
translate([w1/2-w2,w1/2-t,0]) square([w2-t,t-cham]);
|
||||
translate([w1/2-w2+cham,w1/2-cham-eta,0]) square([w2-t-cham,cham+eta]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module aluProSide(sideType) {
|
||||
// x side
|
||||
w = sideType[0];
|
||||
t = sideType[1];
|
||||
translate([w/2-t-eta,-w/4,0]) square([t+eta,w/2]);
|
||||
}
|
||||
|
||||
module aluProHollow(cornerType) {
|
||||
// x hollow
|
||||
w1 = cornerType[0];
|
||||
t = cornerType[2];
|
||||
w3 = cornerType[4];
|
||||
|
||||
translate([w1/2,0]) square([2*w3 - 2*t, w1 - 2*t],center=true);
|
||||
}
|
||||
|
||||
// TSlot - to be unioned onto a printed part for engaging tightly with the aluprofile
|
||||
// same centre and orientation as a full profile section, x+ side
|
||||
// protrudes eta beyond external boundary of section to allow for union
|
||||
// requires linear_extrude'ing
|
||||
module aluProTSlot(profileType, $fn=8) {
|
||||
//BR_20x20_Corner = [20, 7, 1.5, 0.5, 4];
|
||||
//BR_20x20_Core = [9,2,0.75];
|
||||
|
||||
coreType = profileType[1];
|
||||
cornerType = profileType[2];
|
||||
|
||||
w1 = cornerType[0];
|
||||
w2 = cornerType[1];
|
||||
t = cornerType[2];
|
||||
cham = cornerType[3];
|
||||
w3 = cornerType[4];
|
||||
|
||||
tol = 0.5; // mm tolerance, total per gap
|
||||
|
||||
slotW = w1- 2*w2 - tol;
|
||||
slotD = (w1 - coreType[0]) / 2 - tol;
|
||||
slotOffset = coreType[0]/2 + tol;
|
||||
|
||||
wingW = w1 - 2*w3 - 4*tol;
|
||||
wingInset = t + tol/2;
|
||||
|
||||
union() {
|
||||
// central block
|
||||
translate([slotOffset,-slotW/2,0]) square([slotD+eta, slotW]);
|
||||
|
||||
// wings
|
||||
for (i=[0,1]) mirror([0,i,0]) {
|
||||
polygon(points=[[slotOffset,slotW/2],[w1/2-w3/2-tol,wingW/2],[w1/2-wingInset,wingW/2],[w1/2-wingInset, slotW/2]], paths=[[0,1,2,3]]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// TSlotLug - to be unioned onto a printed part for engaging tightly with the aluprofile slot
|
||||
// same centre and orientation as a full profile section, x+ side
|
||||
// protrudes eta beyond external boundary of section to allow for union
|
||||
// NB: solid part
|
||||
module aluProTSlotLug(profileType, l=5, $fn=8) {
|
||||
//BR_20x20_Corner = [20, 7, 1.5, 0.5, 4];
|
||||
//BR_20x20_Core = [9,2,0.75];
|
||||
|
||||
coreType = profileType[1];
|
||||
cornerType = profileType[2];
|
||||
|
||||
w1 = cornerType[0];
|
||||
w2 = cornerType[1];
|
||||
t = cornerType[2];
|
||||
cham = cornerType[3];
|
||||
w3 = cornerType[4];
|
||||
|
||||
tol = 0.5; // mm tolerance, total per gap
|
||||
|
||||
slotW = w1- 2*w2 - tol;
|
||||
slotD = (w1 - coreType[0]) / 2 - tol;
|
||||
slotD2 = l < slotD ? l : slotD;
|
||||
slotOffset = coreType[0]/2 + tol;
|
||||
|
||||
wingW = w1 - 2*w3 - 4*tol;
|
||||
wingInset = t + tol/2;
|
||||
|
||||
union() {
|
||||
// central block
|
||||
translate([slotOffset,-slotW/2,0]) square([slotD2+eta, slotW]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
module aluProBasicSection(profileType) {
|
||||
difference() {
|
||||
union() {
|
||||
aluProCore(profileType[1]);
|
||||
|
||||
for (i=[0:3]) rotate([0,0,i*90]) {
|
||||
aluProCorner(profileType[2]);
|
||||
|
||||
if (profileType[4][i] == 1)
|
||||
aluProSide(profileType[3]);
|
||||
}
|
||||
}
|
||||
aluProBore(profileType[0]);
|
||||
}
|
||||
}
|
||||
|
||||
module aluProSection(profileType,detailed) {
|
||||
x = profileType[5];
|
||||
y = profileType[6];
|
||||
w = profileType[3][0];
|
||||
sx = -(x-1)*w/2;
|
||||
sy = -(y-1)*w/2;
|
||||
|
||||
w1 = profileType[2][0];
|
||||
|
||||
if (!detailed) {
|
||||
// simple rectangle
|
||||
square([w1 * x,w1 * y],center=true);
|
||||
|
||||
} else {
|
||||
difference() {
|
||||
union() {
|
||||
for (i=[0:x-1])
|
||||
for (j=[0:y-1])
|
||||
translate([sx + w * i, sy + w * j,0]) aluProBasicSection(profileType);
|
||||
|
||||
// fill-in sides
|
||||
if (y > 1)
|
||||
for (i=[0:y-2])
|
||||
for (j=[0,1])
|
||||
mirror([j,0,0])
|
||||
translate([sx + (x-1) * w/2, sy + i*w + w/2,0])
|
||||
aluProSide(profileType[3]);
|
||||
}
|
||||
|
||||
// remove hollows
|
||||
if (y > 1)
|
||||
for (i=[0:y-2])
|
||||
for (j=[0,1])
|
||||
mirror([j,0,0])
|
||||
translate([sx + (x-1) * w/2, sy + i*w,0])
|
||||
rotate([0,0,90]) aluProHollow(profileType[2]);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
module aluProExtrusion(profileType, l, detailed) {
|
||||
render()
|
||||
translate([0,0,center?-l/2:0])
|
||||
linear_extrude(height=l)
|
||||
aluProSection(profileType, detailed=detailed);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// utility functions to generate common profiles with gussets
|
||||
// set gusset array values to 1 to indicate where a gusset should be present
|
||||
// numbering is anticlockwise from y+
|
||||
module BR20x20WG(l=100, startGussets=[0,0,0,0], endGussets=[0,0,0,0], screws=true) {
|
||||
gussetType=BR_20x20_Gusset;
|
||||
profileType = BR_20x20;
|
||||
|
||||
aluProExtrusion(profileType, l);
|
||||
|
||||
// gussets
|
||||
for (i=[0:3]) {
|
||||
//start
|
||||
if (startGussets[i]==1)
|
||||
rotate([0,0,i*90])
|
||||
translate([0,10,0])
|
||||
aluProGusset(gussetType, screws=screws);
|
||||
|
||||
|
||||
//end
|
||||
if (endGussets[i]==1)
|
||||
rotate([0,0,i*90])
|
||||
translate([0,10,l])
|
||||
mirror([0,0,1])
|
||||
aluProGusset(gussetType, screws=screws);
|
||||
}
|
||||
}
|
||||
|
||||
// same as above, but between points
|
||||
module BR20x20WGBP(p1,p2,roll=0,startGussets=[0,0,0,0], endGussets=[0,0,0,0], screws=true) {
|
||||
v = subv(p2,p1);
|
||||
l = mod(v);
|
||||
translate(p1) orientate(v,roll=roll) BR20x20WG(l, startGussets, endGussets, screws);
|
||||
}
|
||||
|
||||
// for 20x40... gusset numbering is from y+ anticlockwise
|
||||
module BR20x40WG(l=100, startGussets=[0,0,0,0,0,0], endGussets=[0,0,0,0,0,0], screws=true) {
|
||||
gussetType=BR_20x20_Gusset;
|
||||
profileType = BR_20x40;
|
||||
|
||||
aluProExtrusion(profileType, l);
|
||||
|
||||
// gussets
|
||||
|
||||
for (i=[0,1]) {
|
||||
|
||||
//y+
|
||||
if (i==0?startGussets[0]==1:endGussets[0]==1)
|
||||
translate([0,20,i==0?0:l])
|
||||
rotate([0,0,0])
|
||||
mirror([0,0,i])
|
||||
aluProGusset(gussetType, screws=screws);
|
||||
|
||||
|
||||
//y-
|
||||
if (i==0?startGussets[3]==1:endGussets[3]==1)
|
||||
translate([0,-20,i==0?0:l])
|
||||
rotate([0,0,180])
|
||||
mirror([0,0,i])
|
||||
aluProGusset(gussetType, screws=screws);
|
||||
|
||||
// x-
|
||||
for (j=[0,1])
|
||||
if (i==0?startGussets[1+j]==1:endGussets[1+j]==1)
|
||||
translate([-10,10-j*20,i==0?0:l])
|
||||
rotate([0,0,90])
|
||||
mirror([0,0,i])
|
||||
aluProGusset(gussetType, screws=screws);
|
||||
|
||||
// x+
|
||||
for (j=[0,1])
|
||||
if (i==0?startGussets[4+j]==1:endGussets[4+j]==1)
|
||||
translate([10,-10+j*20,i==0?0:l])
|
||||
rotate([0,0,270])
|
||||
mirror([0,0,i])
|
||||
aluProGusset(gussetType, screws=screws);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// same as above, but between points
|
||||
module BR20x40WGBP(p1,p2,roll=0,startGussets=[0,0,0,0,0,0], endGussets=[0,0,0,0,0,0], screws=true) {
|
||||
v = subv(p2,p1);
|
||||
l = mod(v);
|
||||
translate(p1) orientate(v,roll=roll) BR20x40WG(l, startGussets, endGussets, screws);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
module aluProExtrusionBetweenPoints(p1,p2,profileType=BR_20x20,roll=0) {
|
||||
v = subv(p2,p1);
|
||||
l = mod(v);
|
||||
translate(p1) orientate(v,roll=roll) aluProExtrusion(profileType, l);
|
||||
}
|
||||
|
||||
|
||||
|
||||
// width, wall_thickness, slot width, slot height, slot offset from base, nib depth
|
||||
//BR_20x20_Gusset = [18, 3, 4.5, 7, 7.7, 1];
|
||||
|
||||
module aluProGusset(tg,screws=false) {
|
||||
// sits on z=0
|
||||
// faces along y+ and z+
|
||||
|
||||
w = tg[0];
|
||||
t = tg[1];
|
||||
slotw = tg[2];
|
||||
sloth = tg[3];
|
||||
sloto = tg[4];
|
||||
nib = tg[5];
|
||||
|
||||
vitamin(str(tg[6],": ",tg[6]));
|
||||
|
||||
color(grey80)
|
||||
render()
|
||||
union() {
|
||||
// ends
|
||||
for (i=[0,1])
|
||||
mirror([0,-i,i])
|
||||
linear_extrude(t) {
|
||||
difference() {
|
||||
translate([-w/2,0,0]) square([w,w]);
|
||||
translate([(-w/2+slotw)/2,sloto,0]) square([slotw,sloth]);
|
||||
}
|
||||
}
|
||||
|
||||
// nibs - must add these at some point!
|
||||
|
||||
//sides
|
||||
for (i=[0,1])
|
||||
mirror([i,0,0])
|
||||
translate([w/2-t/2,t,t])
|
||||
rotate([0,-90,0])
|
||||
right_triangle(width=w-t, height=w-t, h=t, center = true);
|
||||
}
|
||||
|
||||
if (screws) {
|
||||
for (i=[0,1])
|
||||
mirror([0,-i,i]) {
|
||||
translate([0,12,t]) screw(M4_cap_screw,8);
|
||||
translate([0,12,0]) aluProTwistLockNut(BR_20x20_TwistLockNut);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
//BR_20x20_TwistLockNut = [5.8,11.3,4,0.8,1.5];
|
||||
// aligned such that the origin is level with the surface of the profile when the nut is locked
|
||||
module aluProTwistLockNut(tlnt) {
|
||||
vitamin(str("AluExtTwistNut: Aluminium Extrusion Twist Nut"));
|
||||
|
||||
if (simplify) {
|
||||
color("silver")
|
||||
render()
|
||||
translate([0,0,-tlnt[2] -tlnt[3] - (tlnt[4] - tlnt[3])])
|
||||
translate([0,0,(tlnt[2]-1)/2]) rotate([90,0,0]) trapezoidPrism(tlnt[1],tlnt[0],tlnt[2]-1,-(tlnt[1] - tlnt[0])/2,tlnt[0],center=true);
|
||||
|
||||
} else {
|
||||
color("silver")
|
||||
render()
|
||||
translate([0,0,-tlnt[2] -tlnt[3] - (tlnt[4] - tlnt[3])])
|
||||
difference() {
|
||||
union() {
|
||||
translate([0,0,tlnt[2]-0.5-eta]) cube([tlnt[1],tlnt[0],1+2*eta],center=true);
|
||||
translate([0,0,(tlnt[2]-1)/2]) rotate([90,0,0]) trapezoidPrism(tlnt[1],tlnt[0],tlnt[2]-1,-(tlnt[1] - tlnt[0])/2,tlnt[0],center=true);
|
||||
|
||||
translate([0,0,tlnt[3]/2 + tlnt[2]-eta]) cube([tlnt[0],tlnt[0],tlnt[3] + eta],center=true);
|
||||
}
|
||||
|
||||
translate([0,0,-1]) cylinder(h=20, r=tlnt[2]/2, $fn=8);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module tslot_20x20_base(l,detailed){
|
||||
aluProExtrusion(BR_20x20, l=l, detailed=detailed);
|
||||
}
|
||||
|
||||
module tslot_20x20_1s_base(l,detailed){
|
||||
aluProExtrusion(BR_20x20_1S, l=l, detailed=detailed);
|
||||
}
|
||||
|
||||
module tslot_20x20_2s_base(l,detailed){
|
||||
aluProExtrusion(BR_20x20_2S, l=l, detailed=detailed);
|
||||
}
|
||||
|
||||
module tslot_20x20_2sa_base(l,detailed){
|
||||
aluProExtrusion(BR_20x20_2SA, l=l, detailed=detailed);
|
||||
}
|
||||
|
||||
module tslot_20x20_3s_base(l,detailed){
|
||||
aluProExtrusion(BR_20x20_3S, l=l, detailed=detailed);
|
||||
}
|
||||
|
||||
// aluProExtrusion(BR_20x40, l=70, center=false);
|
||||
// aluProExtrusion(BR_20x60, center=true);
|
||||
// aluProExtrusion(BR_20x80, center=false);
|
|
@ -0,0 +1,31 @@
|
|||
/* Pipe module for OpenSCAD
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
module roundBatteryBase(h,d){
|
||||
union(){
|
||||
//nub
|
||||
cylinder(r=d/6,h=h);
|
||||
//cell
|
||||
cylinder(r=d/2,h=0.97*h);
|
||||
}
|
||||
}
|
||||
|
||||
function roundBatteryConn(h,location) =
|
||||
(location == "plus") ? [[0,0,h],[[0,0,1],[0,1,0]]] :
|
||||
(location == "minus") ? [[0,0,0],[[0,0,1],[0,1,0]]] :
|
||||
"Error";
|
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
* BOLTS - Open Library of Technical Specifications
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
//square torus, r1 is big radius, r2 is small radius
|
||||
module makeSquorus(r1,r2){
|
||||
difference(){
|
||||
cylinder(r=r1+r2,h=2*r2,center=true);
|
||||
cylinder(r=r1-r2,h=3*r2,center=true);
|
||||
}
|
||||
}
|
||||
|
||||
//r1 is inner, r2 is outer
|
||||
module makeRing(r1,r2,h){
|
||||
difference(){
|
||||
cylinder(r=r2,h=h,center=true);
|
||||
cylinder(r=r1,h=2*h,center=true);
|
||||
}
|
||||
}
|
||||
|
||||
module singlerowradialbearing(d1,d2,B){
|
||||
rb = B/4;
|
||||
n = ceil((d2-d1)/rb);
|
||||
translate([0,0,B/2]){
|
||||
union(){
|
||||
difference(){
|
||||
cylinder(r=d2/2,h=B,center=true);
|
||||
cylinder(r=d1/2,h=B+0.01,center=true);
|
||||
//gap
|
||||
makeRing(d1/2+0.3*(d2-d1)/2,d1/2+0.6*(d2-d1)/2,2*B);
|
||||
//track
|
||||
makeSquorus((d2-d1)/2,rb);
|
||||
}
|
||||
for ( i = [0 : n-1] ){
|
||||
rotate( i * 360 / n, [0, 0,1])
|
||||
translate([0, (d2-d1)/2, 0])
|
||||
sphere(r = rb);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module axialthrustbearing(d1_w,d2_w,d1_g,d2_g,B){
|
||||
rb = B/4;
|
||||
n = ceil((d2_w+d1_w)/2/rb);
|
||||
union(){
|
||||
difference(){
|
||||
union(){
|
||||
translate([0,0,-0.35*B]) makeRing(d1_g/2,d2_g/2,0.3*B);
|
||||
translate([0,0,+0.35*B]) makeRing(d1_w/2,d2_w/2,0.3*B);
|
||||
}
|
||||
//track
|
||||
makeSquorus((d2_w+d1_w)/4,rb);
|
||||
}
|
||||
for ( i = [0 : n-1] ){
|
||||
rotate( i * 360 / n, [0, 0,1])
|
||||
translate([0, (d2_w+d1_w)/4, 0])
|
||||
sphere(r = rb);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
/*
|
||||
* BOLTS - Open Library of Technical Specifications
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
module hex1(d1,k,s,h,l){
|
||||
union(){
|
||||
hex_head(k,s);
|
||||
//possibly unthreaded shaft
|
||||
cylinder(r=d1/2,h=h);
|
||||
//threaded shaft
|
||||
translate([0,0,h]) thread_external(d1,l-h);
|
||||
}
|
||||
}
|
||||
|
||||
module hex2(d1, k, s, b1, b2, b3, l){
|
||||
b = (l < 125) ? b1 :
|
||||
(l < 200) ? b2 :
|
||||
b3;
|
||||
check_dimension_defined(b, "threaded shaft length b");
|
||||
|
||||
union(){
|
||||
hex_head(k,s);
|
||||
//unthreaded shaft
|
||||
cylinder(r=d1/2,h=l-b);
|
||||
//threaded shaft
|
||||
translate([0,0,l-b]) thread_external(d1,b);
|
||||
}
|
||||
}
|
||||
|
||||
function hexConn(k,l,location) =
|
||||
(location == "root") ? [[0,0,0],[[0,0,1],[0,1,0]]] :
|
||||
(location == "tip") ? [[0,0,l],[[0,0,1],[0,1,0]]] :
|
||||
(location == "head") ? [[0,0,-k],[[0,0,-1],[0,-1,0]]] :
|
||||
"Error";
|
|
@ -0,0 +1,61 @@
|
|||
/*
|
||||
* BOLTS - Open Library of Technical Specifications
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
module hex_socket1(d1,d2,b1,b2,b3,k_max,s,t,L,h_max,l){
|
||||
b = (l <= L) ? l - k_max - h_max :
|
||||
l < 125 ? b1 :
|
||||
l < 200 ? b2 :
|
||||
b3;
|
||||
h = l - k_max - b;
|
||||
|
||||
//TODO: These checks are not very careful
|
||||
check_dimension_defined(b,"threaded shaft length b");
|
||||
check_dimension_defined(t,"socket depth t");
|
||||
check_dimension_defined(h_max,"unthreaded shaft length h_max");
|
||||
|
||||
difference(){
|
||||
union(){
|
||||
//Head
|
||||
cylinder(r1=d2/2,r2=d1/2,h = k_max);
|
||||
//unthreaded shaft
|
||||
cylinder(r=d1/2,h=k_max+h);
|
||||
//threaded shaft
|
||||
translate([0,0,k_max+h]) thread_external(d1,b);
|
||||
}
|
||||
hex_socket_neg(t,s);
|
||||
}
|
||||
}
|
||||
|
||||
module hex_socket2(d1,d2,b,k,s,t_min,L,l){
|
||||
h = (l<= L) ? 0 : l - b;
|
||||
|
||||
check_dimension_positive(h,"l too short");
|
||||
|
||||
difference(){
|
||||
union(){
|
||||
//Head
|
||||
translate([0,0,-k]) cylinder(r=d2/2,h = k);
|
||||
//unthreaded shaft
|
||||
cylinder(r=d1/2,h=h);
|
||||
//threaded shaft
|
||||
translate([0,0,h]) thread_external(d1,b);
|
||||
}
|
||||
translate([0,0,-k]) hex_socket_neg(t_min,s);
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
/*
|
||||
* BOLTS - Open Library of Technical Specifications
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
module nut1(d1, s, m_max){
|
||||
//hex sidelength
|
||||
a = s/tan(60);
|
||||
translate([0,0,m_max]){
|
||||
difference(){
|
||||
hex_head(m_max,s);
|
||||
translate([0,0,-d1]) cylinder(r=d1/2,h=m_max+ 2*d1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function nutConn(m_max,location) =
|
||||
(location == "bottom") ? [[0,0,0],[[0,0,1],[0,1,0]]] :
|
||||
(location == "top") ? [[0,0,m_max],[[0,0,1],[0,1,0]]] :
|
||||
"Error";
|
|
@ -0,0 +1,39 @@
|
|||
/* Pipe module for OpenSCAD
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
module pipe(id,od,l){
|
||||
difference(){
|
||||
cylinder(r=od/2,h=l,center=true);
|
||||
cylinder(r=id/2,h=l+1,center=true);
|
||||
}
|
||||
}
|
||||
|
||||
module pipe_wall(od,wall,l){
|
||||
difference(){
|
||||
cylinder(r=od/2,h=l,center=true);
|
||||
cylinder(r=(od - 2*wall)/2,h=l+1,center=true);
|
||||
}
|
||||
}
|
||||
|
||||
function pipeConn(l,location) =
|
||||
(location == "front-in") ? [[0,0,-l/2],[[0,0,1],[1,0,0]]] :
|
||||
(location == "front-out") ? [[0,0,-l/2],[[0,0,-1],[-1,0,0]]] :
|
||||
(location == "back-in") ? [[0,0,+l/2],[[0,0,-1],[-1,0,0]]] :
|
||||
(location == "back-out") ? [[0,0,+l/2],[[0,0,1],[1,0,0]]] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
/*
|
||||
* BOLTS - Open Library of Technical Specifications
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
module washer1(d1,d2,s){
|
||||
difference(){
|
||||
cylinder(r=d2/2,h=s);
|
||||
translate([0,0,-0.1*s])
|
||||
cylinder(r=d1/2,h=1.2*s);
|
||||
}
|
||||
}
|
||||
|
||||
module washer2(d1,d2,s){
|
||||
intersection(){
|
||||
difference(){
|
||||
cylinder(r=d2/2,h=s);
|
||||
translate([0,0,-0.1*s])
|
||||
cylinder(r=d1/2,h=1.2*s);
|
||||
cylinder(r1=d1/2-s,r2 = d1/2+s,1.1*s);
|
||||
}
|
||||
cylinder(r1 = d2/2+s, r2 = d2/2-s,1.1*s);
|
||||
}
|
||||
}
|
||||
|
||||
function washerConn(d2,s,location) =
|
||||
(location == "bottom") ? [[0,0,0],[[0,0,1],[0,1,0]]] :
|
||||
(location == "top") ? [[0,0,s],[[0,0,1],[0,1,0]]] :
|
||||
(location == "outer") ? [[d2/2,0,0],[[1,0,0],[0,1,0]]] :
|
||||
"Error";
|
|
@ -0,0 +1,118 @@
|
|||
/*
|
||||
* BOLTS - Open Library of Technical Specifications
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
module BOLTS_error(msg){
|
||||
echo(str("BOLTS Error: ",msg));
|
||||
}
|
||||
|
||||
module BOLTS_warning(msg){
|
||||
echo(str("BOLTS Warning: ",msg));
|
||||
}
|
||||
|
||||
|
||||
module check_dimension_defined(dim, descr){
|
||||
if(dim == "None"){
|
||||
BOLTS_error(str("Dimension unspecified",descr));
|
||||
}
|
||||
}
|
||||
|
||||
module check_dimension_positive(dim, message){
|
||||
if(dim < 0){
|
||||
BOLTS_error(message);
|
||||
}
|
||||
}
|
||||
|
||||
function convert_to_default_unit(value,unit) =
|
||||
(BOLTS_DEFAULT_UNIT == unit) ? value :
|
||||
(unit == "in") ? value*25.4 :
|
||||
value/25.4;
|
||||
|
||||
function get_dim(dims,pname) = dims[search([pname],dims,1)[0]][1];
|
||||
|
||||
//see http://rocklinux.net/pipermail/openscad/2013-September/005522.html
|
||||
function type(P) =
|
||||
(len(P) == undef)
|
||||
? (P == true || P == false)
|
||||
? "boolean"
|
||||
: (P == undef)
|
||||
? "undef"
|
||||
: "number"
|
||||
: (P + [1] == undef)
|
||||
? "string"
|
||||
: "vector";
|
||||
|
||||
module check_parameter_type(part_name,name,value,param_type){
|
||||
if(param_type=="Length (mm)"){
|
||||
if(type(value) != "number"){
|
||||
BOLTS_error(str("Expected a Length (mm) as parameter ",name," for ",part_name,", but ",value," is not numerical"));
|
||||
} else if(value < 0){
|
||||
BOLTS_error(str("Expected a Length (mm) as parameter ",name," for ",part_name,", but ",value," is negative"));
|
||||
}
|
||||
} else if(param_type=="Length (in)"){
|
||||
if(type(value) != "number"){
|
||||
BOLTS_error(str("Expected a Length (in) as parameter ",name," for ",part_name,", but ",value," is not numerical"));
|
||||
} else if(value < 0){
|
||||
BOLTS_error(str("Expected a Length (in) as parameter ",name," for ",part_name,", but ",value," is negative"));
|
||||
}
|
||||
} else if(param_type=="Number"){
|
||||
if(type(value) != "number"){
|
||||
BOLTS_error(str("Expected a Number as parameter ",name," for ",part_name,", but ",value," is not numerical"));
|
||||
}
|
||||
} else if(param_type=="Bool"){
|
||||
if(type(value) != "boolean"){
|
||||
BOLTS_error(str("Expected a Bool as parameter ",name," for ",part_name,", but ",value," is not boolean"));
|
||||
}
|
||||
} else if(param_type=="Table Index"){
|
||||
if(type(value) != "string"){
|
||||
BOLTS_error(str("Expected a Table Index as parameter ",name," for ",part_name,", but ",value," is not a string"));
|
||||
}
|
||||
} else if(param_type=="String"){
|
||||
if(type(value) != "string"){
|
||||
BOLTS_error(str("Expected a String as parameter ",name," for ",part_name,", but ",value," is not a string"));
|
||||
}
|
||||
} else {
|
||||
BOLTS_error(str("Unknown type in parameter check. This should not happen, please report this bug to BOLTS"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
module thread_external(d1,l){
|
||||
color(BOLTS_THREAD_COLOR)
|
||||
cylinder(r=0.5*d1,h= l);
|
||||
}
|
||||
|
||||
module hex_head(k,s){
|
||||
a = s/tan(60);
|
||||
translate([0,0,-k/2]) union(){
|
||||
rotate([0,0, 30]) cube([a,s,k],true);
|
||||
rotate([0,0,150]) cube([a,s,k],true);
|
||||
rotate([0,0,270]) cube([a,s,k],true);
|
||||
}
|
||||
}
|
||||
|
||||
module hex_socket_neg(t,s){
|
||||
a = s/tan(60);
|
||||
//The fudging here is to avoid coincident faces when subtracting from a
|
||||
//body (see e.g. hex_socket)
|
||||
translate([0,0,t/2-0.01]) union(){
|
||||
rotate([0,0, 30]) cube([a,s,t+0.01],true);
|
||||
rotate([0,0,150]) cube([a,s,t+0.01],true);
|
||||
rotate([0,0,270]) cube([a,s,t+0.01],true);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* BOLTS - Open Library of Technical Specifications
|
||||
* Copyright (C) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2.1 of the License, or any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
*/
|
||||
|
||||
BOLTS_MODE = "draft";
|
||||
|
||||
//can be "in" and "mm"
|
||||
BOLTS_DEFAULT_UNIT = "mm";
|
||||
|
||||
BOLTS_THREAD_COLOR = [0,1,0];
|
|
@ -0,0 +1,154 @@
|
|||
/*
|
||||
Copyright (c) 2013 Johannes Reinhardt <jreinhardt@ist-dein-freund.de>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
*/
|
||||
|
||||
/*
|
||||
local.scad local coordinate systems for OpenSCAD
|
||||
|
||||
for more information, see https://github.com/jreinhardt/local-scad
|
||||
*/
|
||||
|
||||
//a few utility functions
|
||||
function norm(a) = sqrt(a*a);
|
||||
function unit_vector(v) = v/norm(v);
|
||||
function clamp(v,lower_bound,upper_bound) = min(max(v,lower_bound),upper_bound);
|
||||
function cross_product(a,b) = [
|
||||
a[1]*b[2]-a[2]*b[1],
|
||||
a[2]*b[0]-a[0]*b[2],
|
||||
a[0]*b[1]-a[1]*b[0]
|
||||
];
|
||||
|
||||
//works for both numbers and vectors
|
||||
function almost_equal(number, ref, tol) = sqrt((number-ref)*(number-ref)) < tol;
|
||||
|
||||
function _rotation_angle(a,b) = (a*b > 0) ?
|
||||
asin(clamp(norm(cross_product(b,a))/norm(a)/norm(b),-1,1)) :
|
||||
180 - asin(clamp(norm(cross_product(b,a))/norm(a)/norm(b),-1,1));
|
||||
|
||||
//The (non-unit) rotation axis and angle around which a has to be rotated to be colinear to b
|
||||
function calculate_rotation_axis(a,b) =
|
||||
//if the two vectors are not colinear find a rotation axis using the cross product
|
||||
(norm(cross_product(b,a)) != 0) ? [unit_vector(cross_product(b,a)),_rotation_angle(a,b)] :
|
||||
//if they are colinear and do not lie in the yz plane, choose the rotation axis from the yz plane
|
||||
(a*[1,0,0] < 0) ? [unit_vector([0,-a[1],+a[0]]),acos(clamp(a*b/norm(a)/norm(b),-1,1))] :
|
||||
(a*[1,0,0] > 0) ? [unit_vector([0,+a[1],-a[0]]),acos(clamp(a*b/norm(a)/norm(b),-1,1))] :
|
||||
//otherwise use the x axis
|
||||
[[1,0,0],acos(clamp(a*b/norm(a)/norm(b),-1,1))];
|
||||
|
||||
function calculate_axes(x,y) = [unit_vector(x),unit_vector(y), unit_vector(cross_product(x,y))];
|
||||
|
||||
function new_cs(origin=[0,0,0],axes=[[1,0,0],[0,1,0],[0,0,1]]) = (len(axes) == 2) ?
|
||||
[origin,calculate_axes(axes[0],axes[1])] :
|
||||
is_orthonormal([origin,axes]) ?
|
||||
[origin,axes] :
|
||||
"Error: Axes are not orthonormal";
|
||||
|
||||
function is_orthonormal(cs,tol=1e-3) =
|
||||
(almost_equal(norm(cs[1][0]),1,tol)) &&
|
||||
(almost_equal(norm(cs[1][1]),1,tol)) &&
|
||||
(almost_equal(norm(cs[1][2]),1,tol)) &&
|
||||
(almost_equal(cross_product(cs[1][0],cs[1][1]),cs[1][2],tol)) &&
|
||||
(almost_equal(cross_product(cs[1][1],cs[1][2]),cs[1][0],tol)) &&
|
||||
(almost_equal(cross_product(cs[1][2],cs[1][0]),cs[1][1],tol));
|
||||
|
||||
function unit_matrix3() = [
|
||||
[1,0,0],
|
||||
[0,1,0],
|
||||
[0,0,1]];
|
||||
|
||||
function tensor_product_matrix3(u,v) = [
|
||||
[u[0]*v[0], u[0]*v[1], u[0]*v[2]],
|
||||
[u[1]*v[0], u[1]*v[1], u[1]*v[2]],
|
||||
[u[2]*v[0], u[2]*v[1], u[2]*v[2]]];
|
||||
|
||||
function cross_product_matrix3(v) = [
|
||||
[ 0 , -v[2], +v[1]],
|
||||
[+v[2], 0 , -v[0]],
|
||||
[-v[1], v[0], 0 ]];
|
||||
|
||||
function rotation_matrix3(n,angle) =
|
||||
cos(angle)*unit_matrix3() +
|
||||
sin(angle)*cross_product_matrix3(n) +
|
||||
(1-cos(angle))*tensor_product_matrix3(n,n);
|
||||
|
||||
//the modules are used directly by the user
|
||||
module show_cs(cs){
|
||||
origin = cs[0];
|
||||
axes = cs[1];
|
||||
x_rot = calculate_rotation_axis(axes[0],[0,0,1]);
|
||||
y_rot = calculate_rotation_axis(axes[1],[0,0,1]);
|
||||
z_rot = calculate_rotation_axis(axes[2],[0,0,1]);
|
||||
translate(origin){
|
||||
color("Gray") sphere(0.2);
|
||||
rotate(x_rot[1],x_rot[0]) color("Red") cylinder(r=0.1,h=norm(axes[0]));
|
||||
rotate(y_rot[1],y_rot[0]) color("Green") cylinder(r=0.1,h=norm(axes[1]));
|
||||
rotate(z_rot[1],z_rot[0]) color("Blue") cylinder(r=0.1,h=norm(axes[2]));
|
||||
}
|
||||
}
|
||||
|
||||
module translate_local(cs,v=[0,0,0]){
|
||||
origin = cs[0];
|
||||
axes = cs[1];
|
||||
x_rot = calculate_rotation_axis(axes[0],[1,0,0]);
|
||||
y_rot = calculate_rotation_axis(axes[1],
|
||||
rotation_matrix3(x_rot[0],x_rot[1])*[0,1,0]);
|
||||
translate(origin+v*axes){
|
||||
//align y axes
|
||||
rotate(y_rot[1],y_rot[0]){
|
||||
//align x axes
|
||||
rotate(x_rot[1],x_rot[0]){
|
||||
child(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module in_cs(cs){
|
||||
origin = cs[0];
|
||||
axes = cs[1];
|
||||
x_rot = calculate_rotation_axis(axes[0],[1,0,0]);
|
||||
y_rot = calculate_rotation_axis(axes[1],
|
||||
rotation_matrix3(x_rot[0],x_rot[1])*[0,1,0]);
|
||||
translate(origin){
|
||||
//align y axes
|
||||
rotate(y_rot[1],y_rot[0]){
|
||||
//align x axes
|
||||
rotate(x_rot[1],x_rot[0]){
|
||||
child(0);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module align(cs, cs_dst, displacement=[0,0,0]){
|
||||
x_rot = calculate_rotation_axis(cs[1][0],cs_dst[1][0]);
|
||||
y_rot = _rotation_angle(cs[1][1],
|
||||
rotation_matrix3(x_rot[0],x_rot[1])*cs_dst[1][1]);
|
||||
translate(cs_dst[0]+displacement*cs_dst[1])
|
||||
//align x axes
|
||||
rotate(-x_rot[1],x_rot[0])
|
||||
//align y axes
|
||||
rotate(-y_rot,cs[1][0])
|
||||
translate(-cs[0])
|
||||
child(0);
|
||||
}
|
||||
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
function BOLTS_version() = [0, 3, GPL 3.0];
|
||||
function BOLTS_date() = [2014,4,24];
|
||||
function BOLTS_license() = "GPL 3.0";
|
|
@ -0,0 +1,132 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de>,Javier Martínez García <jaeco@gmx.com> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function axialthrustbearing_table_0(idx) =
|
||||
//d_w, d_g, D_g, D_w, T, r_fillet
|
||||
idx == "51109" ? [45.0, 47.0, 65.0, 65.0, 14.0, 1.0] :
|
||||
idx == "51305" ? [25.0, 27.0, 52.0, 52.0, 18.0, 1.5] :
|
||||
idx == "51306" ? [30.0, 32.0, 60.0, 60.0, 21.0, 1.5] :
|
||||
idx == "51307" ? [35.0, 37.0, 68.0, 68.0, 24.0, 1.5] :
|
||||
idx == "51268" ? [340.0, 345.0, 460.0, 455.0, 96.0, 4.0] :
|
||||
idx == "51144" ? [220.0, 223.0, 270.0, 267.0, 37.0, 2.0] :
|
||||
idx == "51264" ? [320.0, 325.0, 440.0, 435.0, 95.0, 4.0] :
|
||||
idx == "51308" ? [40.0, 42.0, 78.0, 78.0, 26.0, 1.5] :
|
||||
idx == "51309" ? [45.0, 47.0, 85.0, 85.0, 28.0, 1.5] :
|
||||
idx == "51260" ? [300.0, 304.0, 420.0, 415.0, 95.0, 4.0] :
|
||||
idx == "51209" ? [45.0, 47.0, 73.0, 73.0, 20.0, 1.5] :
|
||||
idx == "51208" ? [40.0, 42.0, 68.0, 68.0, 19.0, 1.5] :
|
||||
idx == "51236" ? [180.0, 183.0, 250.0, 247.0, 56.0, 2.5] :
|
||||
idx == "51160" ? [300.0, 304.0, 380.0, 376.0, 62.0, 3.0] :
|
||||
idx == "51164" ? [320.0, 324.0, 400.0, 396.0, 63.0, 3.0] :
|
||||
idx == "51168" ? [340.0, 344.0, 420.0, 416.0, 64.0, 3.0] :
|
||||
idx == "51200" ? [10.0, 12.0, 26.0, 26.0, 11.0, 1.0] :
|
||||
idx == "51407" ? [35.0, 37.0, 80.0, 80.0, 32.0, 2.0] :
|
||||
idx == "51220" ? [100.0, 103.0, 150.0, 150.0, 38.0, 2.0] :
|
||||
idx == "51115" ? [75.0, 77.0, 100.0, 100.0, 19.0, 1.5] :
|
||||
idx == "51114" ? [70.0, 72.0, 95.0, 95.0, 18.0, 1.5] :
|
||||
idx == "51117" ? [85.0, 87.0, 110.0, 110.0, 19.0, 1.5] :
|
||||
idx == "51116" ? [80.0, 82.0, 105.0, 105.0, 19.0, 1.5] :
|
||||
idx == "51111" ? [55.0, 57.0, 78.0, 78.0, 16.0, 1.0] :
|
||||
idx == "51110" ? [50.0, 52.0, 70.0, 70.0, 14.0, 1.0] :
|
||||
idx == "51113" ? [65.0, 67.0, 90.0, 90.0, 18.0, 1.5] :
|
||||
idx == "51112" ? [60.0, 62.0, 85.0, 85.0, 17.0, 1.5] :
|
||||
idx == "51205" ? [25.0, 27.0, 47.0, 47.0, 15.0, 1.0] :
|
||||
idx == "51204" ? [20.0, 22.0, 40.0, 40.0, 14.0, 1.0] :
|
||||
idx == "51207" ? [35.0, 37.0, 62.0, 62.0, 18.0, 1.5] :
|
||||
idx == "51206" ? [30.0, 32.0, 52.0, 52.0, 16.0, 1.0] :
|
||||
idx == "51201" ? [12.0, 14.0, 28.0, 28.0, 11.0, 1.0] :
|
||||
idx == "51118" ? [90.0, 92.0, 120.0, 120.0, 22.0, 1.5] :
|
||||
idx == "51203" ? [17.0, 19.0, 35.0, 35.0, 12.0, 1.0] :
|
||||
idx == "51202" ? [15.0, 17.0, 32.0, 32.0, 12.0, 1.0] :
|
||||
idx == "51428" ? [140.0, 144.0, 280.0, 275.0, 112.0, 5.0] :
|
||||
idx == "51424" ? [120.0, 123.0, 250.0, 245.0, 102.0, 5.0] :
|
||||
idx == "51426" ? [130.0, 133.0, 270.0, 265.0, 110.0, 5.0] :
|
||||
idx == "51420" ? [100.0, 103.0, 210.0, 205.0, 85.0, 4.0] :
|
||||
idx == "51422" ? [110.0, 113.0, 230.0, 225.0, 95.0, 4.0] :
|
||||
idx == "51106" ? [30.0, 32.0, 47.0, 47.0, 11.0, 1.0] :
|
||||
idx == "51107" ? [35.0, 37.0, 52.0, 52.0, 12.0, 1.0] :
|
||||
idx == "51104" ? [20.0, 21.0, 35.0, 35.0, 10.0, 0.5] :
|
||||
idx == "51105" ? [25.0, 26.0, 42.0, 42.0, 11.0, 1.0] :
|
||||
idx == "51102" ? [15.0, 16.0, 28.0, 28.0, 9.0, 0.5] :
|
||||
idx == "51103" ? [17.0, 18.0, 30.0, 30.0, 9.0, 0.5] :
|
||||
idx == "51100" ? [10.0, 11.0, 24.0, 24.0, 9.0, 0.5] :
|
||||
idx == "51101" ? [12.0, 13.0, 26.0, 26.0, 9.0, 0.5] :
|
||||
idx == "51216" ? [80.0, 82.0, 115.0, 115.0, 28.0, 1.5] :
|
||||
idx == "51217" ? [85.0, 88.0, 125.0, 125.0, 31.0, 1.5] :
|
||||
idx == "51214" ? [70.0, 72.0, 105.0, 105.0, 27.0, 1.5] :
|
||||
idx == "51215" ? [75.0, 77.0, 110.0, 110.0, 27.0, 1.5] :
|
||||
idx == "51212" ? [60.0, 62.0, 95.0, 95.0, 26.0, 1.5] :
|
||||
idx == "51213" ? [65.0, 67.0, 100.0, 100.0, 27.0, 1.5] :
|
||||
idx == "51210" ? [50.0, 52.0, 78.0, 78.0, 22.0, 1.5] :
|
||||
idx == "51211" ? [55.0, 57.0, 90.0, 90.0, 25.0, 1.5] :
|
||||
idx == "51344" ? [220.0, 225.0, 360.0, 355.0, 112.0, 5.0] :
|
||||
idx == "51348" ? [240.0, 245.0, 380.0, 375.0, 112.0, 5.0] :
|
||||
idx == "51340" ? [200.0, 205.0, 340.0, 335.0, 110.0, 5.0] :
|
||||
idx == "51434" ? [170.0, 174.0, 340.0, 335.0, 135.0, 6.0] :
|
||||
idx == "51432" ? [160.0, 164.0, 320.0, 315.0, 130.0, 6.0] :
|
||||
idx == "51430" ? [150.0, 154.0, 300.0, 295.0, 120.0, 5.0] :
|
||||
idx == "51132" ? [160.0, 162.0, 200.0, 198.0, 31.0, 1.5] :
|
||||
idx == "51130" ? [150.0, 152.0, 190.0, 188.0, 31.0, 1.5] :
|
||||
idx == "51136" ? [180.0, 183.0, 225.0, 222.0, 34.0, 2.0] :
|
||||
idx == "51134" ? [170.0, 172.0, 215.0, 213.0, 34.0, 2.0] :
|
||||
idx == "51222" ? [110.0, 113.0, 160.0, 160.0, 38.0, 2.0] :
|
||||
idx == "51138" ? [190.0, 193.0, 240.0, 237.0, 37.0, 2.0] :
|
||||
idx == "51226" ? [130.0, 133.0, 190.0, 187.0, 45.0, 2.5] :
|
||||
idx == "51224" ? [120.0, 123.0, 170.0, 170.0, 39.0, 2.0] :
|
||||
idx == "51234" ? [170.0, 173.0, 240.0, 237.0, 55.0, 2.5] :
|
||||
idx == "51409" ? [45.0, 47.0, 100.0, 100.0, 39.0, 2.0] :
|
||||
idx == "51408" ? [40.0, 42.0, 90.0, 90.0, 36.0, 2.0] :
|
||||
idx == "51230" ? [150.0, 153.0, 215.0, 212.0, 50.0, 2.5] :
|
||||
idx == "51232" ? [160.0, 163.0, 225.0, 222.0, 51.0, 2.5] :
|
||||
idx == "51238" ? [190.0, 194.0, 270.0, 267.0, 62.0, 3.0] :
|
||||
idx == "51406" ? [30.0, 32.0, 70.0, 70.0, 28.0, 1.5] :
|
||||
idx == "51405" ? [25.0, 27.0, 60.0, 60.0, 24.0, 1.5] :
|
||||
idx == "51128" ? [140.0, 142.0, 180.0, 178.0, 31.0, 1.5] :
|
||||
idx == "51338" ? [190.0, 195.0, 320.0, 315.0, 105.0, 5.0] :
|
||||
idx == "51356" ? [280.0, 285.0, 440.0, 435.0, 130.0, 6.0] :
|
||||
idx == "51124" ? [120.0, 122.0, 155.0, 155.0, 25.0, 1.5] :
|
||||
idx == "51334" ? [170.0, 174.0, 280.0, 275.0, 87.0, 4.0] :
|
||||
idx == "51126" ? [130.0, 132.0, 170.0, 170.0, 30.0, 1.5] :
|
||||
idx == "51336" ? [180.0, 184.0, 300.0, 295.0, 95.0, 4.0] :
|
||||
idx == "51120" ? [100.0, 102.0, 135.0, 135.0, 25.0, 1.5] :
|
||||
idx == "51330" ? [150.0, 154.0, 250.0, 245.0, 80.0, 3.5] :
|
||||
idx == "51122" ? [110.0, 112.0, 145.0, 145.0, 25.0, 1.5] :
|
||||
idx == "51332" ? [160.0, 164.0, 270.0, 265.0, 87.0, 4.0] :
|
||||
idx == "51352" ? [260.0, 265.0, 420.0, 415.0, 130.0, 6.0] :
|
||||
idx == "51414" ? [70.0, 73.0, 150.0, 150.0, 60.0, 3.0] :
|
||||
idx == "51415" ? [75.0, 78.0, 160.0, 160.0, 65.0, 3.0] :
|
||||
idx == "51416" ? [80.0, 83.0, 170.0, 170.0, 68.0, 3.5] :
|
||||
idx == "51417" ? [85.0, 88.0, 180.0, 177.0, 72.0, 3.5] :
|
||||
idx == "51410" ? [50.0, 52.0, 110.0, 110.0, 43.0, 2.5] :
|
||||
idx == "51411" ? [55.0, 57.0, 120.0, 120.0, 48.0, 2.5] :
|
||||
idx == "51412" ? [60.0, 62.0, 130.0, 130.0, 51.0, 2.5] :
|
||||
idx == "51413" ? [65.0, 68.0, 140.0, 140.0, 56.0, 3.0] :
|
||||
idx == "51418" ? [90.0, 93.0, 190.0, 187.0, 77.0, 3.5] :
|
||||
idx == "51240" ? [200.0, 204.0, 280.0, 277.0, 62.0, 3.0] :
|
||||
idx == "51244" ? [220.0, 224.0, 300.0, 297.0, 63.0, 3.0] :
|
||||
idx == "51248" ? [240.0, 244.0, 340.0, 335.0, 78.0, 3.5] :
|
||||
idx == "51328" ? [140.0, 144.0, 240.0, 235.0, 80.0, 3.5] :
|
||||
idx == "51326" ? [130.0, 134.0, 225.0, 220.0, 75.0, 3.5] :
|
||||
idx == "51228" ? [140.0, 143.0, 200.0, 197.0, 46.0, 2.5] :
|
||||
idx == "51324" ? [120.0, 123.0, 210.0, 205.0, 70.0, 3.5] :
|
||||
idx == "51152" ? [260.0, 263.0, 320.0, 317.0, 45.0, 2.5] :
|
||||
idx == "51322" ? [110.0, 110.0, 190.0, 187.0, 63.0, 3.0] :
|
||||
idx == "51320" ? [100.0, 103.0, 170.0, 170.0, 55.0, 2.5] :
|
||||
idx == "51156" ? [280.0, 283.0, 350.0, 347.0, 53.0, 2.5] :
|
||||
idx == "51218" ? [90.0, 93.0, 135.0, 135.0, 35.0, 2.0] :
|
||||
idx == "51311" ? [55.0, 57.0, 105.0, 105.0, 35.0, 2.0] :
|
||||
idx == "51252" ? [260.0, 264.0, 360.0, 355.0, 79.0, 3.5] :
|
||||
idx == "51256" ? [280.0, 284.0, 380.0, 375.0, 80.0, 3.5] :
|
||||
idx == "51148" ? [240.0, 243.0, 300.0, 297.0, 45.0, 2.5] :
|
||||
idx == "51318" ? [90.0, 93.0, 155.0, 155.0, 50.0, 2.5] :
|
||||
idx == "51108" ? [40.0, 42.0, 60.0, 60.0, 13.0, 1.0] :
|
||||
idx == "51313" ? [65.0, 67.0, 115.0, 115.0, 36.0, 2.0] :
|
||||
idx == "51312" ? [60.0, 62.0, 110.0, 110.0, 35.0, 2.0] :
|
||||
idx == "51140" ? [200.0, 203.0, 250.0, 247.0, 37.0, 2.0] :
|
||||
idx == "51310" ? [50.0, 52.0, 95.0, 95.0, 31.0, 2.0] :
|
||||
idx == "51317" ? [85.0, 88.0, 150.0, 150.0, 49.0, 2.5] :
|
||||
idx == "51316" ? [80.0, 82.0, 140.0, 140.0, 44.0, 2.5] :
|
||||
idx == "51315" ? [75.0, 77.0, 135.0, 135.0, 44.0, 2.5] :
|
||||
idx == "51314" ? [70.0, 72.0, 125.0, 125.0, 40.0, 2.0] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* MIT <http://opensource.org/licenses/MIT> */
|
||||
function din11850range2_table_0(idx) =
|
||||
//id, od
|
||||
idx == "150" ? [150.0, 154.0] :
|
||||
idx == "200" ? [200.0, 204.0] :
|
||||
idx == "20" ? [20.0, 23.0] :
|
||||
idx == "10" ? [10.0, 13.0] :
|
||||
idx == "25" ? [26.0, 29.0] :
|
||||
idx == "32" ? [32.0, 35.0] :
|
||||
idx == "50" ? [50.0, 53.0] :
|
||||
idx == "40" ? [38.0, 41.0] :
|
||||
idx == "65" ? [66.0, 70.0] :
|
||||
idx == "6" ? [6.0, 8.0] :
|
||||
idx == "15" ? [16.0, 19.0] :
|
||||
idx == "100" ? [100.0, 104.0] :
|
||||
idx == "80" ? [81.0, 85.0] :
|
||||
idx == "125" ? [125.0, 129.0] :
|
||||
idx == "8" ? [8.0, 10.0] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* MIT <http://opensource.org/licenses/MIT> */
|
|
@ -0,0 +1,22 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function heavydutyplainwasher_table_0(idx) =
|
||||
//d1, d2, s
|
||||
idx == "M10" ? [10.5, 25.0, 4.0] :
|
||||
idx == "M24" ? [25.0, 50.0, 10.0] :
|
||||
idx == "M27" ? [28.0, 60.0, 10.0] :
|
||||
idx == "M20" ? [21.0, 44.0, 8.0] :
|
||||
idx == "M22" ? [23.0, 50.0, 8.0] :
|
||||
idx == "M30" ? [31.0, 68.0, 10.0] :
|
||||
idx == "M5" ? [5.3, 15.0, 2.0] :
|
||||
idx == "M4" ? [4.3, 12.0, 1.6] :
|
||||
idx == "M6" ? [6.4, 17.0, 3.0] :
|
||||
idx == "M14" ? [15.0, 36.0, 6.0] :
|
||||
idx == "M3" ? [3.2, 9.0, 1.0] :
|
||||
idx == "M16" ? [17.0, 40.0, 6.0] :
|
||||
idx == "M18" ? [19.0, 44.0, 8.0] :
|
||||
idx == "M12" ? [13.0, 30.0, 6.0] :
|
||||
idx == "M8" ? [8.4, 21.0, 4.0] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexagonnut1_table_0(idx) =
|
||||
//d1, s, m_max, e_min
|
||||
idx == "M72" ? [72.0, 105.0, 58.0, 116.16] :
|
||||
idx == "M2.5" ? [2.5, 5.0, 2.0, 5.45] :
|
||||
idx == "M56" ? [56.0, 85.0, 45.0, 93.56] :
|
||||
idx == "M2.3" ? [2.3, 4.5, 1.8, 4.88] :
|
||||
idx == "M76" ? [76.0, 110.0, 61.0, 121.81] :
|
||||
idx == "M39" ? [39.0, 60.0, 33.4, 66.44] :
|
||||
idx == "M3.5" ? [3.5, 6.0, 2.8, 6.58] :
|
||||
idx == "M36" ? [36.0, 55.0, 31.0, 60.79] :
|
||||
idx == "M33" ? [33.0, 50.0, 28.7, 55.37] :
|
||||
idx == "M30" ? [30.0, 46.0, 25.6, 50.85] :
|
||||
idx == "M5" ? [5.0, 8.0, 4.7, 8.79] :
|
||||
idx == "M4" ? [4.0, 7.0, 3.2, 7.66] :
|
||||
idx == "M7" ? [7.0, 11.0, 5.5, 12.12] :
|
||||
idx == "M6" ? [6.0, 10.0, 5.2, 11.05] :
|
||||
idx == "M1" ? [1.0, 2.5, 0.8, 2.71] :
|
||||
idx == "M3" ? [3.0, 5.5, 2.4, 6.01] :
|
||||
idx == "M2" ? [2.0, 4.0, 1.6, 4.32] :
|
||||
idx == "M8" ? [8.0, 13.0, 6.8, 14.38] :
|
||||
idx == "M85" ? [85.0, 120.0, 68.0, 133.11] :
|
||||
idx == "M110" ? [110.0, 155.0, 88.0, 172.32] :
|
||||
idx == "M80" ? [80.0, 115.0, 64.0, 127.46] :
|
||||
idx == "M42" ? [42.0, 65.0, 34.0, 71.3] :
|
||||
idx == "M68" ? [68.0, 100.0, 54.0, 110.51] :
|
||||
idx == "M60" ? [60.0, 90.0, 48.0, 99.21] :
|
||||
idx == "M48" ? [48.0, 75.0, 38.0, 82.6] :
|
||||
idx == "M64" ? [64.0, 95.0, 51.0, 104.86] :
|
||||
idx == "M24" ? [24.0, 36.0, 21.5, 39.55] :
|
||||
idx == "M27" ? [27.0, 41.0, 23.8, 45.29] :
|
||||
idx == "M20" ? [20.0, 30.0, 18.0, 32.95] :
|
||||
idx == "M22" ? [22.0, 34.0, 19.4, 37.29] :
|
||||
idx == "M45" ? [45.0, 70.0, 36.0, 76.95] :
|
||||
idx == "M16" ? [16.0, 24.0, 14.8, 26.75] :
|
||||
idx == "M140" ? [140.0, 200.0, 112.0, 220.8] :
|
||||
idx == "M125" ? [125.0, 180.0, 100.0, 200.57] :
|
||||
idx == "M100" ? [100.0, 145.0, 80.0, 161.02] :
|
||||
idx == "M120" ? [120.0, 170.0, 96.0, 190.29] :
|
||||
idx == "M105" ? [105.0, 150.0, 84.0, 167.69] :
|
||||
idx == "M52" ? [52.0, 80.0, 42.0, 88.25] :
|
||||
idx == "M90" ? [90.0, 130.0, 72.0, 144.08] :
|
||||
idx == "M95" ? [95.0, 135.0, 76.0, 150.74] :
|
||||
idx == "M10" ? [10.0, 16.0, 8.4, 17.77] :
|
||||
idx == "M1.2" ? [1.2, 3.0, 1.0, 3.28] :
|
||||
idx == "M12" ? [12.0, 18.0, 10.8, 20.03] :
|
||||
idx == "M1.4" ? [1.4, 3.0, 1.2, 3.28] :
|
||||
idx == "M14" ? [14.0, 21.0, 12.8, 23.35] :
|
||||
idx == "M1.6" ? [1.6, 3.2, 1.3, 3.48] :
|
||||
idx == "M1.7" ? [1.7, 3.4, 1.4, 3.82] :
|
||||
idx == "M1.8" ? [1.8, 3.5, 1.4, 3.82] :
|
||||
idx == "M18" ? [18.0, 27.0, 15.8, 29.56] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexagonnut2_table_0(idx) =
|
||||
//d1, s, m_max, e_min
|
||||
idx == "M72" ? [72.0, 105.0, 58.0, 116.16] :
|
||||
idx == "M2.5" ? [2.5, 5.0, 2.0, 5.45] :
|
||||
idx == "M56" ? [56.0, 85.0, 45.0, 93.56] :
|
||||
idx == "M2.3" ? [2.3, 4.5, 1.8, 4.88] :
|
||||
idx == "M76" ? [76.0, 110.0, 61.0, 121.81] :
|
||||
idx == "M39" ? [39.0, 60.0, 31.0, 66.44] :
|
||||
idx == "M3.5" ? [3.5, 6.0, 2.8, 6.58] :
|
||||
idx == "M36" ? [36.0, 55.0, 29.0, 60.79] :
|
||||
idx == "M33" ? [33.0, 50.0, 26.0, 55.37] :
|
||||
idx == "M30" ? [30.0, 46.0, 24.0, 50.85] :
|
||||
idx == "M5" ? [5.0, 8.0, 4.0, 8.79] :
|
||||
idx == "M4" ? [4.0, 7.0, 3.2, 7.66] :
|
||||
idx == "M7" ? [7.0, 11.0, 5.5, 12.12] :
|
||||
idx == "M6" ? [6.0, 10.0, 5.0, 11.05] :
|
||||
idx == "M1" ? [1.0, 2.5, 0.8, 2.71] :
|
||||
idx == "M3" ? [3.0, 5.5, 2.4, 6.01] :
|
||||
idx == "M2" ? [2.0, 4.0, 1.6, 4.32] :
|
||||
idx == "M8" ? [8.0, 13.0, 6.5, 14.38] :
|
||||
idx == "M85" ? [85.0, 120.0, 68.0, 133.11] :
|
||||
idx == "M110" ? [110.0, 155.0, 88.0, 172.32] :
|
||||
idx == "M80" ? [80.0, 115.0, 64.0, 127.46] :
|
||||
idx == "M42" ? [42.0, 65.0, 34.0, 71.3] :
|
||||
idx == "M68" ? [68.0, 100.0, 54.0, 110.51] :
|
||||
idx == "M60" ? [60.0, 90.0, 48.0, 99.21] :
|
||||
idx == "M48" ? [48.0, 75.0, 38.0, 82.6] :
|
||||
idx == "M64" ? [64.0, 95.0, 51.0, 104.86] :
|
||||
idx == "M24" ? [24.0, 36.0, 19.0, 39.55] :
|
||||
idx == "M27" ? [27.0, 41.0, 22.0, 45.29] :
|
||||
idx == "M20" ? [20.0, 30.0, 16.0, 32.95] :
|
||||
idx == "M22" ? [22.0, 32.0, 18.0, 35.03] :
|
||||
idx == "M45" ? [45.0, 70.0, 36.0, 76.95] :
|
||||
idx == "M16" ? [16.0, 24.0, 13.0, 26.75] :
|
||||
idx == "M140" ? [140.0, 200.0, 112.0, 220.8] :
|
||||
idx == "M125" ? [125.0, 180.0, 100.0, 200.57] :
|
||||
idx == "M100" ? [100.0, 145.0, 80.0, 161.02] :
|
||||
idx == "M120" ? [120.0, 170.0, 96.0, 190.29] :
|
||||
idx == "M105" ? [105.0, 150.0, 84.0, 167.69] :
|
||||
idx == "M52" ? [52.0, 80.0, 42.0, 88.25] :
|
||||
idx == "M90" ? [90.0, 130.0, 72.0, 144.08] :
|
||||
idx == "M95" ? [95.0, 135.0, 76.0, 150.74] :
|
||||
idx == "M10" ? [10.0, 17.0, 8.0, 18.9] :
|
||||
idx == "M1.2" ? [1.2, 3.0, 1.0, 3.28] :
|
||||
idx == "M12" ? [12.0, 19.0, 10.0, 21.1] :
|
||||
idx == "M1.4" ? [1.4, 3.0, 1.2, 3.28] :
|
||||
idx == "M14" ? [14.0, 22.0, 11.0, 24.49] :
|
||||
idx == "M1.6" ? [1.6, 3.2, 1.3, 3.48] :
|
||||
idx == "M1.7" ? [1.7, 3.4, 1.4, 3.82] :
|
||||
idx == "M1.8" ? [1.8, 3.5, 1.4, 3.82] :
|
||||
idx == "M18" ? [18.0, 27.0, 15.0, 29.56] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,27 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexagonnut3_table_0(idx) =
|
||||
//d1, s, m_max
|
||||
idx == "3/8 in" ? [0.375, 0.5625, 0.328125] :
|
||||
idx == "2 in" ? [2.0, 3.0, 1.71875] :
|
||||
idx == "7/8 in" ? [0.875, 1.3125, 0.75] :
|
||||
idx == "3/4 in" ? [0.75, 1.125, 0.640625] :
|
||||
idx == "3 in" ? [3.0, 4.5, 2.59375] :
|
||||
idx == "1-3/8 in" ? [1.375, 2.0625, 1.171875] :
|
||||
idx == "9/16 in" ? [0.5625, 0.875, 0.484375] :
|
||||
idx == "5/8 in" ? [0.625, 0.9375, 0.546875] :
|
||||
idx == "2-3/4 in" ? [2.75, 4.125, 2.375] :
|
||||
idx == "1-1/8 in" ? [1.125, 1.6875, 0.96875] :
|
||||
idx == "1-5/8 in" ? [1.625, 2.4375, 1.390625] :
|
||||
idx == "1/4 in" ? [0.25, 0.4375, 0.21875] :
|
||||
idx == "1-1/2 in" ? [1.5, 2.25, 1.28125] :
|
||||
idx == "1/2 in" ? [0.5, 0.75, 0.4375] :
|
||||
idx == "1 in" ? [1.0, 1.5, 0.859375] :
|
||||
idx == "7/16 in" ? [0.4375, 0.6875, 0.375] :
|
||||
idx == "2-1/2 in" ? [2.5, 3.75, 2.15625] :
|
||||
idx == "5/16 in" ? [0.3125, 0.5, 0.265625] :
|
||||
idx == "2-1/4 in" ? [2.25, 3.375, 1.9375] :
|
||||
idx == "1-3/4 in" ? [1.75, 2.625, 1.5] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexagonthinnut1_table_0(idx) =
|
||||
//d1, s, m_max, e_min
|
||||
idx == "M2.6" ? [2.6, 5.5, 1.8, 6.01] :
|
||||
idx == "M2.5" ? [2.5, 5.0, 1.6, 5.45] :
|
||||
idx == "M56" ? [56.0, 85.0, 28.0, 93.56] :
|
||||
idx == "M2.3" ? [2.3, 4.5, 1.2, 5.2] :
|
||||
idx == "M39" ? [39.0, 60.0, 19.5, 66.44] :
|
||||
idx == "M3.5" ? [3.5, 6.0, 2.0, 6.58] :
|
||||
idx == "M36" ? [36.0, 55.0, 18.0, 60.79] :
|
||||
idx == "M33" ? [33.0, 50.0, 16.5, 55.37] :
|
||||
idx == "M30" ? [20.0, 46.0, 15.0, 50.85] :
|
||||
idx == "M5" ? [5.0, 8.0, 2.7, 8.79] :
|
||||
idx == "M4" ? [4.0, 7.0, 2.2, 7.66] :
|
||||
idx == "M6" ? [6.0, 10.0, 3.2, 11.05] :
|
||||
idx == "M3" ? [3.0, 5.5, 1.8, 6.01] :
|
||||
idx == "M2" ? [2.0, 4.0, 1.2, 4.32] :
|
||||
idx == "M8" ? [8.0, 13.0, 4.0, 14.38] :
|
||||
idx == "M52" ? [42.0, 80.0, 26.0, 88.25] :
|
||||
idx == "M24" ? [24.0, 36.0, 12.0, 39.55] :
|
||||
idx == "M60" ? [60.0, 90.0, 30.0, 99.21] :
|
||||
idx == "M48" ? [48.0, 75.0, 24.0, 82.6] :
|
||||
idx == "M64" ? [64.0, 95.0, 32.0, 104.86] :
|
||||
idx == "M42" ? [42.0, 65.0, 21.0, 71.3] :
|
||||
idx == "M27" ? [27.0, 41.0, 13.5, 45.2] :
|
||||
idx == "M20" ? [20.0, 30.0, 10.0, 32.95] :
|
||||
idx == "M22" ? [22.0, 34.0, 11.0, 37.29] :
|
||||
idx == "M45" ? [45.0, 70.0, 22.5, 76.95] :
|
||||
idx == "M16" ? [16.0, 24.0, 8.0, 26.75] :
|
||||
idx == "M10" ? [10.0, 16.0, 5.0, 17.77] :
|
||||
idx == "M12" ? [12.0, 18.0, 6.0, 20.03] :
|
||||
idx == "M14" ? [14.0, 21.0, 7.0, 23.35] :
|
||||
idx == "M1.6" ? [1.6, 3.2, 1.0, 3.48] :
|
||||
idx == "M1.7" ? [1.7, 3.2, 1.0, 3.48] :
|
||||
idx == "M18" ? [18.0, 27.0, 9.0, 29.56] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,39 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexagonthinnut2_table_0(idx) =
|
||||
//d1, s, m_max, e_min
|
||||
idx == "M2.6" ? [2.6, 5.5, 1.8, 6.01] :
|
||||
idx == "M2.5" ? [2.5, 5.0, 1.6, 5.45] :
|
||||
idx == "M56" ? [56.0, 85.0, 28.0, 93.56] :
|
||||
idx == "M2.3" ? [2.3, 4.5, 1.2, 5.2] :
|
||||
idx == "M39" ? [39.0, 60.0, 19.5, 66.44] :
|
||||
idx == "M3.5" ? [3.5, 6.0, 2.0, 6.58] :
|
||||
idx == "M36" ? [36.0, 55.0, 18.0, 60.79] :
|
||||
idx == "M33" ? [33.0, 50.0, 16.5, 55.37] :
|
||||
idx == "M30" ? [20.0, 46.0, 15.0, 50.85] :
|
||||
idx == "M5" ? [5.0, 8.0, 2.7, 8.79] :
|
||||
idx == "M4" ? [4.0, 7.0, 2.2, 7.66] :
|
||||
idx == "M6" ? [6.0, 10.0, 3.2, 11.05] :
|
||||
idx == "M3" ? [3.0, 5.5, 1.8, 6.01] :
|
||||
idx == "M2" ? [2.0, 4.0, 1.2, 4.32] :
|
||||
idx == "M8" ? [8.0, 13.0, 4.0, 14.38] :
|
||||
idx == "M52" ? [42.0, 80.0, 26.0, 88.25] :
|
||||
idx == "M24" ? [24.0, 36.0, 12.0, 39.55] :
|
||||
idx == "M60" ? [60.0, 90.0, 30.0, 99.21] :
|
||||
idx == "M48" ? [48.0, 75.0, 24.0, 82.6] :
|
||||
idx == "M64" ? [64.0, 95.0, 32.0, 104.86] :
|
||||
idx == "M42" ? [42.0, 65.0, 21.0, 71.3] :
|
||||
idx == "M27" ? [27.0, 41.0, 13.5, 45.2] :
|
||||
idx == "M20" ? [20.0, 30.0, 10.0, 32.95] :
|
||||
idx == "M22" ? [22.0, 32.0, 11.0, 35.03] :
|
||||
idx == "M45" ? [45.0, 70.0, 22.5, 76.95] :
|
||||
idx == "M16" ? [16.0, 24.0, 8.0, 26.75] :
|
||||
idx == "M10" ? [10.0, 17.0, 5.0, 18.9] :
|
||||
idx == "M12" ? [12.0, 19.0, 6.0, 21.1] :
|
||||
idx == "M14" ? [14.0, 22.0, 7.0, 24.49] :
|
||||
idx == "M1.6" ? [1.6, 3.2, 1.0, 3.48] :
|
||||
idx == "M1.7" ? [1.7, 3.2, 1.0, 3.48] :
|
||||
idx == "M18" ? [18.0, 27.0, 9.0, 29.56] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexbolt1_table_0(idx) =
|
||||
//d1, k, s, b1, b2, b3, e
|
||||
idx == "M56" ? [56.0, 35.0, 85.0, "None", 124.0, 137.0, 93.56] :
|
||||
idx == "M39" ? [39.0, 25.0, 60.0, 84.0, 90.0, 103.0, 66.44] :
|
||||
idx == "M52" ? [52.0, 33.0, 80.0, "None", 116.0, 129.0, 88.25] :
|
||||
idx == "M36" ? [36.0, 22.5, 55.0, 78.0, 84.0, 97.0, 60.79] :
|
||||
idx == "M33" ? [33.0, 21.0, 50.0, 72.0, 78.0, 91.0, 55.37] :
|
||||
idx == "M30" ? [30.0, 18.7, 46.0, 66.0, 72.0, 85.0, 50.85] :
|
||||
idx == "M5" ? [5.0, 3.5, 8.0, 16.0, "None", "None", 8.79] :
|
||||
idx == "M4" ? [4.0, 2.8, 7.0, 14.0, "None", "None", 7.66] :
|
||||
idx == "M7" ? [7.0, 4.8, 11.0, 20.0, 26.0, "None", 12.12] :
|
||||
idx == "M6" ? [6.0, 4.0, 10.0, 18.0, 24.0, "None", 11.05] :
|
||||
idx == "M3" ? [3.0, 2.0, 5.5, 12.0, "None", "None", 6.01] :
|
||||
idx == "M8" ? [8.0, 5.3, 13.0, 22.0, 28.0, "None", 14.38] :
|
||||
idx == "M24" ? [24.0, 15.0, 36.0, 54.0, 60.0, 73.0, 39.98] :
|
||||
idx == "M60" ? [60.0, 38.0, 90.0, "None", 132.0, 145.0, 99.21] :
|
||||
idx == "M48" ? [48.0, 30.0, 75.0, 102.0, 108.0, 121.0, 82.6] :
|
||||
idx == "M64" ? [64.0, 40.0, 95.0, "None", 140.0, 153.0, 104.86] :
|
||||
idx == "M42" ? [42.0, 26.0, 65.0, 90.0, 96.0, 109.0, 71.3] :
|
||||
idx == "M27" ? [27.0, 17.0, 41.0, 60.0, 66.0, 79.0, 45.2] :
|
||||
idx == "M20" ? [20.0, 12.5, 30.0, 46.0, 52.0, 65.0, 33.53] :
|
||||
idx == "M22" ? [22.0, 14.0, 32.0, 50.0, 56.0, 69.0, 35.72] :
|
||||
idx == "M45" ? [45.0, 28.0, 70.0, 96.0, 102.0, 115.0, 76.95] :
|
||||
idx == "M10" ? [10.0, 6.4, 17.0, 26.0, 32.0, 45.0, 18.9] :
|
||||
idx == "M12" ? [12.0, 7.5, 19.0, 30.0, 36.0, 49.0, 21.1] :
|
||||
idx == "M14" ? [14.0, 8.8, 22.0, 34.0, 40.0, 53.0, 24.49] :
|
||||
idx == "M16" ? [16.0, 10.0, 24.0, 38.0, 44.0, 57.0, 26.75] :
|
||||
idx == "M18" ? [18.0, 11.5, 27.0, 42.0, 48.0, 61.0, 30.14] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,33 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexbolt2_table_0(idx) =
|
||||
//d1, k, s, b1, b2, b3, e
|
||||
idx == "M56" ? [56.0, 35.0, 85.0, "None", 124.0, 137.0, 93.56] :
|
||||
idx == "M39" ? [39.0, 25.0, 60.0, 84.0, 90.0, 103.0, 66.44] :
|
||||
idx == "M52" ? [52.0, 33.0, 80.0, "None", 116.0, 129.0, 88.25] :
|
||||
idx == "M36" ? [36.0, 22.5, 55.0, 78.0, 84.0, 97.0, 60.79] :
|
||||
idx == "M33" ? [33.0, 21.0, 50.0, 72.0, 78.0, 91.0, 55.37] :
|
||||
idx == "M30" ? [30.0, 18.7, 46.0, 66.0, 72.0, 85.0, 50.85] :
|
||||
idx == "M5" ? [5.0, 3.5, 8.0, 16.0, "None", "None", 8.79] :
|
||||
idx == "M4" ? [4.0, 2.8, 7.0, 14.0, "None", "None", 7.66] :
|
||||
idx == "M7" ? [7.0, 4.8, 11.0, 20.0, 26.0, "None", 12.12] :
|
||||
idx == "M6" ? [6.0, 4.0, 10.0, 18.0, 24.0, "None", 11.05] :
|
||||
idx == "M3" ? [3.0, 2.0, 5.5, 12.0, "None", "None", 6.01] :
|
||||
idx == "M8" ? [8.0, 5.3, 13.0, 22.0, 28.0, "None", 14.38] :
|
||||
idx == "M24" ? [24.0, 15.0, 36.0, 54.0, 60.0, 73.0, 39.98] :
|
||||
idx == "M60" ? [60.0, 38.0, 90.0, "None", 132.0, 145.0, 99.21] :
|
||||
idx == "M48" ? [48.0, 30.0, 75.0, 102.0, 108.0, 121.0, 82.6] :
|
||||
idx == "M64" ? [64.0, 40.0, 95.0, "None", 140.0, 153.0, 104.86] :
|
||||
idx == "M42" ? [42.0, 26.0, 65.0, 90.0, 96.0, 109.0, 71.3] :
|
||||
idx == "M27" ? [27.0, 17.0, 41.0, 60.0, 66.0, 79.0, 45.2] :
|
||||
idx == "M20" ? [20.0, 12.5, 30.0, 46.0, 52.0, 65.0, 33.53] :
|
||||
idx == "M22" ? [22.0, 14.0, 34.0, 50.0, 56.0, 69.0, 35.72] :
|
||||
idx == "M45" ? [45.0, 28.0, 70.0, 96.0, 102.0, 115.0, 76.95] :
|
||||
idx == "M10" ? [10.0, 6.4, 16.0, 26.0, 32.0, 45.0, 18.9] :
|
||||
idx == "M12" ? [12.0, 7.5, 18.0, 30.0, 36.0, 49.0, 21.1] :
|
||||
idx == "M14" ? [14.0, 8.8, 21.0, 34.0, 40.0, 53.0, 24.49] :
|
||||
idx == "M16" ? [16.0, 10.0, 24.0, 38.0, 44.0, 57.0, 26.75] :
|
||||
idx == "M18" ? [18.0, 11.5, 27.0, 42.0, 48.0, 61.0, 30.14] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,153 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexscrew1_table_0(idx) =
|
||||
//d1, k, s, e, h, pitch
|
||||
idx == "M2.5" ? [2.5, 1.7, 5.0, 5.45, "None", 0.45] :
|
||||
idx == "M39" ? [39.0, 25.0, 60.0, 66.44, "None", 4.0] :
|
||||
idx == "M52" ? [52.0, 33.0, 80.0, 88.25, "None", 5.0] :
|
||||
idx == "M36" ? [36.0, 22.5, 55.0, 60.79, 12.0, 4.0] :
|
||||
idx == "M33" ? [33.0, 21.0, 50.0, 55.37, 10.5, 3.5] :
|
||||
idx == "M30" ? [30.0, 18.7, 46.0, 50.85, 10.5, 3.5] :
|
||||
idx == "M5" ? [5.0, 3.5, 8.0, 8.79, 2.4, 0.8] :
|
||||
idx == "M4" ? [4.0, 2.8, 7.0, 7.66, 2.1, 0.7] :
|
||||
idx == "M7" ? [7.0, 4.8, 11.0, 12.12, "None", 1.0] :
|
||||
idx == "M6" ? [6.0, 4.0, 10.0, 11.05, 3.0, 1.0] :
|
||||
idx == "M3" ? [3.0, 2.0, 5.5, 6.01, 1.5, 0.5] :
|
||||
idx == "M2" ? [2.0, 1.4, 4.0, 4.32, "None", 0.4] :
|
||||
idx == "M8" ? [8.0, 5.3, 13.0, 14.38, 3.75, 1.25] :
|
||||
idx == "M3.5" ? [3.5, 2.4, 6.0, 6.58, "None", 0.6] :
|
||||
idx == "M24" ? [24.0, 15.0, 36.0, 39.98, 9.0, 3.0] :
|
||||
idx == "M48" ? [48.0, 30.0, 75.0, 82.6, "None", 5.0] :
|
||||
idx == "M64" ? [64.0, 40.0, 95.0, 104.86, "None", 6.0] :
|
||||
idx == "M42" ? [42.0, 26.0, 65.0, 71.3, "None", 4.5] :
|
||||
idx == "M27" ? [27.0, 17.0, 41.0, 45.2, 9.0, 3.0] :
|
||||
idx == "M20" ? [20.0, 12.5, 30.0, 33.53, 7.5, 2.5] :
|
||||
idx == "M22" ? [22.0, 14.0, 32.0, 35.72, 7.5, 2.5] :
|
||||
idx == "M45" ? [45.0, 28.0, 70.0, 76.95, "None", 4.5] :
|
||||
idx == "M10" ? [10.0, 6.4, 17.0, 18.9, 4.5, 1.5] :
|
||||
idx == "M12" ? [12.0, 7.5, 19.0, 21.1, 5.25, 1.75] :
|
||||
idx == "M14" ? [14.0, 8.8, 22.0, 24.49, 6.0, 2.0] :
|
||||
idx == "M1.6" ? [1.6, 1.1, 3.2, 3.48, "None", 0.35] :
|
||||
idx == "M16" ? [16.0, 10.0, 24.0, 26.75, 6.0, 2.0] :
|
||||
idx == "M18" ? [18.0, 11.5, 27.0, 30.14, 7.5, 2.5] :
|
||||
"Error";
|
||||
|
||||
function hexscrew1_table2d_0(rowidx,colidx) =
|
||||
colidx == "coarse" ? hexscrew1_table2d_rows_0(rowidx)[0] :
|
||||
colidx == "fine I" ? hexscrew1_table2d_rows_0(rowidx)[1] :
|
||||
colidx == "fine II" ? hexscrew1_table2d_rows_0(rowidx)[2] :
|
||||
colidx == "fine III" ? hexscrew1_table2d_rows_0(rowidx)[3] :
|
||||
colidx == "fine IV" ? hexscrew1_table2d_rows_0(rowidx)[4] :
|
||||
"Error";
|
||||
|
||||
function hexscrew1_table2d_rows_0(rowidx) =
|
||||
rowidx == "M2.6" ? [0.45, 0.35, "None", "None", "None"] :
|
||||
rowidx == "M2.5" ? [0.45, 0.35, "None", "None", "None"] :
|
||||
rowidx == "M56" ? [5.5, "None", 4.0, "None", 2.0] :
|
||||
rowidx == "M2.3" ? [0.4, 0.25, "None", "None", "None"] :
|
||||
rowidx == "M2.2" ? [0.45, 0.25, "None", "None", "None"] :
|
||||
rowidx == "M39" ? [4.0, 3.0, 2.0, 1.5, "None"] :
|
||||
rowidx == "M3.5" ? [0.6, 0.35, "None", "None", "None"] :
|
||||
rowidx == "M36" ? [4.0, 3.0, 2.0, 1.5, "None"] :
|
||||
rowidx == "M33" ? [3.5, 3.0, 2.0, 1.5, "None"] :
|
||||
rowidx == "M32" ? ["None", "None", 2.0, 1.5, "None"] :
|
||||
rowidx == "M30" ? [3.5, 3.0, 2.0, 1.5, 1.0] :
|
||||
rowidx == "M5" ? [0.8, 0.5, "None", "None", "None"] :
|
||||
rowidx == "M4" ? [0.7, 0.5, "None", "None", "None"] :
|
||||
rowidx == "M7" ? [1.0, 0.75, "None", "None", "None"] :
|
||||
rowidx == "M6" ? [1.0, 0.75, "None", "None", "None"] :
|
||||
rowidx == "M1" ? [0.25, 0.2, "None", "None", "None"] :
|
||||
rowidx == "M3" ? [0.5, 0.35, "None", "None", "None"] :
|
||||
rowidx == "M2" ? [0.4, 0.25, "None", "None", "None"] :
|
||||
rowidx == "M64" ? [6.0, "None", 4.0, "None", "None"] :
|
||||
rowidx == "M9" ? [1.25, 1.0, 0.75, "None", "None"] :
|
||||
rowidx == "M8" ? [1.25, 1.0, 0.75, "None", "None"] :
|
||||
rowidx == "M10" ? [1.5, 1.25, 1.0, 0.75, "None"] :
|
||||
rowidx == "M38" ? ["None", "None", "None", 1.5, "None"] :
|
||||
rowidx == "M42" ? [4.5, 4.0, 3.0, 2.0, 1.5] :
|
||||
rowidx == "M1.4" ? [0.3, 0.2, "None", "None", "None"] :
|
||||
rowidx == "M40" ? ["None", 3.0, 2.0, 1.5, "None"] :
|
||||
rowidx == "M60" ? [5.5, "None", 4.0, "None", 2.0] :
|
||||
rowidx == "M48" ? [5.0, 4.0, 3.0, 2.0, 1.5] :
|
||||
rowidx == "M28" ? ["None", 2.0, 1.5, 1.0, "None"] :
|
||||
rowidx == "M24" ? [3.0, 2.0, 1.5, 1.0, "None"] :
|
||||
rowidx == "M26" ? ["None", "None", 1.5, "None", "None"] :
|
||||
rowidx == "M27" ? [3.0, 2.0, 1.5, 1.0, "None"] :
|
||||
rowidx == "M20" ? [2.5, 2.0, 1.5, 1.0, "None"] :
|
||||
rowidx == "M22" ? [2.5, 2.0, 1.5, 1.0, "None"] :
|
||||
rowidx == "M45" ? [4.5, 4.0, 3.0, 2.0, 1.5] :
|
||||
rowidx == "M16" ? [2.0, 1.5, "None", 1.0, "None"] :
|
||||
rowidx == "M52" ? [5.0, 4.0, 3.0, 2.0, 1.5] :
|
||||
rowidx == "M68" ? [6.0, "None", 4.0, "None", "None"] :
|
||||
rowidx == "M11" ? [1.5, "None", 1.0, 0.75, "None"] :
|
||||
rowidx == "M1.1" ? [0.25, 0.2, "None", "None", "None"] :
|
||||
rowidx == "M1.2" ? [0.25, 0.2, "None", "None", "None"] :
|
||||
rowidx == "M12" ? [1.75, 1.5, 1.25, 1.0, "None"] :
|
||||
rowidx == "M4.5" ? [0.75, 0.5, "None", "None", "None"] :
|
||||
rowidx == "M14" ? [2.0, 1.5, 1.25, 1.0, "None"] :
|
||||
rowidx == "M1.6" ? [0.35, 0.2, "None", "None", "None"] :
|
||||
rowidx == "M1.7" ? [0.35, 0.2, "None", "None", "None"] :
|
||||
rowidx == "M1.8" ? [0.35, 0.2, "None", "None", "None"] :
|
||||
rowidx == "M18" ? [2.5, 2.0, 1.5, 1.0, "None"] :
|
||||
"Error";
|
||||
|
||||
function hexscrew1_table2d_1(rowidx,colidx) =
|
||||
colidx == "coarse" ? hexscrew1_table2d_rows_1(rowidx)[0] :
|
||||
colidx == "fine I" ? hexscrew1_table2d_rows_1(rowidx)[1] :
|
||||
colidx == "fine II" ? hexscrew1_table2d_rows_1(rowidx)[2] :
|
||||
colidx == "fine III" ? hexscrew1_table2d_rows_1(rowidx)[3] :
|
||||
colidx == "fine IV" ? hexscrew1_table2d_rows_1(rowidx)[4] :
|
||||
"Error";
|
||||
|
||||
function hexscrew1_table2d_rows_1(rowidx) =
|
||||
rowidx == "M2.6" ? ["", "x0.35", "", "", ""] :
|
||||
rowidx == "M2.5" ? ["", "x0.35", "", "", ""] :
|
||||
rowidx == "M56" ? ["", "", "x4", "", "x2"] :
|
||||
rowidx == "M2.3" ? ["", "x0.25", "", "", ""] :
|
||||
rowidx == "M2.2" ? ["", "x0.25", "", "", ""] :
|
||||
rowidx == "M39" ? ["", "x3", "x2", "x1.5", ""] :
|
||||
rowidx == "M3.5" ? ["", "x0.35", "", "", ""] :
|
||||
rowidx == "M36" ? ["", "x3", "x2", "x1.5", ""] :
|
||||
rowidx == "M33" ? ["", "x3", "x2", "x1.5", ""] :
|
||||
rowidx == "M32" ? ["", "", "x2", "x1.5", ""] :
|
||||
rowidx == "M30" ? ["", "x3", "x2", "x1.5", "x1"] :
|
||||
rowidx == "M5" ? ["", "x0.5", "", "", ""] :
|
||||
rowidx == "M4" ? ["", "x0.5", "", "", ""] :
|
||||
rowidx == "M7" ? ["", "x0.75", "", "", ""] :
|
||||
rowidx == "M6" ? ["", "x0.75", "", "", ""] :
|
||||
rowidx == "M1" ? ["", "x0.2", "", "", ""] :
|
||||
rowidx == "M3" ? ["", "x0.35", "", "", ""] :
|
||||
rowidx == "M2" ? ["", "x0.25", "", "", ""] :
|
||||
rowidx == "M64" ? ["", "", "x4", "", ""] :
|
||||
rowidx == "M9" ? ["", "x1", "x0.75", "", ""] :
|
||||
rowidx == "M8" ? ["", "x1", "x0.75", "", ""] :
|
||||
rowidx == "M10" ? ["", "x1.25", "x1", "x0.75", ""] :
|
||||
rowidx == "M38" ? ["", "", "", "x1.5", ""] :
|
||||
rowidx == "M42" ? ["", "x4", "x3", "x2", "x1.5"] :
|
||||
rowidx == "M1.4" ? ["", "x0.2", "", "", ""] :
|
||||
rowidx == "M40" ? ["", "x3", "x2", "x1.5", ""] :
|
||||
rowidx == "M60" ? ["", "", "x4", "", "x2"] :
|
||||
rowidx == "M48" ? ["", "x4", "x3", "x2", "x1.5"] :
|
||||
rowidx == "M28" ? ["", "x2", "x1.5", "x1", ""] :
|
||||
rowidx == "M24" ? ["", "x2", "x1.5", "x1", ""] :
|
||||
rowidx == "M26" ? ["", "", "x1.5", "", ""] :
|
||||
rowidx == "M27" ? ["", "x2", "x1.5", "x1", ""] :
|
||||
rowidx == "M20" ? ["", "x2", "x1.5", "x1", ""] :
|
||||
rowidx == "M22" ? ["", "x2", "x1.5", "x1", ""] :
|
||||
rowidx == "M45" ? ["", "x4", "x3", "x2", "x1.5"] :
|
||||
rowidx == "M16" ? ["", "x1.5", "", "x1", ""] :
|
||||
rowidx == "M52" ? ["", "x4", "x3", "x2", "x1.5"] :
|
||||
rowidx == "M68" ? ["", "", "x4", "", ""] :
|
||||
rowidx == "M11" ? ["", "", "x1", "x0.75", ""] :
|
||||
rowidx == "M1.1" ? ["", "x0.2", "", "", ""] :
|
||||
rowidx == "M1.2" ? ["", "x0.2", "", "", ""] :
|
||||
rowidx == "M12" ? ["", "x1.5", "x1.25", "x1", ""] :
|
||||
rowidx == "M4.5" ? ["", "x0.5", "", "", ""] :
|
||||
rowidx == "M14" ? ["", "x1.5", "x1.25", "x1", ""] :
|
||||
rowidx == "M1.6" ? ["", "x0.2", "", "", ""] :
|
||||
rowidx == "M1.7" ? ["", "x0.2", "", "", ""] :
|
||||
rowidx == "M1.8" ? ["", "x0.2", "", "", ""] :
|
||||
rowidx == "M18" ? ["", "x2", "x1.5", "x1", ""] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,35 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexscrew2_table_0(idx) =
|
||||
//d1, k, s, e, h
|
||||
idx == "M2.5" ? [2.5, 1.7, 5.0, 5.45, "None"] :
|
||||
idx == "M39" ? [39.0, 25.0, 60.0, 66.44, "None"] :
|
||||
idx == "M52" ? [52.0, 33.0, 80.0, 88.25, "None"] :
|
||||
idx == "M36" ? [36.0, 22.5, 55.0, 60.79, 12.0] :
|
||||
idx == "M33" ? [33.0, 21.0, 50.0, 55.37, 10.5] :
|
||||
idx == "M30" ? [30.0, 18.7, 46.0, 50.85, 10.5] :
|
||||
idx == "M5" ? [5.0, 3.5, 8.0, 8.79, 2.4] :
|
||||
idx == "M4" ? [4.0, 2.8, 7.0, 7.66, 2.1] :
|
||||
idx == "M7" ? [7.0, 4.8, 11.0, 12.12, "None"] :
|
||||
idx == "M6" ? [6.0, 4.0, 10.0, 11.05, 3.0] :
|
||||
idx == "M3" ? [3.0, 2.0, 5.5, 6.01, 1.5] :
|
||||
idx == "M2" ? [2.0, 1.4, 4.0, 4.32, "None"] :
|
||||
idx == "M8" ? [8.0, 5.3, 13.0, 14.38, 3.75] :
|
||||
idx == "M3.5" ? [3.5, 2.4, 6.0, 6.58, "None"] :
|
||||
idx == "M24" ? [24.0, 15.0, 36.0, 39.98, 9.0] :
|
||||
idx == "M48" ? [48.0, 30.0, 75.0, 82.6, "None"] :
|
||||
idx == "M64" ? [64.0, 40.0, 95.0, 104.86, "None"] :
|
||||
idx == "M42" ? [42.0, 26.0, 65.0, 71.3, "None"] :
|
||||
idx == "M27" ? [27.0, 17.0, 41.0, 45.2, 9.0] :
|
||||
idx == "M20" ? [20.0, 12.5, 30.0, 33.53, 7.5] :
|
||||
idx == "M22" ? [22.0, 14.0, 32.0, 35.72, 7.5] :
|
||||
idx == "M45" ? [45.0, 28.0, 70.0, 76.95, "None"] :
|
||||
idx == "M10" ? [10.0, 6.4, 16.0, 18.9, 4.5] :
|
||||
idx == "M12" ? [12.0, 7.5, 18.0, 21.1, 5.25] :
|
||||
idx == "M14" ? [14.0, 8.8, 22.0, 24.49, 6.0] :
|
||||
idx == "M1.6" ? [1.6, 1.1, 3.2, 3.48, "None"] :
|
||||
idx == "M16" ? [16.0, 10.0, 24.0, 26.75, 6.0] :
|
||||
idx == "M18" ? [18.0, 11.5, 27.0, 30.14, 7.5] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,22 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexsocketcountersunk_table_0(idx) =
|
||||
//d1, d2, b1, b2, b3, k_max, s, t, alpha, L, h_max
|
||||
idx == "M2.5" ? [2.5, 5.0, "None", "None", "None", 1.5, 1.5, "None", 90.0, 16.0, "None"] :
|
||||
idx == "M10" ? [10.0, 20.0, 26.0, 32.0, 45.0, 5.5, 6.0, 4.4, 90.0, 55.0, 10.0] :
|
||||
idx == "M24" ? [24.0, 39.0, 54.0, 60.0, "None", 14.0, 14.0, 10.3, 60.0, 90.0, 23.0] :
|
||||
idx == "M16" ? [16.0, 30.0, 38.0, 44.0, 57.0, 7.5, 10.0, 5.3, 90.0, 70.0, 13.5] :
|
||||
idx == "M20" ? [20.0, 36.0, 46.0, 52.0, 65.0, 8.5, 12.0, 5.9, 90.0, 90.0, 16.0] :
|
||||
idx == "M22" ? [22.0, 36.0, "None", "None", "None", 13.1, 14.0, "None", "None", "None", "None"] :
|
||||
idx == "M5" ? [5.0, 10.0, 16.0, "None", "None", 2.8, 3.0, 2.3, 90.0, 35.0, 5.2] :
|
||||
idx == "M4" ? [4.0, 8.0, 14.0, "None", "None", 2.3, 2.5, 1.8, 90.0, 30.0, 4.4] :
|
||||
idx == "M6" ? [6.0, 12.0, 18.0, 24.0, "None", 3.3, 4.0, 2.5, 90.0, 40.0, 6.3] :
|
||||
idx == "M14" ? [14.0, 27.0, 34.0, 40.0, "None", 7.0, 10.0, 4.8, 90.0, 65.0, 13.0] :
|
||||
idx == "M3" ? [3.0, 6.0, 12.0, "None", "None", 1.7, 2.0, 1.2, 90.0, 30.0, 3.2] :
|
||||
idx == "M2" ? [2.0, 4.0, "None", "None", "None", 1.2, 1.25, "None", 90.0, 12.0, "None"] :
|
||||
idx == "M18" ? [18.0, 33.0, 43.0, "None", "None", 8.0, 12.0, "None", 90.0, 60.0, "None"] :
|
||||
idx == "M12" ? [12.0, 24.0, 30.0, 36.0, 49.0, 6.5, 8.0, 4.6, 90.0, 60.0, 11.8] :
|
||||
idx == "M8" ? [8.0, 16.0, 22.0, 28.0, "None", 4.4, 5.0, 3.5, 90.0, 45.0, 8.2] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function hexsocketheadcap_table_0(idx) =
|
||||
//d1, d2, b, k, s, t_min, L
|
||||
idx == "M2.5" ? [2.5, 4.5, 17.0, 2.5, 2.0, 1.1, 25.0] :
|
||||
idx == "M56" ? [56.0, 84.0, 124.0, 56.0, 41.0, 34.0, "None"] :
|
||||
idx == "M52" ? [52.0, 78.0, 116.0, 52.0, 36.0, 31.0, "None"] :
|
||||
idx == "M36" ? [36.0, 54.0, 84.0, 36.0, 27.0, 19.0, 110.0] :
|
||||
idx == "M33" ? [33.0, 50.0, 78.0, 33.0, 24.0, 18.0, 100.0] :
|
||||
idx == "M30" ? [30.0, 45.0, 72.0, 30.0, 22.0, 15.5, 100.0] :
|
||||
idx == "M5" ? [5.0, 8.5, 22.0, 5.0, 4.0, 2.5, 25.0] :
|
||||
idx == "M4" ? [4.0, 7.0, 20.0, 4.0, 3.0, 2.0, 25.0] :
|
||||
idx == "M6" ? [6.0, 10.0, 24.0, 6.0, 5.0, 3.0, 30.0] :
|
||||
idx == "M3" ? [3.0, 5.5, 18.0, 3.0, 2.5, 1.3, 20.0] :
|
||||
idx == "M2" ? [2.0, 3.8, 16.0, 2.0, 1.5, 1.0, 20.0] :
|
||||
idx == "M8" ? [8.0, 13.0, 28.0, 8.0, 6.0, 4.0, 35.0] :
|
||||
idx == "M24" ? [24.0, 36.0, 60.0, 24.0, 19.0, 12.0, 80.0] :
|
||||
idx == "M48" ? [48.0, 72.0, 108.0, 48.0, 36.0, 28.0, 150.0] :
|
||||
idx == "M64" ? [64.0, 96.0, 140.0, 64.0, 46.0, 38.0, "None"] :
|
||||
idx == "M42" ? [42.0, 63.0, 96.0, 42.0, 32.0, 24.0, 130.0] :
|
||||
idx == "M27" ? [27.0, 40.0, 66.0, 27.0, 19.0, 13.5, 90.0] :
|
||||
idx == "M20" ? [20.0, 30.0, 52.0, 20.0, 17.0, 10.0, 70.0] :
|
||||
idx == "M22" ? [22.0, 33.0, 56.0, 22.0, 17.0, 11.0, 75.0] :
|
||||
idx == "M10" ? [10.0, 16.0, 32.0, 10.0, 8.0, 5.0, 40.0] :
|
||||
idx == "M12" ? [12.0, 18.0, 36.0, 12.0, 10.0, 6.0, 50.0] :
|
||||
idx == "M1.4" ? [1.4, 2.6, "None", 1.4, 1.25, "None", 12.0] :
|
||||
idx == "M14" ? [14.0, 21.0, 40.0, 14.0, 12.0, 7.0, 55.0] :
|
||||
idx == "M1.6" ? [1.6, 3.0, 15.0, 1.6, 1.5, 0.7, 16.0] :
|
||||
idx == "M16" ? [16.0, 24.0, 44.0, 16.0, 14.0, 8.0, 60.0] :
|
||||
idx == "M1.8" ? [1.8, 3.4, "None", 1.8, 1.5, "None", 16.0] :
|
||||
idx == "M18" ? [18.0, 27.0, 48.0, 18.0, 14.0, 9.0, 65.0] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,98 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* MIT <http://opensource.org/licenses/MIT> */
|
||||
function nominalpipesize_table_0(idx) =
|
||||
//od
|
||||
idx == "NPS 34" ? [34.0] :
|
||||
idx == "NPS 36" ? [36.0] :
|
||||
idx == "NPS 30" ? [30.0] :
|
||||
idx == "NPS 32" ? [32.0] :
|
||||
idx == "NPS 1 1/2" ? [1.9] :
|
||||
idx == "NPS 1 1/4" ? [1.66] :
|
||||
idx == "NPS 18" ? [18.0] :
|
||||
idx == "NPS 12" ? [12.75] :
|
||||
idx == "NPS 10" ? [10.75] :
|
||||
idx == "NPS 11" ? [11.75] :
|
||||
idx == "NPS 16" ? [16.0] :
|
||||
idx == "NPS 14" ? [14.0] :
|
||||
idx == "NPS 1" ? [1.315] :
|
||||
idx == "NPS 2" ? [2.375] :
|
||||
idx == "NPS 3" ? [3.5] :
|
||||
idx == "NPS 4" ? [4.5] :
|
||||
idx == "NPS 5" ? [5.563] :
|
||||
idx == "NPS 6" ? [6.625] :
|
||||
idx == "NPS 7" ? [7.625] :
|
||||
idx == "NPS 8" ? [8.625] :
|
||||
idx == "NPS 9" ? [9.625] :
|
||||
idx == "NPS 2 1/2" ? [2.875] :
|
||||
idx == "NPS 20" ? [20.0] :
|
||||
idx == "NPS 3/4" ? [1.05] :
|
||||
idx == "NPS 26" ? [26.0] :
|
||||
idx == "NPS 24" ? [24.0] :
|
||||
idx == "NPS 3/8" ? [0.675] :
|
||||
idx == "NPS 28" ? [28.0] :
|
||||
idx == "NPS 3 1/2" ? [4.0] :
|
||||
idx == "NPS 1/8" ? [0.405] :
|
||||
idx == "NPS 42" ? [42.0] :
|
||||
idx == "NPS 1/4" ? [0.54] :
|
||||
idx == "NPS 1/2" ? [0.84] :
|
||||
idx == "NPS 48" ? [48.0] :
|
||||
idx == "NPS 4 1/2" ? [5.0] :
|
||||
"Error";
|
||||
|
||||
function nominalpipesize_table2d_0(rowidx,colidx) =
|
||||
colidx == "5s" ? nominalpipesize_table2d_rows_0(rowidx)[0] :
|
||||
colidx == "5" ? nominalpipesize_table2d_rows_0(rowidx)[1] :
|
||||
colidx == "10s" ? nominalpipesize_table2d_rows_0(rowidx)[2] :
|
||||
colidx == "10" ? nominalpipesize_table2d_rows_0(rowidx)[3] :
|
||||
colidx == "20" ? nominalpipesize_table2d_rows_0(rowidx)[4] :
|
||||
colidx == "30" ? nominalpipesize_table2d_rows_0(rowidx)[5] :
|
||||
colidx == "40s" ? nominalpipesize_table2d_rows_0(rowidx)[6] :
|
||||
colidx == "40" ? nominalpipesize_table2d_rows_0(rowidx)[7] :
|
||||
colidx == "60" ? nominalpipesize_table2d_rows_0(rowidx)[8] :
|
||||
colidx == "80s" ? nominalpipesize_table2d_rows_0(rowidx)[9] :
|
||||
colidx == "80" ? nominalpipesize_table2d_rows_0(rowidx)[10] :
|
||||
colidx == "100" ? nominalpipesize_table2d_rows_0(rowidx)[11] :
|
||||
colidx == "120" ? nominalpipesize_table2d_rows_0(rowidx)[12] :
|
||||
colidx == "140" ? nominalpipesize_table2d_rows_0(rowidx)[13] :
|
||||
colidx == "160" ? nominalpipesize_table2d_rows_0(rowidx)[14] :
|
||||
"Error";
|
||||
|
||||
function nominalpipesize_table2d_rows_0(rowidx) =
|
||||
rowidx == "NPS 34" ? ["None", "None", "None", 0.312, 0.5, 0.625, 0.375, 0.688, "None", "None", "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 36" ? ["None", "None", "None", 0.312, 0.5, 0.625, 0.375, 0.75, "None", 0.5, "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 30" ? [0.25, "None", 0.312, 0.312, 0.5, 0.625, 0.375, "None", "None", 0.5, "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 32" ? ["None", "None", "None", 0.312, 0.5, 0.625, 0.375, 0.688, "None", 0.5, "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 1 1/2" ? [0.065, 0.065, 0.109, 0.109, "None", "None", 0.145, 0.145, "None", 0.2, 0.2, "None", "None", "None", 0.281] :
|
||||
rowidx == "NPS 1 1/4" ? [0.065, 0.065, 0.109, 0.109, "None", "None", 0.14, 0.14, "None", 0.191, 0.191, "None", "None", "None", 0.25] :
|
||||
rowidx == "NPS 18" ? [0.165, "None", 0.188, 0.25, 0.312, 0.437, 0.375, 0.562, 0.75, 0.5, 0.937, 1.156, 1.375, 1.562, 1.781] :
|
||||
rowidx == "NPS 12" ? [0.156, 0.165, 0.18, 0.18, 0.25, 0.33, 0.375, 0.406, 0.562, 0.5, 0.687, 0.843, 1.0, 1.125, 1.312] :
|
||||
rowidx == "NPS 10" ? [0.134, 0.134, 0.165, 0.165, 0.25, 0.307, 0.365, 0.365, 0.5, 0.5, 0.593, 0.718, 0.843, 1.0, 1.125] :
|
||||
rowidx == "NPS 11" ? ["None", "None", "None", "None", "None", "None", "None", 0.375, "None", "None", 0.5, "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 16" ? [0.165, "None", 0.188, 0.25, 0.312, 0.375, 0.375, 0.5, 0.656, 0.5, 0.843, 1.031, 1.218, 1.437, 1.593] :
|
||||
rowidx == "NPS 14" ? [0.156, "None", 0.188, 0.25, 0.312, 0.375, 0.375, 0.437, 0.593, 0.5, 0.75, 0.937, 1.093, 1.25, 1.406] :
|
||||
rowidx == "NPS 1" ? [0.065, 0.065, 0.109, 0.109, "None", "None", 0.133, 0.133, "None", 0.179, 0.179, "None", "None", "None", 0.25] :
|
||||
rowidx == "NPS 2" ? [0.065, 0.065, 0.109, 0.109, "None", "None", 0.154, 0.154, "None", 0.218, 0.218, "None", "None", "None", 0.343] :
|
||||
rowidx == "NPS 3" ? [0.083, 0.083, 0.12, 0.12, "None", "None", 0.216, 0.216, "None", 0.3, 0.3, "None", "None", "None", 0.437] :
|
||||
rowidx == "NPS 4" ? [0.083, 0.083, 0.12, 0.12, "None", "None", 0.237, 0.237, 0.281, 0.337, 0.337, "None", 0.437, "None", 0.531] :
|
||||
rowidx == "NPS 5" ? [0.109, 0.109, 0.134, 0.134, "None", "None", 0.258, 0.258, "None", 0.375, 0.375, "None", 0.5, "None", 0.625] :
|
||||
rowidx == "NPS 6" ? [0.109, 0.109, 0.134, 0.134, "None", "None", 0.28, 0.28, "None", 0.432, 0.432, "None", 0.562, "None", 0.718] :
|
||||
rowidx == "NPS 7" ? ["None", "None", "None", "None", "None", "None", "None", 0.301, "None", "None", 0.5, "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 8" ? [0.109, 0.109, 0.148, 0.148, 0.25, 0.277, 0.322, 0.322, 0.406, 0.5, 0.5, 0.593, 0.718, 0.812, 0.906] :
|
||||
rowidx == "NPS 9" ? ["None", "None", "None", "None", "None", "None", "None", 0.342, "None", "None", 0.5, "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 2 1/2" ? [0.083, 0.083, 0.12, 0.12, "None", "None", 0.203, 0.203, "None", 0.276, 0.276, "None", "None", "None", 0.375] :
|
||||
rowidx == "NPS 20" ? [0.188, "None", 0.218, 0.25, 0.375, 0.5, 0.375, 0.593, 0.812, 0.5, 1.031, 1.28, 1.5, 1.75, 1.968] :
|
||||
rowidx == "NPS 3/4" ? [0.065, 0.065, 0.083, 0.083, "None", "None", 0.113, 0.113, "None", 0.154, 0.154, "None", "None", "None", 0.218] :
|
||||
rowidx == "NPS 26" ? ["None", "None", "None", 0.312, 0.5, "None", 0.375, "None", "None", 0.5, "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 24" ? [0.218, "None", 0.25, 0.25, 0.375, 0.562, 0.375, 0.687, 0.968, 0.5, 1.218, 1.531, 1.812, 2.062, 2.343] :
|
||||
rowidx == "NPS 3/8" ? ["None", 0.049, 0.065, 0.065, "None", "None", 0.091, 0.091, "None", 0.126, 0.126, "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 28" ? ["None", "None", "None", 0.312, 0.5, 0.625, 0.375, "None", "None", "None", "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 3 1/2" ? [0.083, 0.083, 0.12, 0.12, "None", "None", 0.226, 0.226, "None", 0.318, 0.318, "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 1/8" ? ["None", 0.035, 0.049, 0.049, "None", "None", 0.068, 0.068, "None", 0.095, 0.095, "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 42" ? ["None", "None", "None", "None", "None", "None", 0.375, "None", "None", 0.5, "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 1/4" ? ["None", 0.049, 0.065, 0.065, "None", "None", 0.088, 0.088, "None", 0.119, 0.119, "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 1/2" ? [0.065, 0.065, 0.083, 0.083, "None", "None", 0.109, 0.109, "None", 0.147, 0.147, "None", "None", "None", 0.187] :
|
||||
rowidx == "NPS 48" ? ["None", "None", "None", "None", "None", "None", 0.375, "None", "None", 0.5, "None", "None", "None", "None", "None"] :
|
||||
rowidx == "NPS 4 1/2" ? ["None", "None", "None", "None", "None", "None", "None", 0.247, "None", "None", 0.355, "None", "None", "None", "None"] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function plainwasher1_table_0(idx) =
|
||||
//d1, d2, s
|
||||
idx == "M2.6" ? [2.8, 7.0, 0.5] :
|
||||
idx == "M2.5" ? [2.7, 6.0, 0.5] :
|
||||
idx == "M56" ? [58.0, 105.0, 9.0] :
|
||||
idx == "M2.3" ? [2.5, 6.0, 0.5] :
|
||||
idx == "M2.2" ? [2.4, 6.0, 0.5] :
|
||||
idx == "M39" ? [40.0, 72.0, 6.0] :
|
||||
idx == "M3.5" ? [3.7, 8.0, 0.5] :
|
||||
idx == "M36" ? [37.0, 66.0, 5.0] :
|
||||
idx == "M33" ? [34.0, 60.0, 5.0] :
|
||||
idx == "M30" ? [31.0, 56.0, 4.0] :
|
||||
idx == "M72" ? [74.0, 125.0, 10.0] :
|
||||
idx == "M4" ? [4.3, 9.0, 0.8] :
|
||||
idx == "M7" ? [7.4, 14.0, 1.6] :
|
||||
idx == "M6" ? [6.4, 12.0, 1.6] :
|
||||
idx == "M1" ? [1.1, 3.0, 0.3] :
|
||||
idx == "M3" ? [3.2, 7.0, 0.5] :
|
||||
idx == "M2" ? [2.2, 5.0, 0.3] :
|
||||
idx == "M8" ? [8.4, 16.0, 1.6] :
|
||||
idx == "M76" ? [78.0, 135.0, 10.0] :
|
||||
idx == "M85" ? [87.0, 145.0, 12.0] :
|
||||
idx == "M80" ? [82.0, 140.0, 12.0] :
|
||||
idx == "M42" ? [43.0, 78.0, 7.0] :
|
||||
idx == "M60" ? [62.0, 110.0, 9.0] :
|
||||
idx == "M48" ? [50.0, 92.0, 8.0] :
|
||||
idx == "M64" ? [64.0, 115.0, 9.0] :
|
||||
idx == "M24" ? [25.0, 44.0, 4.0] :
|
||||
idx == "M27" ? [28.0, 50.0, 4.0] :
|
||||
idx == "M20" ? [21.0, 37.0, 3.0] :
|
||||
idx == "M22" ? [23.0, 39.0, 3.0] :
|
||||
idx == "M45" ? [46.0, 85.0, 7.0] :
|
||||
idx == "M16" ? [17.0, 30.0, 3.0] :
|
||||
idx == "M5" ? [5.3, 10.0, 1.0] :
|
||||
idx == "M100" ? [104.0, 175.0, 14.0] :
|
||||
idx == "M52" ? [54.0, 98.0, 8.0] :
|
||||
idx == "M90" ? [93.0, 160.0, 12.0] :
|
||||
idx == "M68" ? [70.0, 120.0, 10.0] :
|
||||
idx == "M10" ? [10.0, 20.0, 2.0] :
|
||||
idx == "M1.2" ? [1.3, 3.5, 0.3] :
|
||||
idx == "M12" ? [13.0, 24.0, 2.5] :
|
||||
idx == "M1.4" ? [1.5, 4.0, 0.3] :
|
||||
idx == "M14" ? [15.0, 28.0, 2.5] :
|
||||
idx == "M1.6" ? [1.7, 4.0, 0.3] :
|
||||
idx == "M1.7" ? [1.8, 4.5, 0.3] :
|
||||
idx == "M18" ? [19.0, 34.0, 3.0] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,34 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function plainwasher2_table_0(idx) =
|
||||
//d1, d2, s
|
||||
idx == "M72" ? [78.0, 125.0, 10.0] :
|
||||
idx == "M56" ? [62.0, 105.0, 9.0] :
|
||||
idx == "M39" ? [42.0, 72.0, 6.0] :
|
||||
idx == "M52" ? [56.0, 98.0, 8.0] :
|
||||
idx == "M36" ? [39.0, 66.0, 5.0] :
|
||||
idx == "M33" ? [36.0, 60.0, 5.0] :
|
||||
idx == "M30" ? [33.0, 56.0, 4.0] :
|
||||
idx == "M5" ? [5.5, 10.0, 1.0] :
|
||||
idx == "M7" ? [7.6, 14.0, 1.6] :
|
||||
idx == "M6" ? [6.6, 12.0, 1.6] :
|
||||
idx == "M8" ? [9.0, 16.0, 1.6] :
|
||||
idx == "M80" ? [86.0, 140.0, 12.0] :
|
||||
idx == "M24" ? [26.0, 44.0, 4.0] :
|
||||
idx == "M60" ? [66.0, 110.0, 9.0] :
|
||||
idx == "M48" ? [52.0, 92.0, 8.0] :
|
||||
idx == "M64" ? [70.0, 115.0, 9.0] :
|
||||
idx == "M42" ? [45.0, 78.0, 7.0] :
|
||||
idx == "M27" ? [30.0, 50.0, 4.0] :
|
||||
idx == "M20" ? [22.0, 37.0, 3.0] :
|
||||
idx == "M22" ? [24.0, 39.0, 3.0] :
|
||||
idx == "M45" ? [48.0, 85.0, 7.0] :
|
||||
idx == "M100" ? [107.0, 175.0, 14.0] :
|
||||
idx == "M90" ? [96.0, 160.0, 12.0] :
|
||||
idx == "M10" ? [11.0, 20.0, 2.0] :
|
||||
idx == "M12" ? [13.5, 24.0, 2.5] :
|
||||
idx == "M14" ? [15.5, 28.0, 2.5] :
|
||||
idx == "M16" ? [17.5, 30.0, 3.0] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,51 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function plainwasherchamfered_table_0(idx) =
|
||||
//d1, d2, s
|
||||
idx == "M2.6" ? [2.8, 7.0, 0.5] :
|
||||
idx == "M2.5" ? [2.7, 6.0, 0.5] :
|
||||
idx == "M56" ? [58.0, 105.0, 9.0] :
|
||||
idx == "M2.3" ? [2.5, 6.0, 0.5] :
|
||||
idx == "M2.2" ? [2.4, 6.0, 0.5] :
|
||||
idx == "M39" ? [40.0, 72.0, 6.0] :
|
||||
idx == "M3.5" ? [3.7, 8.0, 0.5] :
|
||||
idx == "M36" ? [37.0, 66.0, 5.0] :
|
||||
idx == "M33" ? [34.0, 60.0, 5.0] :
|
||||
idx == "M30" ? [31.0, 56.0, 4.0] :
|
||||
idx == "M72" ? [74.0, 125.0, 10.0] :
|
||||
idx == "M4" ? [4.3, 9.0, 0.8] :
|
||||
idx == "M7" ? [7.4, 14.0, 1.6] :
|
||||
idx == "M6" ? [6.4, 12.0, 1.6] :
|
||||
idx == "M1" ? [1.1, 3.0, 0.3] :
|
||||
idx == "M3" ? [3.2, 7.0, 0.5] :
|
||||
idx == "M2" ? [2.2, 5.0, 0.3] :
|
||||
idx == "M8" ? [8.4, 16.0, 1.6] :
|
||||
idx == "M76" ? [78.0, 135.0, 10.0] :
|
||||
idx == "M85" ? [87.0, 145.0, 12.0] :
|
||||
idx == "M80" ? [82.0, 140.0, 12.0] :
|
||||
idx == "M42" ? [43.0, 78.0, 7.0] :
|
||||
idx == "M60" ? [62.0, 110.0, 9.0] :
|
||||
idx == "M48" ? [50.0, 92.0, 8.0] :
|
||||
idx == "M64" ? [64.0, 115.0, 9.0] :
|
||||
idx == "M24" ? [25.0, 44.0, 4.0] :
|
||||
idx == "M27" ? [28.0, 50.0, 4.0] :
|
||||
idx == "M20" ? [21.0, 37.0, 3.0] :
|
||||
idx == "M22" ? [23.0, 39.0, 3.0] :
|
||||
idx == "M45" ? [46.0, 85.0, 7.0] :
|
||||
idx == "M16" ? [17.0, 30.0, 3.0] :
|
||||
idx == "M5" ? [5.3, 10.0, 1.0] :
|
||||
idx == "M100" ? [104.0, 175.0, 14.0] :
|
||||
idx == "M52" ? [54.0, 98.0, 8.0] :
|
||||
idx == "M90" ? [93.0, 160.0, 12.0] :
|
||||
idx == "M68" ? [70.0, 120.0, 10.0] :
|
||||
idx == "M10" ? [10.0, 20.0, 2.0] :
|
||||
idx == "M1.2" ? [1.3, 3.5, 0.3] :
|
||||
idx == "M12" ? [13.0, 24.0, 2.5] :
|
||||
idx == "M1.4" ? [1.5, 4.0, 0.3] :
|
||||
idx == "M14" ? [15.0, 28.0, 2.5] :
|
||||
idx == "M1.6" ? [1.7, 4.0, 0.3] :
|
||||
idx == "M1.7" ? [1.8, 4.5, 0.3] :
|
||||
idx == "M18" ? [19.0, 34.0, 3.0] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,32 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function plainwasherforcheesehead_table_0(idx) =
|
||||
//d1, d2, s
|
||||
idx == "M2.6" ? [2.8, 5.5, 0.5] :
|
||||
idx == "M2.5" ? [2.7, 5.0, 0.5] :
|
||||
idx == "M2.3" ? [2.5, 5.0, 0.5] :
|
||||
idx == "M3.5" ? [3.7, 7.0, 0.5] :
|
||||
idx == "M36" ? [37.0, 60.0, 5.0] :
|
||||
idx == "M30" ? [31.0, 50.0, 4.0] :
|
||||
idx == "M5" ? [5.3, 9.0, 1.0] :
|
||||
idx == "M4" ? [4.3, 8.0, 0.5] :
|
||||
idx == "M6" ? [6.4, 11.0, 1.6] :
|
||||
idx == "M1" ? [1.1, 2.5, 0.3] :
|
||||
idx == "M3" ? [3.2, 6.0, 0.5] :
|
||||
idx == "M2" ? [2.2, 4.5, 0.3] :
|
||||
idx == "M8" ? [8.4, 15.0, 1.6] :
|
||||
idx == "M24" ? [25.0, 39.0, 4.0] :
|
||||
idx == "M16" ? [17.0, 28.0, 2.5] :
|
||||
idx == "M20" ? [21.0, 34.0, 3.0] :
|
||||
idx == "M10" ? [10.5, 18.0, 1.6] :
|
||||
idx == "M1.2" ? [1.3, 3.0, 0.3] :
|
||||
idx == "M12" ? [13.0, 20.0, 2.0] :
|
||||
idx == "M1.4" ? [1.5, 3.0, 0.3] :
|
||||
idx == "M14" ? [15.0, 24.0, 2.5] :
|
||||
idx == "M1.6" ? [1.7, 3.5, 0.3] :
|
||||
idx == "M1.7" ? [1.8, 4.0, 0.3] :
|
||||
idx == "M1.8" ? [1.9, 4.0, 0.3] :
|
||||
idx == "M18" ? [19.0, 30.0, 2.5] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* MIT <http://opensource.org/licenses/MIT> */
|
||||
function roundBattery_table_0(idx) =
|
||||
//h, d
|
||||
idx == "AA" ? [50.5, 14.5] :
|
||||
idx == "A" ? [50.0, 17.0] :
|
||||
idx == "C" ? [50.0, 26.2] :
|
||||
idx == "AAA" ? [44.5, 10.5] :
|
||||
idx == "D" ? [61.5, 34.2] :
|
||||
idx == "N" ? [30.2, 12.0] :
|
||||
idx == "AAAA" ? [42.5, 8.3] :
|
||||
idx == "Sub-C" ? [42.9, 22.2] :
|
||||
idx == "1/2AA" ? [24.0, 14.5] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,56 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de>,Javier Martínez García <jaeco@gmx.com> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function singlerowradialbearing_table_0(idx) =
|
||||
//d1, d2, B, r_fillet
|
||||
idx == "623" ? [3.0, 10.0, 4.0, 0.3] :
|
||||
idx == "607" ? [7.0, 19.0, 6.0, 0.5] :
|
||||
idx == "627" ? [7.0, 22.0, 7.0, 0.5] :
|
||||
idx == "626" ? [6.0, 19.0, 6.0, 0.5] :
|
||||
idx == "625" ? [5.0, 16.0, 5.0, 0.5] :
|
||||
idx == "624" ? [4.0, 13.0, 5.0, 0.4] :
|
||||
idx == "629" ? [9.0, 26.0, 8.0, 1.0] :
|
||||
idx == "609" ? [9.0, 24.0, 7.0, 0.5] :
|
||||
idx == "608" ? [8.0, 22.0, 7.0, 0.5] :
|
||||
idx == "6006" ? [30.0, 55.0, 13.0, 1.5] :
|
||||
idx == "6007" ? [35.0, 62.0, 14.0, 1.5] :
|
||||
idx == "6004" ? [20.0, 42.0, 12.0, 1.0] :
|
||||
idx == "6005" ? [25.0, 47.0, 12.0, 1.0] :
|
||||
idx == "6002" ? [15.0, 32.0, 9.0, 0.5] :
|
||||
idx == "6003" ? [17.0, 35.0, 10.0, 0.5] :
|
||||
idx == "6000" ? [10.0, 26.0, 8.0, 0.5] :
|
||||
idx == "6001" ? [12.0, 28.0, 8.0, 0.5] :
|
||||
idx == "6204" ? [20.0, 47.0, 14.0, 1.5] :
|
||||
idx == "16003" ? [17.0, 35.0, 8.0, 0.5] :
|
||||
idx == "6206" ? [30.0, 62.0, 16.0, 1.5] :
|
||||
idx == "16006" ? [30.0, 55.0, 9.0, 0.5] :
|
||||
idx == "16007" ? [35.0, 62.0, 9.0, 0.5] :
|
||||
idx == "16004" ? [20.0, 42.0, 8.0, 0.5] :
|
||||
idx == "6203" ? [17.0, 40.0, 12.0, 1.0] :
|
||||
idx == "6305" ? [25.0, 62.0, 17.0, 2.0] :
|
||||
idx == "6200" ? [10.0, 30.0, 9.0, 1.0] :
|
||||
idx == "6301" ? [12.0, 37.0, 12.0, 1.5] :
|
||||
idx == "6300" ? [10.0, 35.0, 11.0, 1.0] :
|
||||
idx == "6303" ? [17.0, 47.0, 14.0, 1.5] :
|
||||
idx == "6201" ? [12.0, 32.0, 10.0, 1.0] :
|
||||
idx == "634" ? [4.0, 16.0, 5.0, 0.5] :
|
||||
idx == "635" ? [5.0, 19.0, 6.0, 0.5] :
|
||||
idx == "16101" ? [12.0, 30.0, 8.0, 0.5] :
|
||||
idx == "16100" ? [10.0, 28.0, 8.0, 0.5] :
|
||||
idx == "6205" ? [25.0, 52.0, 15.0, 1.5] :
|
||||
idx == "6304" ? [20.0, 52.0, 15.0, 2.0] :
|
||||
idx == "16002" ? [15.0, 32.0, 8.0, 0.5] :
|
||||
idx == "6202" ? [15.0, 35.0, 11.0, 1.0] :
|
||||
idx == "16005" ? [25.0, 47.0, 8.0, 0.5] :
|
||||
idx == "6302" ? [15.0, 42.0, 13.0, 1.5] :
|
||||
"Error";
|
||||
|
||||
function singlerowradialbearing_table_1(idx) =
|
||||
//postfix
|
||||
idx == "shielded, single" ? ["-Z"] :
|
||||
idx == "shielded, double" ? ["-ZZ"] :
|
||||
idx == "open" ? [""] :
|
||||
idx == "sealed, double" ? ["-2RS"] :
|
||||
idx == "sealed, single" ? ["-RS"] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,43 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de>,Javier Martínez García <jaeco@gmx.com> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
||||
function singlerowradialbearingimperial_table_0(idx) =
|
||||
//d1, d2, B, r_fillet
|
||||
idx == "RLS7" ? [0.875, 2.0, 0.5625, 0.0625] :
|
||||
idx == "RLS6" ? [0.75, 1.875, 0.5625, 0.0625] :
|
||||
idx == "RLS5" ? [0.625, 1.5625, 0.4375, 0.03125] :
|
||||
idx == "RLS4" ? [0.5, 1.3125, 0.375, 0.03125] :
|
||||
idx == "RLS9" ? [1.125, 2.5, 0.625, 0.0625] :
|
||||
idx == "RLS8" ? [1.0, 2.25, 0.625, 0.0625] :
|
||||
idx == "RLS16" ? [2.0, 4.0, 0.8125, 0.09375] :
|
||||
idx == "RLS15" ? [1.875, 4.0, 0.8125, 0.09375] :
|
||||
idx == "RLS14" ? [1.75, 3.75, 0.8125, 0.09375] :
|
||||
idx == "RLS13" ? [1.625, 3.5, 0.75, 0.09375] :
|
||||
idx == "RLS12" ? [1.5, 3.25, 0.75, 0.09375] :
|
||||
idx == "RLS11" ? [1.375, 3.0, 0.6875, 0.0625] :
|
||||
idx == "RLS10" ? [1.25, 2.75, 0.6875, 0.0625] :
|
||||
idx == "RLS18" ? [2.25, 4.5, 0.875, 0.09375] :
|
||||
idx == "RMS20" ? [2.5, 5.5, 1.25, 0.125] :
|
||||
idx == "RMS22" ? [2.75, 6.125, 1.375, 0.125] :
|
||||
idx == "RMS24" ? [3.0, 7.0, 1.5625, 0.15625] :
|
||||
idx == "RMS26" ? [3.25, 7.5, 1.5625, 0.15625] :
|
||||
idx == "RMS18" ? [2.25, 5.0, 1.25, 0.125] :
|
||||
idx == "RMS6" ? [0.75, 2.0, 0.6875, 0.0625] :
|
||||
idx == "RMS7" ? [0.875, 2.25, 0.6875, 0.0625] :
|
||||
idx == "RMS4" ? [0.5, 1.625, 0.625, 0.0625] :
|
||||
idx == "RMS5" ? [0.625, 1.8125, 0.625, 0.0625] :
|
||||
idx == "RMS8" ? [1.0, 2.5, 0.75, 0.09375] :
|
||||
idx == "RMS9" ? [1.125, 2.8125, 0.8125, 0.09375] :
|
||||
idx == "RMS10" ? [1.25, 3.125, 0.875, 0.09375] :
|
||||
idx == "RMS11" ? [1.375, 3.5, 0.875, 0.09375] :
|
||||
idx == "RMS12" ? [1.5, 3.75, 0.9375, 0.09375] :
|
||||
idx == "RMS13" ? [1.625, 4.0, 0.9375, 0.09375] :
|
||||
idx == "RMS14" ? [1.75, 4.25, 1.0625, 0.09375] :
|
||||
idx == "RMS15" ? [1.875, 4.5, 1.0625, 0.09375] :
|
||||
idx == "RMS16" ? [2.0, 4.5, 1.0625, 0.09375] :
|
||||
idx == "RLS22" ? [2.75, 5.25, 0.9375, 0.09375] :
|
||||
idx == "RLS20" ? [2.5, 5.0, 0.9375, 0.09375] :
|
||||
idx == "RLS26" ? [3.25, 6.0, 1.0625, 0.09375] :
|
||||
idx == "RLS24" ? [3.0, 5.75, 1.0625, 0.09375] :
|
||||
"Error";
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
|
@ -0,0 +1,3 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
|
@ -0,0 +1,3 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
|
@ -0,0 +1,3 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
|
@ -0,0 +1,3 @@
|
|||
/* Generated by BOLTS, do not modify */
|
||||
/* Copyright by: Johannes Reinhardt <jreinhardt@ist-dein-freund.de> */
|
||||
/* LGPL 2.1+ <http://www.gnu.org/licenses/lgpl-2.1> */
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,445 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 1,
|
||||
"id": "71c5d64a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"from solid import *\n",
|
||||
"import viewscad\n",
|
||||
"import numpy as np\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"def yp(y:float) -> OpenSCADObject:\n",
|
||||
" return translate((0, y, 0))\n",
|
||||
"\n",
|
||||
"def ym(y: float) -> OpenSCADObject:\n",
|
||||
" return translate((0, -y, 0))\n",
|
||||
"\n",
|
||||
"def xp(x: float) -> OpenSCADObject:\n",
|
||||
" return translate((x, 0, 0))\n",
|
||||
"\n",
|
||||
"def xm(x: float) -> OpenSCADObject:\n",
|
||||
" return translate((-x, 0, 0))\n",
|
||||
"\n",
|
||||
"def zp(z: float) -> OpenSCADObject:\n",
|
||||
" return translate((0, 0, z))\n",
|
||||
"\n",
|
||||
"def zm(z: float) -> OpenSCADObject:\n",
|
||||
" return translate((0, 0, -z))\n",
|
||||
"\n",
|
||||
"def wedge(height_dir : int, width_dir: int, start_point, width, height, extent, straight_section=0):\n",
|
||||
" dtype = type(start_point[0])\n",
|
||||
" e_width = np.array([0, 0, 0], dtype=dtype)\n",
|
||||
" e_width[width_dir] = width\n",
|
||||
" e_height = np.array([0, 0, 0], dtype=dtype)\n",
|
||||
" e_height[height_dir] = height\n",
|
||||
" e_height_s = np.array([0, 0, 0], dtype=dtype)\n",
|
||||
" e_height_s[height_dir] = straight_section\n",
|
||||
" outward_dir = ({0, 1, 2} - {height_dir, width_dir}).pop()\n",
|
||||
" e_outward = np.array([0, 0, 0], dtype=dtype)\n",
|
||||
" e_outward[outward_dir] = extent\n",
|
||||
"\n",
|
||||
" start_point = np.array(start_point, dtype=dtype)\n",
|
||||
" start_point += e_height_s\n",
|
||||
" \n",
|
||||
" p0 = start_point \n",
|
||||
" p1 = start_point + e_height\n",
|
||||
" p2 = p1 + e_width\n",
|
||||
" p3 = p2 - e_height\n",
|
||||
" p4 = p3 + e_outward\n",
|
||||
" p5 = p0 + e_outward\n",
|
||||
" \n",
|
||||
" faces = [\n",
|
||||
" (0, 3, 4, 5), # top\n",
|
||||
" (3, 0, 1, 2),\n",
|
||||
" (4, 2, 1, 5), # \n",
|
||||
" (0, 5, 1), # front\n",
|
||||
" (4, 3, 2), # back\n",
|
||||
" ]\n",
|
||||
" result = polyhedron(points = [p0, p1, p2, p3, p4, p5], faces=faces)\n",
|
||||
" if straight_section > 0:\n",
|
||||
" cube_origin = start_point - e_height_s\n",
|
||||
" result += translate(cube_origin)(cube(e_outward + e_height_s + e_width))\n",
|
||||
" return result\n",
|
||||
"\n",
|
||||
"def wedge_by_angle(height_dir : int, width_dir: int, start_point, width, degrees, extent, straight_section=0):\n",
|
||||
" height = abs(int(extent / np.tan(np.deg2rad(degrees))))\n",
|
||||
" \n",
|
||||
" return wedge(height_dir, width_dir, start_point, width, height, extent, straight_section)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"r = viewscad.Renderer()\n",
|
||||
"\n",
|
||||
"#r.render(wedge_by_angle(1, 2, (0, 0, 0), 40, degrees=20, extent=20, straight_section=15))"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "0612a43c",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# SwimTracker Case\n",
|
||||
"\n",
|
||||
"all units in tenth of mm\n",
|
||||
"\n",
|
||||
"## A) Dimensions of contained parts"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "69f72329",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"### Load Cell\n",
|
||||
"\n",
|
||||
"load cell is aligned such that cable outlet is at top right, \n",
|
||||
"\n",
|
||||
"$z$ axis is parallel to screws, $y$ is the larger size, $x$ the smaller size"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 2,
|
||||
"id": "b979fa4a",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def make_load_cell_dims():\n",
|
||||
" size = (400, 1300, 220)\n",
|
||||
" d = 125 # distance between screw and next side\n",
|
||||
" screw_midpoints = [\n",
|
||||
" (d, d), (size[0] - d, d), # bottom two screws\n",
|
||||
" (d, size[1] - d), (size[0] -d, size[1] - d), # top two screws,\n",
|
||||
" (size[0] / 2, 2 * d), # bottom middle screw\n",
|
||||
" (size[0] / 2, size[1] - 2 * d), # top middle screw\n",
|
||||
" ]\n",
|
||||
" return {'size': size, \n",
|
||||
" 'screw_midpoints': screw_midpoints}\n",
|
||||
"\n",
|
||||
"load_cell_dims = make_load_cell_dims()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "198286e2",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"### PCB"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 3,
|
||||
"id": "4b17b3f1",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def make_pcb_dims():\n",
|
||||
" pcb_thickness = 16\n",
|
||||
" pin_space_below = 25\n",
|
||||
" component_max_height = 100\n",
|
||||
" total_height = pcb_thickness + pin_space_below + component_max_height\n",
|
||||
" \n",
|
||||
" return {\n",
|
||||
" 'size': (400, 800, total_height),\n",
|
||||
" 'pin_space_below': pin_space_below,\n",
|
||||
" 'pcb_thickness': pcb_thickness,\n",
|
||||
" }\n",
|
||||
"pcb_dims = make_pcb_dims()"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "f36ade54",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## B) Parameters"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 4,
|
||||
"id": "6ac51708",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"wall_thickness = 30\n",
|
||||
"wedge_angle = 20 # in degrees\n",
|
||||
"\n",
|
||||
"# Tolerances\n",
|
||||
"tol_around_lcell = 20\n",
|
||||
"tol_pcb_slide = 5\n",
|
||||
"\n",
|
||||
"bottom_lip = 100 # how much longer the case is in y direction below the size of the load cell\n",
|
||||
"cable_space = 60 # how much space left/right to put the cable in\n",
|
||||
"separator_size = (wall_thickness, 190, 70) # 4 walls that fix load cell at the top and separate load cell & cable\n",
|
||||
"#pcb_rails_size = (50, pcb_dims['size'][1], wall_thickness) # 4 rails that hold pcb in place\n",
|
||||
"#pcb_rail_stopper_height = 0 # straight part after PCB rails (if 0 wedge starts right away)\n",
|
||||
"\n",
|
||||
"\n",
|
||||
"interior_size = (load_cell_dims['size'][0] + 2 * tol_around_lcell + 2 * cable_space + 2 * separator_size[0],\n",
|
||||
" load_cell_dims['size'][1] + bottom_lip,\n",
|
||||
" load_cell_dims['size'][2] + 2 * tol_around_lcell + pcb_dims['size'][2] + wall_thickness)\n",
|
||||
"size = tuple(s + 2 * wall_thickness for s in interior_size)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 11,
|
||||
"id": "c22da25a",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"text/plain": [
|
||||
"580"
|
||||
]
|
||||
},
|
||||
"execution_count": 11,
|
||||
"metadata": {},
|
||||
"output_type": "execute_result"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"load_cell_dims['size'][0] + 2 * cable_space + 2 * separator_size[0]"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "9778b756",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## C) Upper Part"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 5,
|
||||
"id": "98eeee57",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def make_upper_part(with_screw_holes):\n",
|
||||
" # shortcuts\n",
|
||||
" lcell_size = load_cell_dims['size']\n",
|
||||
" wt = wall_thickness\n",
|
||||
" \n",
|
||||
" # dims\n",
|
||||
" bottom_lip = 100 # how much longer the case is in y direction below the size of the load cell\n",
|
||||
" cable_space = 60 # how much space left/right to put the cable in\n",
|
||||
" separator_size = (wall_thickness, 190, 70) # 4 walls that fix load cell at the top and separate load cell & cable\n",
|
||||
" pcb_rails_size = (70, pcb_dims['size'][1], wt) # 4 rails that hold pcb in place\n",
|
||||
" pcb_rail_stopper_height = 0\n",
|
||||
" \n",
|
||||
" interior_size = (lcell_size[0] + 2 * tol_around_lcell + 2 * cable_space + 2 * separator_size[0],\n",
|
||||
" lcell_size[1] + bottom_lip,\n",
|
||||
" lcell_size[2] + 2 * tol_around_lcell + pcb_dims['size'][2] + wt)\n",
|
||||
" size = tuple(s + 2 * wall_thickness for s in interior_size)\n",
|
||||
" \n",
|
||||
" # outer wall\n",
|
||||
" def interior_coords(e):\n",
|
||||
" return translate([wt, bottom_lip + wt, wt])(e)\n",
|
||||
" outer_wall = cube(size) - translate([wt, 0, wt])(cube([interior_size[0], interior_size[1] + wt, interior_size[2]]))\n",
|
||||
" \n",
|
||||
" # pcb rails\n",
|
||||
" rail_space_to_wall = min(pcb_rails_size[2], pcb_dims['pin_space_below'] - pcb_rails_size[2])\n",
|
||||
" rail_z_extent = 2 * pcb_rails_size[2] + pcb_dims['pcb_thickness'] + tol_pcb_slide + rail_space_to_wall\n",
|
||||
" \n",
|
||||
" rail_wedge_height = pcb_rails_size[1] + pcb_rail_stopper_height\n",
|
||||
" rail_wedge_left = wedge_by_angle(1, 2, (0, rail_wedge_height, interior_size[2] - rail_z_extent), rail_z_extent, wedge_angle, pcb_rails_size[0])\n",
|
||||
" rail_wedge_right = wedge_by_angle(1, 2, (interior_size[0], rail_wedge_height, interior_size[2] - rail_z_extent), rail_z_extent, wedge_angle, -pcb_rails_size[0])\n",
|
||||
"\n",
|
||||
" stopper = yp(pcb_rails_size[1])(cube([pcb_rails_size[0], pcb_rail_stopper_height, rail_z_extent]))\n",
|
||||
" pcb_rails_left = zp(interior_size[2] - rail_space_to_wall - wt)(cube([pcb_rails_size[0], pcb_rails_size[1], rail_space_to_wall + pcb_rails_size[2]]) + zm(pcb_dims['pcb_thickness'] + tol_pcb_slide + pcb_rails_size[2])(stopper + cube(pcb_rails_size)))\n",
|
||||
" pcb_rails_right = xp(interior_size[0] - pcb_rails_size[0])(pcb_rails_left)\n",
|
||||
" \n",
|
||||
" pcb_rails = interior_coords(pcb_rails_left + pcb_rails_right + rail_wedge_left + rail_wedge_right)\n",
|
||||
" \n",
|
||||
" # load cell cap\n",
|
||||
" y_off = lcell_size[1] - separator_size[1]\n",
|
||||
" x_off_right = interior_size[0] - cable_space - separator_size[0]\n",
|
||||
" \n",
|
||||
" load_cell_cap_gen = yp(y_off)(cube([separator_size[0], separator_size[1], interior_size[2]]))\n",
|
||||
" load_cell_cap_left = xp(cable_space)(load_cell_cap_gen)\n",
|
||||
" load_cell_cap_right = xp(x_off_right)(load_cell_cap_gen)\n",
|
||||
" cable_cutout = xp(x_off_right)(yp(y_off)(zp(separator_size[2])(cube([separator_size[0], separator_size[1], lcell_size[2] + 2 * tol_around_lcell - 2 * separator_size[2]])))) \n",
|
||||
" load_cell_cap_cross = translate([0, y_off, lcell_size[2] + 2 * tol_around_lcell])((cube([interior_size[0], separator_size[1], separator_size[0]])))\n",
|
||||
" load_cell_cap = interior_coords(load_cell_cap_left + (load_cell_cap_right - cable_cutout) + load_cell_cap_cross)\n",
|
||||
" \n",
|
||||
" \n",
|
||||
" # wedges for cap\n",
|
||||
" cap_wedge_y = 0\n",
|
||||
" cap_wedge_width = load_cell_dims['size'][2] + 2 * tol_around_lcell\n",
|
||||
" cap_wedge_straight_thickness = 50\n",
|
||||
" cap_wedge_x = cable_space + wt\n",
|
||||
" cap_wedge_left = wedge_by_angle(1, 2, (0, 0, cap_wedge_y), cap_wedge_width, wedge_angle, cap_wedge_x, cap_wedge_straight_thickness)\n",
|
||||
" cap_wedge_right = wedge_by_angle(1, 2, (interior_size[0], 0, cap_wedge_y), cap_wedge_width, wedge_angle, -cap_wedge_x, cap_wedge_straight_thickness)\n",
|
||||
" cap_wedges = interior_coords(cap_wedge_left + cap_wedge_right)\n",
|
||||
"\n",
|
||||
" # screw holes\n",
|
||||
" lower_screw = load_cell_dims['screw_midpoints'][-2]\n",
|
||||
" upper_screw = load_cell_dims['screw_midpoints'][-1]\n",
|
||||
" screw_x_offset = cable_space + wt + tol_around_lcell\n",
|
||||
" hole_eps = 2\n",
|
||||
" screw_diameter = 75\n",
|
||||
" screw_hole_upper = translate([screw_x_offset + upper_screw[0], upper_screw[1], -hole_eps / 2 + interior_size[2]])(cylinder(d=screw_diameter, center=False, h= wt + 2* hole_eps))\n",
|
||||
" screw_hole_lower = translate([screw_x_offset + lower_screw[0], lower_screw[1], -hole_eps / 2 - wt])(cylinder(d=screw_diameter, center=False, h= wt + 2* hole_eps))\n",
|
||||
" screw_holes = interior_coords(screw_hole_upper + screw_hole_lower)\n",
|
||||
" \n",
|
||||
" if with_screw_holes:\n",
|
||||
" return (outer_wall + hole()(screw_holes)) + pcb_rails + load_cell_cap + cap_wedges\n",
|
||||
" else:\n",
|
||||
" return outer_wall + pcb_rails + load_cell_cap + cap_wedges\n",
|
||||
"\n",
|
||||
"#upper_part = make_upper_part(tr)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "cec5b185",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"## D) Lower Part (Cap)"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 6,
|
||||
"id": "a377d2ff",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"def make_lower_part():\n",
|
||||
" return cube([interior_size[0], wall_thickness, interior_size[2]])\n",
|
||||
"\n",
|
||||
"lower_part = make_lower_part()\n",
|
||||
"#done directly in blender"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "markdown",
|
||||
"id": "e57a5d44",
|
||||
"metadata": {},
|
||||
"source": [
|
||||
"# Renders"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 7,
|
||||
"id": "19c5c826",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"display_scale = 0.001 # just for display in notebook\n",
|
||||
"output_scale = 0.1 # in mm"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 8,
|
||||
"id": "caafb3cd",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"#scad_render_to_file(scale(output_scale)(lower_part), \"lower_part.scad\")\n",
|
||||
"#r.render(scale(display_scale)(lower_part))\n",
|
||||
"#!openscad -o lower_part.stl lower_part.scad"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 9,
|
||||
"id": "b9b5f0fd",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "3791607ee3e84c9ca1943887389ae504",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"text/plain": [
|
||||
"VBox(children=(HTML(value=''), Renderer(background='#cccc88', background_opacity=0.0, camera=PerspectiveCamera…"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"scad_render_to_file(scale(output_scale)(make_upper_part(True)), \"upper_part_holes.scad\")\n",
|
||||
"r.render(scale(display_scale)(make_upper_part(True)))\n",
|
||||
"!openscad -o upper_part_holes.stl upper_part_holes.scad"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": 10,
|
||||
"id": "b556b39b",
|
||||
"metadata": {},
|
||||
"outputs": [
|
||||
{
|
||||
"data": {
|
||||
"application/vnd.jupyter.widget-view+json": {
|
||||
"model_id": "bbb678c04348422da6ee48a7e4f6efd2",
|
||||
"version_major": 2,
|
||||
"version_minor": 0
|
||||
},
|
||||
"text/plain": [
|
||||
"VBox(children=(HTML(value=''), Renderer(background='#cccc88', background_opacity=0.0, camera=PerspectiveCamera…"
|
||||
]
|
||||
},
|
||||
"metadata": {},
|
||||
"output_type": "display_data"
|
||||
}
|
||||
],
|
||||
"source": [
|
||||
"scad_render_to_file(scale(output_scale)(make_upper_part(False)), \"upper_part_no_holes.scad\")\n",
|
||||
"r.render(scale(display_scale)(make_upper_part(False)))\n",
|
||||
"!openscad -o upper_part_no_holes.stl upper_part_no_holes.scad"
|
||||
]
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "b2577f94",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
},
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"id": "3e5d1f1e",
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": []
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"kernelspec": {
|
||||
"display_name": "Python 3",
|
||||
"language": "python",
|
||||
"name": "python3"
|
||||
},
|
||||
"language_info": {
|
||||
"codemirror_mode": {
|
||||
"name": "ipython",
|
||||
"version": 3
|
||||
},
|
||||
"file_extension": ".py",
|
||||
"mimetype": "text/x-python",
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.8.5"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 5
|
||||
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -0,0 +1,6 @@
|
|||
// Generated by SolidPython 1.1.1 on 2021-04-05 14:08:07
|
||||
|
||||
|
||||
scale(v = 0.1000000000) {
|
||||
cube(size = [600, 20, 421]);
|
||||
}
|
|
@ -0,0 +1,86 @@
|
|||
solid OpenSCAD_Model
|
||||
facet normal -0 0 1
|
||||
outer loop
|
||||
vertex 0 2 42.1
|
||||
vertex 60 0 42.1
|
||||
vertex 60 2 42.1
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 1
|
||||
outer loop
|
||||
vertex 60 0 42.1
|
||||
vertex 0 2 42.1
|
||||
vertex 0 0 42.1
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 0 -1
|
||||
outer loop
|
||||
vertex 0 0 0
|
||||
vertex 60 2 0
|
||||
vertex 60 0 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -0 0 -1
|
||||
outer loop
|
||||
vertex 60 2 0
|
||||
vertex 0 0 0
|
||||
vertex 0 2 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 0
|
||||
outer loop
|
||||
vertex 0 0 0
|
||||
vertex 60 0 42.1
|
||||
vertex 0 0 42.1
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 -1 -0
|
||||
outer loop
|
||||
vertex 60 0 42.1
|
||||
vertex 0 0 0
|
||||
vertex 60 0 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 -0 0
|
||||
outer loop
|
||||
vertex 60 0 42.1
|
||||
vertex 60 2 0
|
||||
vertex 60 2 42.1
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 1 0 0
|
||||
outer loop
|
||||
vertex 60 2 0
|
||||
vertex 60 0 42.1
|
||||
vertex 60 0 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 -0
|
||||
outer loop
|
||||
vertex 60 2 0
|
||||
vertex 0 2 42.1
|
||||
vertex 60 2 42.1
|
||||
endloop
|
||||
endfacet
|
||||
facet normal 0 1 0
|
||||
outer loop
|
||||
vertex 0 2 42.1
|
||||
vertex 60 2 0
|
||||
vertex 0 2 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 0 0
|
||||
outer loop
|
||||
vertex 0 0 0
|
||||
vertex 0 2 42.1
|
||||
vertex 0 2 0
|
||||
endloop
|
||||
endfacet
|
||||
facet normal -1 -0 0
|
||||
outer loop
|
||||
vertex 0 2 42.1
|
||||
vertex 0 0 0
|
||||
vertex 0 0 42.1
|
||||
endloop
|
||||
endfacet
|
||||
endsolid OpenSCAD_Model
|
|
@ -0,0 +1,104 @@
|
|||
// Generated by SolidPython 1.1.1 on 2021-04-05 14:08:12
|
||||
|
||||
|
||||
difference(){
|
||||
scale(v = 0.1000000000) {
|
||||
union() {
|
||||
difference() {
|
||||
cube(size = [640, 1440, 461]);
|
||||
translate(v = [20, 0, 20]) {
|
||||
cube(size = [600, 1420, 421]);
|
||||
}
|
||||
}
|
||||
translate(v = [20, 120, 20]) {
|
||||
union() {
|
||||
translate(v = [0, 0, 396]) {
|
||||
union() {
|
||||
cube(size = [70, 800, 25]);
|
||||
translate(v = [0, 0, -41]) {
|
||||
union() {
|
||||
translate(v = [0, 800, 0]) {
|
||||
cube(size = [70, 0, 66]);
|
||||
}
|
||||
cube(size = [70, 800, 20]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [530, 0, 0]) {
|
||||
translate(v = [0, 0, 396]) {
|
||||
union() {
|
||||
cube(size = [70, 800, 25]);
|
||||
translate(v = [0, 0, -41]) {
|
||||
union() {
|
||||
translate(v = [0, 800, 0]) {
|
||||
cube(size = [70, 0, 66]);
|
||||
}
|
||||
cube(size = [70, 800, 20]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[ 0,800,355], [ 0,992,355], [ 0,992,421], [ 0,800,421], [ 70,800,421], [ 70,800,355]]);
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[600,800,355], [600,992,355], [600,992,421], [600,800,421], [530,800,421], [530,800,355]]);
|
||||
}
|
||||
}
|
||||
translate(v = [20, 120, 20]) {
|
||||
union() {
|
||||
translate(v = [60, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
cube(size = [20, 190, 421]);
|
||||
}
|
||||
}
|
||||
difference() {
|
||||
translate(v = [520, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
cube(size = [20, 190, 421]);
|
||||
}
|
||||
}
|
||||
translate(v = [520, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
translate(v = [0, 0, 70]) {
|
||||
cube(size = [20, 190, 120]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [0, 1110, 260]) {
|
||||
cube(size = [600, 190, 20]);
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [20, 120, 20]) {
|
||||
union() {
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[ 0,50, 0], [ 0,269, 0], [ 0,269,260], [ 0, 50,260], [ 80, 50,260], [80,50, 0]]);
|
||||
translate(v = [0,0,0]) {
|
||||
cube(size = [ 80, 50,260]);
|
||||
}
|
||||
union() {
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[600, 50, 0], [600,269, 0], [600,269,260], [600, 50,260], [520, 50,260], [520, 50, 0]]);
|
||||
translate(v = [600, 0, 0]) {
|
||||
cube(size = [-80, 50,260]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Holes Below*/
|
||||
scale(v = 0.1000000000){
|
||||
union(){
|
||||
translate(v = [20, 120, 20]) {
|
||||
union() {
|
||||
translate(v = [300.0000000000, 1050, 420.0000000000]) {
|
||||
cylinder(center = false, d = 75, h = 24);
|
||||
}
|
||||
translate(v = [300.0000000000, 250, -21.0000000000]) {
|
||||
cylinder(center = false, d = 75, h = 24);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} /* End Holes */
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,104 @@
|
|||
// Generated by SolidPython 1.1.1 on 2021-05-13 15:26:22
|
||||
|
||||
|
||||
difference(){
|
||||
scale(v = 0.1000000000) {
|
||||
union() {
|
||||
difference() {
|
||||
cube(size = [680, 1460, 491]);
|
||||
translate(v = [30, 0, 30]) {
|
||||
cube(size = [620, 1430, 431]);
|
||||
}
|
||||
}
|
||||
translate(v = [30, 130, 30]) {
|
||||
union() {
|
||||
translate(v = [0, 0, 406]) {
|
||||
union() {
|
||||
cube(size = [70, 800, 25]);
|
||||
translate(v = [0, 0, -51]) {
|
||||
union() {
|
||||
translate(v = [0, 800, 0]) {
|
||||
cube(size = [70, 0, 76]);
|
||||
}
|
||||
cube(size = [70, 800, 30]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [550, 0, 0]) {
|
||||
translate(v = [0, 0, 406]) {
|
||||
union() {
|
||||
cube(size = [70, 800, 25]);
|
||||
translate(v = [0, 0, -51]) {
|
||||
union() {
|
||||
translate(v = [0, 800, 0]) {
|
||||
cube(size = [70, 0, 76]);
|
||||
}
|
||||
cube(size = [70, 800, 30]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[ 0,800,355], [ 0,992,355], [ 0,992,431], [ 0,800,431], [ 70,800,431], [ 70,800,355]]);
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[620,800,355], [620,992,355], [620,992,431], [620,800,431], [550,800,431], [550,800,355]]);
|
||||
}
|
||||
}
|
||||
translate(v = [30, 130, 30]) {
|
||||
union() {
|
||||
translate(v = [60, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
cube(size = [30, 190, 431]);
|
||||
}
|
||||
}
|
||||
difference() {
|
||||
translate(v = [530, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
cube(size = [30, 190, 431]);
|
||||
}
|
||||
}
|
||||
translate(v = [530, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
translate(v = [0, 0, 70]) {
|
||||
cube(size = [30, 190, 120]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [0, 1110, 260]) {
|
||||
cube(size = [620, 190, 30]);
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [30, 130, 30]) {
|
||||
union() {
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[ 0,50, 0], [ 0,297, 0], [ 0,297,260], [ 0, 50,260], [ 90, 50,260], [90,50, 0]]);
|
||||
translate(v = [0,0,0]) {
|
||||
cube(size = [ 90, 50,260]);
|
||||
}
|
||||
union() {
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[620, 50, 0], [620,297, 0], [620,297,260], [620, 50,260], [530, 50,260], [530, 50, 0]]);
|
||||
translate(v = [620, 0, 0]) {
|
||||
cube(size = [-90, 50,260]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
/* Holes Below*/
|
||||
scale(v = 0.1000000000){
|
||||
union(){
|
||||
translate(v = [30, 130, 30]) {
|
||||
union() {
|
||||
translate(v = [310.0000000000, 1050, 430.0000000000]) {
|
||||
cylinder(center = false, d = 75, h = 34);
|
||||
}
|
||||
translate(v = [310.0000000000, 250, -31.0000000000]) {
|
||||
cylinder(center = false, d = 75, h = 34);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} /* End Holes */
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,87 @@
|
|||
// Generated by SolidPython 1.1.1 on 2021-05-13 15:26:23
|
||||
|
||||
|
||||
scale(v = 0.1000000000) {
|
||||
union() {
|
||||
difference() {
|
||||
cube(size = [680, 1460, 491]);
|
||||
translate(v = [30, 0, 30]) {
|
||||
cube(size = [620, 1430, 431]);
|
||||
}
|
||||
}
|
||||
translate(v = [30, 130, 30]) {
|
||||
union() {
|
||||
translate(v = [0, 0, 406]) {
|
||||
union() {
|
||||
cube(size = [70, 800, 25]);
|
||||
translate(v = [0, 0, -51]) {
|
||||
union() {
|
||||
translate(v = [0, 800, 0]) {
|
||||
cube(size = [70, 0, 76]);
|
||||
}
|
||||
cube(size = [70, 800, 30]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [550, 0, 0]) {
|
||||
translate(v = [0, 0, 406]) {
|
||||
union() {
|
||||
cube(size = [70, 800, 25]);
|
||||
translate(v = [0, 0, -51]) {
|
||||
union() {
|
||||
translate(v = [0, 800, 0]) {
|
||||
cube(size = [70, 0, 76]);
|
||||
}
|
||||
cube(size = [70, 800, 30]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[ 0,800,355], [ 0,992,355], [ 0,992,431], [ 0,800,431], [ 70,800,431], [ 70,800,355]]);
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[620,800,355], [620,992,355], [620,992,431], [620,800,431], [550,800,431], [550,800,355]]);
|
||||
}
|
||||
}
|
||||
translate(v = [30, 130, 30]) {
|
||||
union() {
|
||||
translate(v = [60, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
cube(size = [30, 190, 431]);
|
||||
}
|
||||
}
|
||||
difference() {
|
||||
translate(v = [530, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
cube(size = [30, 190, 431]);
|
||||
}
|
||||
}
|
||||
translate(v = [530, 0, 0]) {
|
||||
translate(v = [0, 1110, 0]) {
|
||||
translate(v = [0, 0, 70]) {
|
||||
cube(size = [30, 190, 120]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [0, 1110, 260]) {
|
||||
cube(size = [620, 190, 30]);
|
||||
}
|
||||
}
|
||||
}
|
||||
translate(v = [30, 130, 30]) {
|
||||
union() {
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[ 0,50, 0], [ 0,297, 0], [ 0,297,260], [ 0, 50,260], [ 90, 50,260], [90,50, 0]]);
|
||||
translate(v = [0,0,0]) {
|
||||
cube(size = [ 90, 50,260]);
|
||||
}
|
||||
union() {
|
||||
polyhedron(faces = [[0, 3, 4, 5], [3, 0, 1, 2], [4, 2, 1, 5], [0, 5, 1], [4, 3, 2]], points = [[620, 50, 0], [620,297, 0], [620,297,260], [620, 50,260], [530, 50,260], [530, 50, 0]]);
|
||||
translate(v = [620, 0, 0]) {
|
||||
cube(size = [-90, 50,260]);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
|
@ -7,8 +7,13 @@ import array
|
|||
|
||||
def ext_hook(code, data):
|
||||
#if code == -47:
|
||||
print("code", code)
|
||||
if code == -51:
|
||||
return np.frombuffer(data, dtype=np.int16)
|
||||
print("before")
|
||||
res = np.frombuffer(data, dtype=np.int16)
|
||||
print(res)
|
||||
print("after")
|
||||
return res
|
||||
else:
|
||||
print(code)
|
||||
return 'unknown ext'
|
||||
|
@ -45,6 +50,6 @@ def analyze(data, max_size=8*1024):
|
|||
print("Time range {}, dense {} [minutes]".format(time_range_seconds / 60, dense_time_range_seconds / 60))
|
||||
|
||||
#from_network()
|
||||
res = from_file('1589394292.st')
|
||||
res = from_file('real_data/1593335527.st')
|
||||
print(res)
|
||||
#analyze(res)
|
||||
|
|
Loading…
Reference in New Issue