-
Notifications
You must be signed in to change notification settings - Fork 18
/
mx-thread.scad
37 lines (30 loc) · 1.54 KB
/
mx-thread.scad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*
* Copyright (c) 2019, Gilles Bouissac
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
*
* Description: Metric screw thread modelisation
* Author: Gilles Bouissac
*/
use <agentscad/lib-screw.scad>
use <agentscad/mx-screw.scad>
// ----------------------------------------
//
// API
//
// ----------------------------------------
// Renders an external thread (for bolts)
module mxThreadExternal ( screw, l=undef, f=true ) { libThreadExternal(screw,l,f); }
// Renders an internal thread (for nuts)
module mxThreadInternal ( screw, l=undef, f=true, t=undef ) { libThreadInternal(screw,l,f,t); }
// Nut with Hexagonal head
module mxNutHexagonalThreaded( screw, bt=true, bb=true ) { libNutHexagonalThreaded(screw,bt,bb); }
// Nut with Square head
module mxNutSquareThreaded( screw, bt=true, bb=true ) { libNutSquareThreaded(screw,bt,bb); }
// Bolt with Hexagonal head
module mxBoltHexagonalThreaded( screw, bt=true, bb=true ) { libBoltHexagonalThreaded(screw,bt,bb); }
// Bolt with Allen head
module mxBoltAllenThreaded( screw, bt=true ) { libBoltAllenThreaded(screw,bt); }