Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
e0c1cb7ecThis file is pinned to the selected release. Download the original to open it in your design tool.
/*Created by BlackjackDuck (Andy) and Hands on Katie. Original model from Hands on Katie (https://handsonkatie.com/)
This code and all parts derived from it are Licensed Creative Commons 4.0 Attribution Non-Commercial Share-Alike (CC-BY-NC-SA)
Documentation available at https://handsonkatie.com/underware-2-0-the-made-to-measure-collection/
Change Log:
- 2024-12-06
- Initial release
- 2024-12-09
- Fix to threading of snap connector by adding flare and new slop parameter
- 2024-12-29
- New branch channel
Credit to
First and foremost - Katie and her community at Hands on Katie on Youtube, Patreon, and Discord
@David D on Printables for Multiconnect
Jonathan at Keep Making for Multiboard
@cosmicdust on MakerWorld and @freakadings_1408562 on Printables for the idea of diagonals (forward and turn)
@siyrahfall+1155967 on Printables for the idea of top exit holes
@Lyric on Printables for the flush connector idea
@fawix on GitHub for her contributions on parameter descriptors
*/
include <BOSL2/std.scad>
include <BOSL2/rounding.scad>
include <BOSL2/threading.scad>
/*[Choose Part]*/
Base_Top_or_Both = "Both"; // [Base, Top, Both]
/*[Channel Shape]*/
//Width of straight channel in units (default unit is 25mm)
Straight_Channel_Width_in_Units = 1;
//Distance of straight section of channel (in units)
Straight_Section_Length_in_Units = 4;
//Width of branchg channel in units (default unit is 25mm)
Branch_Channel_Width_in_Units = 1;
//Height (Z axis) inside the channel (in mm)
Channel_Internal_Height = 12; //[12:6:72]
//Grid units to move over (X axis). Both sides will move over and away from the center by this amount
Branch_Units_Out = 1; //[1:1:10]
//Grid units to move up (Y axis)
Branch_Units_Up = 1;//[1:1:10]
//Grid units to move up (Y axis)
Branch_Units_Extra_Length = 0;//[0:1:10]
/*[Mounting Options]*/
//How do you intend to mount the channels to a surface such as Honeycomb Storage Wall or Multiboard? See options at https://handsonkatie.com/underware-2-0-the-made-to-measure-collection/
Mounting_Method = "Threaded Snap Connector"; //[Threaded Snap Connector, Direct Multiboard Screw, Magnet, Wood Screw, Flat]
//Diameter of the magnet (in mm)
Magnet_Diameter = 4.0;
//Thickness of the magnet (in mm)
Magnet_Thickness = 1.5;
//Add a tolerance to the magnet hole to make it easier to insert the magnet.
Magnet_Tolerance = 0.1;
//Wood screw diameter (in mm)
Wood_Screw_Thread_Diameter = 3.5;
//Wood Screw Head Diameter (in mm)
Wood_Screw_Head_Diameter = 7;
//Wood Screw Head Height (in mm)
Wood_Screw_Head_Height = 1.75;
/*[Advanced Options]*/
//Units of measurement (in mm) for hole and length spacing. Multiboard is 25mm. Untested
Grid_Size = 25;
//Color of part (color names found at https://en.wikipedia.org/wiki/Web_colors)
Global_Color = "SlateBlue";
//Slop in thread. Increase to make threading easier. Decrease to make threading harder.
Slop = 0.075;
/*[Beta Features - Please Send Feedback]*/
//BETA FEATURE: For channels wider than 1 unit or taller than 18mm, reduce the top channel width to increase holding strength.
Flex_Compensation_Scaling = 0.99; //
//BETA FEATURE - Works with Original Profile Only: Change snap profile for strong holding strength. Not backwards compatible.
Additional_Holding_Strength = 0.0;//[0:0.1:1.5]
/*[Hidden]*/
//BETA FEATURE: Change the profile type to an inverse connection where the top clips from the inside allowing stronger connections. Not backwards compatible. This profile is still likely to change.
Profile_Type = "Original"; // [Original, v2.5]
/*[Hidden]*/
channelWidth = Straight_Channel_Width_in_Units * Grid_Size;
baseHeight = 9.63;
topHeight = 10.968;
interlockOverlap = 3.09; //distance that the top and base overlap each other
interlockFromFloor = 6.533; //distance from the bottom of the base to the bottom of the top when interlocked
partSeparation = 10;
//Disabling until further work
//Channel bifurcation ends with same direction when set to Forward or at 90 degrees angle if set to Turn
Y_Output_Direction = "Forward"; //[Forward, Turn]
//Straight distance on all 3 edges of the bifurcation. Unexpected behavior on wider channels may be resolved by changing this slider
Y_Straight_Distance = 12.5; //[12.5:12.5:100]
///*[Visual Options]*/
Debug_Show_Grid = false;
//View the parts as they attach. Note that you must disable this before exporting for printing.
Show_Attached = false;
///*[Small Screw Profile]*/
//Distance (in mm) between threads
Pitch_Sm = 3;
//Diameter (in mm) at the outer threads
Outer_Diameter_Sm = 6.747;
//Angle of the one side of the thread
Flank_Angle_Sm = 60;
//Depth (in mm) of the thread
Thread_Depth_Sm = 0.5;
//Diameter of the hole down the middle of the screw (for strength)
Inner_Hole_Diameter_Sm = 3.3;
///*[Direct Screw Mount]*/
Base_Screw_Hole_Inner_Diameter = 7;
Base_Screw_Hole_Outer_Diameter = 15;
//Thickness of of the base bottom and the bottom of the recessed hole (i.e., thicknes of base at the recess)
Base_Screw_Hole_Inner_Depth = 1;
Base_Screw_Hole_Cone = false;
/*
***BEGIN DISPLAYS***
*/
if(Base_Top_or_Both != "Top")
color_this(Global_Color)
back(Straight_Section_Length_in_Units*Grid_Size/2)
branchSplitChannelBase(widthMM = channelWidth, unitsOver = Branch_Units_Out, unitsUp = Branch_Units_Up, outputDirection = Y_Output_Direction, straightDistance = Y_Straight_Distance, anchor=BOT);
if(Base_Top_or_Both != "Base")
color_this(Global_Color)
fwd(Straight_Section_Length_in_Units*Grid_Size/2)
zrot(180)
yChannelTop(widthMM = channelWidth, unitsOver = Branch_Units_Out, unitsUp = Branch_Units_Up, heightMM = Channel_Internal_Height, outputDirection = Y_Output_Direction, straightDistance = Y_Straight_Distance, anchor=TOP+RIGHT, orient=BOT);
/*
***BEGIN MODULES***
*/
module mountPoint(style = "Threaded Snap Connector"){
if(Mounting_Method == "Direct Multiboard Screw") up(Base_Screw_Hole_Inner_Depth) cyl(h=8, d=Base_Screw_Hole_Inner_Diameter, $fn=25, anchor=TOP) attach(TOP, BOT, overlap=0.01) cyl(h=3, d=Base_Screw_Hole_Outer_Diameter, $fn=25);
else if(Mounting_Method == "Magnet") up(Magnet_Thickness+Magnet_Tolerance-0.01) cyl(h=Magnet_Thickness+Magnet_Tolerance, d=Magnet_Diameter+Magnet_Tolerance, $fn=50, anchor=TOP);
else if(Mounting_Method == "Wood Screw") up(3.5 - Wood_Screw_Head_Height) cyl(h=3.5 - Wood_Screw_Head_Height+0.05, d=Wood_Screw_Thread_Diameter, $fn=25, anchor=TOP)
//wood screw head
attach(TOP, BOT, overlap=0.01) cyl(h=Wood_Screw_Head_Height+0.05, d1=Wood_Screw_Thread_Diameter, d2=Wood_Screw_Head_Diameter, $fn=25);
else if(Mounting_Method == "Flat") ; //do nothing
//Default is Threaded Snap Connector
else up(5.99) trapezoidal_threaded_rod(d=Outer_Diameter_Sm, l=6, pitch=Pitch_Sm, flank_angle = Flank_Angle_Sm, thread_depth = Thread_Depth_Sm, $fn=50, internal=true, bevel2 = true, blunt_start=false, anchor=TOP, $slop=Slop);
}
//Branch Split Channel Base
module branchSplitChannelBase(unitsOver = 1, unitsUp=3, outputDirection = "Forward", straightDistance = Grid_Size, widthMM, anchor, spin, orient){
attachable(anchor, spin, orient, size=[unitsOver*Grid_Size*2+channelWidth,unitsUp*Grid_Size+straightDistance*2, baseHeight]){
endPositionX = unitsOver * Grid_Size * Straight_Channel_Width_in_Units / 2 + Branch_Channel_Width_in_Units * Grid_Size/2;
endPositionY = unitsUp*Grid_Size+Grid_Size+(Branch_Channel_Width_in_Units*Grid_Size-Grid_Size)+Branch_Units_Extra_Length*Grid_Size;
fwd(unitsUp*Grid_Size/2+straightDistance)
down(baseHeight/2)
diff("holes channel_clear"){
//straight section
path_sweep(baseProfile(widthMM = widthMM), turtle(["ymove", Straight_Section_Length_in_Units*Grid_Size]));
//straight section clear
tag("channel_clear") fwd(0.01)path_sweep(baseDeleteProfile(widthMM = widthMM), turtle(["ymove", Straight_Section_Length_in_Units*Grid_Size+0.02]));
{
//branch channel
right_half(s=max(unitsUp*Grid_Size*4,unitsOver*Grid_Size*4)) {//s should be a number larger than twice the size of the object's largest axis. Thew some random numbers in here for now. If mirror issues surface, this is likely the culprit.
path_sweep2d(baseProfile(widthMM = Branch_Channel_Width_in_Units*Grid_Size),
path= outputDirection == "Forward" ? [
[0,0], //start
[0,straightDistance+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[endPositionX, endPositionY-straightDistance-Branch_Units_Extra_Length*Grid_Size+0.1], //movement to position before last straight
[endPositionX, endPositionY] //last position either out the angle or straight out
] :
[ //90 degree path
[0,0], //start
[0,straightDistance*sign(unitsUp)+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[unitsOver * Grid_Size + Grid_Size / 2 - straightDistance, unitsUp * Grid_Size + Grid_Size / 2], //movement to position before last straight
[unitsOver*Grid_Size+Grid_Size/2,unitsUp*Grid_Size+Grid_Size/2] //last position either out the angle or straight out
]
);
}
//branch channel clear
tag("channel_clear")
right_half(s=max(unitsUp*Grid_Size*4,unitsOver*Grid_Size*4)) {//s should be a number larger than twice the size of the object's largest axis. Thew some random numbers in here for now. If mirror issues surface, this is likely the culprit.
path_sweep2d(baseDeleteProfile(widthMM = Branch_Channel_Width_in_Units*Grid_Size),
path= outputDirection == "Forward" ? [
[0,-0.01], //start
[0,straightDistance+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[endPositionX, endPositionY-straightDistance-Branch_Units_Extra_Length*Grid_Size], //movement to position before last straight
[endPositionX, endPositionY] //last position either out the angle or straight out
] :
[ //90 degree path
[0,0], //start
[0,straightDistance*sign(unitsUp)+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[unitsOver*Grid_Size+Grid_Size/2-straightDistance,unitsUp*Grid_Size+Grid_Size/2], //movement to position before last straight
[unitsOver*Grid_Size+Grid_Size/2,unitsUp*Grid_Size+Grid_Size/2] //last position either out the angle or straight out
]
);
}}
//straight section holes
tag("holes") back(Grid_Size*Straight_Section_Length_in_Units*sign(unitsUp)/2) grid_copies(spacing=Grid_Size, inside=rect([Grid_Size*Straight_Channel_Width_in_Units-1,Straight_Section_Length_in_Units*Grid_Size-1])) down(0.01)
mountPoint(Mounting_Method);
//outside holes forward option (right side)
tag("holes")
if(outputDirection == "Forward")
move_copies([
[endPositionX, endPositionY-Grid_Size/2,-0.01],//right side
[endPositionX*-1, endPositionY-Grid_Size/2,-0.01]
])
xcopies(spacing = Grid_Size, n = Branch_Channel_Width_in_Units) //back(Units_Up*Grid_Size+Grid_Size*sign(unitsUp)-Grid_Size/2*sign(unitsUp)) //right(unitsOver*Grid_Size)down(0.01)
mountPoint(Mounting_Method);
//outside holes turn option
tag("holes")
if(outputDirection == "Turn")
move_copies([
[unitsOver*Grid_Size,unitsUp*Grid_Size+Grid_Size/2*sign(unitsUp),-0.01],
[-unitsOver*Grid_Size,unitsUp*Grid_Size+Grid_Size/2*sign(unitsUp),-0.01]
])
ycopies(spacing = Grid_Size, n = Straight_Channel_Width_in_Units)// back(Units_Up*Grid_Size+Grid_Size/2*sign(unitsUp)) //right(unitsOver*Grid_Size)down(0.01)
mountPoint(Mounting_Method);
if(Debug_Show_Grid)
#back(12.5) back(12.5*Straight_Channel_Width_in_Units-12.5) grid_copies(spacing=Grid_Size, inside=rect([200,200]))cyl(h=8, d=7, $fn=25);//temporary
}
children();
}
}
module yChannelTop(unitsOver = 1, unitsUp=3, heightMM = 12, outputDirection = "Forward", straightDistance = Grid_Size, widthMM, anchor, spin, orient){
attachable(anchor, spin, orient, size=[unitsOver*Grid_Size*2+channelWidth,unitsUp*Grid_Size+straightDistance*2, topHeight + (heightMM-12)]){
endPositionX = unitsOver * Grid_Size * Straight_Channel_Width_in_Units / 2 + Branch_Channel_Width_in_Units * Grid_Size/2;
endPositionY = unitsUp*Grid_Size+Grid_Size+(Branch_Channel_Width_in_Units*Grid_Size-Grid_Size)+Branch_Units_Extra_Length*Grid_Size;
fwd(unitsUp*Grid_Size/2+straightDistance)
down((topHeight + (heightMM-12))/2)
diff("holes channel_clear"){
//straight section
path_sweep(topProfile(widthMM = widthMM, heightMM = heightMM), turtle(["ymove", Straight_Section_Length_in_Units*Grid_Size]));
//straight section clear
tag("channel_clear") fwd(0.01)path_sweep(topDeleteProfile(widthMM = widthMM, heightMM = heightMM), turtle(["ymove", Straight_Section_Length_in_Units*Grid_Size+0.02]));
{
//branch channel
right_half(s=max(unitsUp*Grid_Size*4,unitsOver*Grid_Size*4)) {//s should be a number larger than twice the size of the object's largest axis. Thew some random numbers in here for now. If mirror issues surface, this is likely the culprit.
path_sweep2d(topProfile(widthMM = Branch_Channel_Width_in_Units*Grid_Size, heightMM = heightMM),
path= outputDirection == "Forward" ? [
[0,0], //start
[0,straightDistance+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[endPositionX, endPositionY-straightDistance-Branch_Units_Extra_Length*Grid_Size+0.1], //movement to position before last straight
[endPositionX, endPositionY] //last position either out the angle or straight out
] :
[ //90 degree path
[0,0], //start
[0,straightDistance*sign(unitsUp)+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[unitsOver * Grid_Size + Grid_Size / 2 - straightDistance, unitsUp * Grid_Size + Grid_Size / 2], //movement to position before last straight
[unitsOver*Grid_Size+Grid_Size/2,unitsUp*Grid_Size+Grid_Size/2] //last position either out the angle or straight out
]
);
}
//branch channel delete
tag("channel_clear")
right_half(s=max(unitsUp*Grid_Size*4,unitsOver*Grid_Size*4)) {//s should be a number larger than twice the size of the object's largest axis. Thew some random numbers in here for now. If mirror issues surface, this is likely the culprit.
path_sweep2d(topDeleteProfile(widthMM = Branch_Channel_Width_in_Units*Grid_Size, heightMM = heightMM),
path= outputDirection == "Forward" ? [
[0,0], //start
[0,straightDistance+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[endPositionX, endPositionY-straightDistance-Branch_Units_Extra_Length*Grid_Size+0.1], //movement to position before last straight
[endPositionX, endPositionY] //last position either out the angle or straight out
] :
[ //90 degree path
[0,0], //start
[0,straightDistance*sign(unitsUp)+0.1], //distance forward or back. 0.05 is a subtle cheat that allows for a perfect side shift without a bad polygon
[unitsOver * Grid_Size + Grid_Size / 2 - straightDistance, unitsUp * Grid_Size + Grid_Size / 2], //movement to position before last straight
[unitsOver*Grid_Size+Grid_Size/2,unitsUp*Grid_Size+Grid_Size/2] //last position either out the angle or straight out
]
);
}
}
}
children();
}
}
//BEGIN PROFILES - Must match across all files
selectTopProfile = Profile_Type == "Original" ? topProfileHalf(Channel_Internal_Height) : topProfileInverseHalf(Channel_Internal_Height);
selectBaseProfile = Profile_Type == "Original" ? baseProfileHalf() : baseProfileInverseHalf();
//take the two halves of base and merge them
function baseProfile(widthMM = 25) =
union(
left((widthMM-25)/2,selectBaseProfile),
right((widthMM-25)/2,mirror([1,0],selectBaseProfile)), //fill middle if widening from standard 25mm
back(3.5/2,rect([widthMM-25+0.02,3.5]))
);
//take the two halves of base and merge them
function topProfile(widthMM = 25, heightMM = 12) =
union(
left((widthMM-25)/2,selectTopProfile),
right((widthMM-25)/2,mirror([1,0],selectTopProfile)), //fill middle if widening from standard 25mm
back(topHeight-1 + heightMM-12 , rect([widthMM-25+0.02,2]))
);
function baseDeleteProfile(widthMM = 25) =
union(
left((widthMM-25)/2,baseDeleteProfileHalf),
right((widthMM-25)/2,mirror([1,0],baseDeleteProfileHalf)), //fill middle if widening from standard 25mm
back(6.575,rect([widthMM-25+0.02,6.15]))
);
function topDeleteProfile(widthMM, heightMM = 12) =
union(
left((widthMM-25)/2,topDeleteProfileHalf(heightMM)),
right((widthMM-25)/2,mirror([1,0],topDeleteProfileHalf(heightMM))), //fill middle if widening from standard 25mm
back(4.474 + (heightMM-12 - Additional_Holding_Strength)/2,rect([widthMM-25+0.02,8.988 + heightMM - 12 + Additional_Holding_Strength]))
);
function baseProfileHalf() =
fwd(-7.947, //take Katie's exact measurements for half the profile and use fwd to place flush on the Y axis
//profile extracted from exact coordinates in Master Profile F360 sketch. Any additional modifications are added mathmatical functions.
[
[0,-4.447], //Point 1
[-8.5+Additional_Holding_Strength*1.5,-4.447], //Point 2
[-9.5+Additional_Holding_Strength*1.5,-3.447], //Point 3
[-9.5+Additional_Holding_Strength*1.5,1.683], //Point 4
[-10.517+Additional_Holding_Strength/2,1.683], //Point 5
[-11.459+Additional_Holding_Strength/2,1.422], //Point 6
[-11.459+Additional_Holding_Strength/2,-0.297], //Point 7
[-11.166+Additional_Holding_Strength+Additional_Holding_Strength/2,-0.592-Additional_Holding_Strength/2], //Point 8 move
[-11.166+Additional_Holding_Strength+Additional_Holding_Strength/2,-1.414-Additional_Holding_Strength], //Point 9 move
[-11.666+Additional_Holding_Strength,-1.914-Additional_Holding_Strength], //Point 10 move
[-12.517,-1.914-Additional_Holding_Strength], //Point 11 move
[-12.517,-4.448], //Point 12
[-10.517,-6.448], //Point 13
[-10.517,-7.947], //Point 14
[0,-7.947] //Point 15
]
);
baseDeleteProfileHalf =
fwd(-7.947, //take Katie's exact measurements for half the profile of the inside
//profile extracted from exact coordinates in Master Profile F360 sketch. Any additional modifications are added mathmatical functions.
[
[0,-4.447], //inner x axis point with width adjustment
[0,1.683+0.02],
[-9.5+Additional_Holding_Strength*1.5,1.683+0.02], //Point 4
[-9.5+Additional_Holding_Strength*1.5,-3.447], //Point 3
[-8.5+Additional_Holding_Strength*1.5,-4.447], //Point 2
]
);
topChamfer = Additional_Holding_Strength < .4 ? 0 : 1;
function topProfileHalf(heightMM = 12) =
let(topChamfer = Additional_Holding_Strength < .4 ? 0 : 1)
back(1.414,//profile extracted from exact coordinates in Master Profile F360 sketch. Any additional modifications are added mathmatical functions.
[
[0,7.554 + (heightMM - 12)],//Point 1 (-0.017 per Katie's diagram. Moved to zero)
[0,9.554 + (heightMM - 12)],//Point 2
[-8.517,9.554 + (heightMM - 12)],//Point 3
[-12.517,5.554 + (heightMM - 12)],//Point 4
[-12.517,-1.414-Additional_Holding_Strength],//Point 5
[-11.166+Additional_Holding_Strength+Additional_Holding_Strength/2-topChamfer,-1.414-Additional_Holding_Strength],//Point 6
[-11.166+Additional_Holding_Strength+Additional_Holding_Strength/2,-0.592-Additional_Holding_Strength/2],//Point 7
[-11.459+Additional_Holding_Strength/2,-0.297],//Point 8
[-11.459+Additional_Holding_Strength/2,1.422],//Point 9
[-10.517+Additional_Holding_Strength/2,1.683],//Point 10
[-10.517+Additional_Holding_Strength/2, 4.725 + (heightMM - 12)],//Point 11
[-7.688,7.554 + (heightMM - 12)]//Point 12
]
);
function topDeleteProfileHalf(heightMM = 12)=
back(1.414,//profile extracted from exact coordinates in Master Profile F360 sketch. Any additional modifications are added mathmatical functions.
[
[0.1,7.554 + (heightMM - 12)], //point 1
[-7.688,7.554 + (heightMM - 12)], //point 12
[-10.517+Additional_Holding_Strength/2, 4.725 + (heightMM - 12)],//Point 11
[-10.517+Additional_Holding_Strength/2,1.683],//Point 10
[-11.459+Additional_Holding_Strength/2,1.422],//Point 9
[-11.459+Additional_Holding_Strength/2,-0.297],//Point 8
[-11.166+Additional_Holding_Strength+Additional_Holding_Strength/2,-0.592-Additional_Holding_Strength/2],//Point 7
[-11.166+Additional_Holding_Strength+Additional_Holding_Strength/2-topChamfer,-1.414-Additional_Holding_Strength-0.02],//Point 6
[0.1,-1.414-Additional_Holding_Strength-0.02],//Point 5
]
);
//An inside clamping profile alternative
function topProfileInverseHalf(heightMM = 12) =
let(snapWallThickness = 1, snapCaptureStrength = 0.5)
back(1.414,//profile extracted from exact coordinates in Master Profile F360 sketch. Any additional modifications are added mathmatical functions.
[
[0,7.554 + (heightMM - 12)],//Point 1 (-0.017 per Katie's diagram. Moved to zero)
[0,9.554 + (heightMM - 12)],//Point 2
[-8.517,9.554 + (heightMM - 12)],//Point 3
[-12.5,5.554 + (heightMM - 12)],//Point 4
[-12.5,2], //snap ceiling outer
[-11.5+snapWallThickness,1.8], //snap ceiling inner
[-11.5+snapWallThickness,-0.3], //snap lock outer
[-11.8+snapWallThickness-snapCaptureStrength,-0.6], //snap lock inner
[-11.8+snapWallThickness-snapCaptureStrength,-1.4], //snap floor outer
[-10.5+snapWallThickness-snapCaptureStrength,-2], //snap chamfer outer
[-10.5+snapWallThickness*1.5,-2], //snap floor inner
[-10.5+snapWallThickness*1.5, 4.725 + (heightMM - 12)],//Point 11
[-7.688+snapWallThickness*1.5,7.554 + (heightMM - 12)]//Point 12
]
);
function baseProfileInverseHalf() =
let(snapWallThickness = 1, snapCaptureStrength = 0.5, baseChamfer = 0.5)
fwd(-7.947, //take Katie's exact measurements for half the profile and use fwd to place flush on the Y axis
//profile extracted from exact coordinates in Master Profile F360 sketch. Any additional modifications are added mathmatical functions.
[
[0,-4.447], //Point 1
[-8.5,-4.447], //Point 2
[-10+snapWallThickness,-3.447], //Point 3
[-10+snapWallThickness,-2.4], //snap floor inner
[-11.8+snapWallThickness-snapCaptureStrength,-2.4], //snap floor outer
[-11.8+snapWallThickness-snapCaptureStrength,-0.6],//snap lock inner
[-11.5+snapWallThickness,-0.3],//snap lock outer
[-11.5+snapWallThickness,1.4-baseChamfer],//snap ceiling inner
[-11.7,1.683],//snap ceiling chamfer point
[-12.5,1.683], //snap ceiling outer
[-12.5,-4.448], //Point 12
[-10.5,-6.448], //Point 13
[-10.5,-7.947], //Point 14
[0,-7.947] //Point 15
]
);
//calculate the max x and y points. Useful in calculating size of an object when the path are all positive variables originating from [0,0]
function maxX(path) = max([for (p = path) p[0]]) + abs(min([for (p = path) p[0]]));
function maxY(path) = max([for (p = path) p[1]]) + abs(min([for (p = path) p[1]]));