3D male and female dovetail shapes for use in connectors. I developed this shape for use in modular system to attach things (like spool holders) to my IKEA IVAR desk.Update: Changed orientation of basic dovetail. Less printable
by it self, but more logical (in my opinion) for use in connectors that
use the dovetail.Update: Reduced the default margin to 0.2 gives a better fit.The dovetail.scad file contains two modules, global parameters and some convenience functions to access the global parameters when 'use' this file in an other scad file.GLOBAL PARARMETERS:- Dovetail_Gender = Male; Default gender when modules are called without gender parameter.- Dovetail_Size = [40, 46, 10]; Default size when modules are called without size parameter.- Dovetail_Margin = 0.4; Default margin when modules are called without margin parameter.- Dovetail_Plate = 5; Default when modules are called without plate parameter.FUNCTIONS:female(): Returns true; A more readable value for the gender parameter.male(): Returns false. A more readable value for the gender parameter.yes(): Returns true; A more readable value for the center parameter.no(): Returns false. A more readable value for the center parameter.dovetailGender(): returns the set gender default.dovetailSize(): returns the set size default.dovetailMargin(): returns the set margin default.dovetailPlate(): returns the set plate size default.MODULES:dovetail(gender, size, margin, center): Generates the basic dovetail shape.gender: Boolean. The gender of the dovetail, false is male and true is female.size: 3 value array. Size of the cube the dove tail is made 'carved' out, or in other words the cube formed by a male and female connector when put together.margin: Decimal. The margin to keep between the male and female connectors so they make a perfect fit. This parameter might need sone experimenting to get right depending on the type of filament you are using. Defaults to 0.4.center: Boolean. This determines the positioning of the object. If true, object
is centered at (0,0,0). Otherwise, the cube is placed in the positive
quadrant with one corner at (0,0,0). Defaults to false.dovetailPlate:(gender, size, margin, plate, center): Generates a dovetail shape centered on top of a plate (cube shape).Parameters are the same as for basic dovetail shape with the additions of:plate: Decimal or 3 value array. The size of the cube the dovetail is connected to. When only a decimal value is given it is used as Z value and the X and Y values are the same as those of the dovetail it self.