mrWheel / YAPP_Box

Yet Another Parametric Projectbox Box
https://willem.aandewiel.nl/index.php/2022/01/02/yet-another-parametric-projectbox-generator/
MIT License
279 stars 47 forks source link

Add yappRing shape to create rings #71

Closed dtorres-sf closed 8 months ago

dtorres-sf commented 9 months ago

@mrWheel Amazing work on this project and thank you for sharing! I needed a way to add support for a ring, let me know if this is something you would want to merge in.

This shape allows for creating cutouts in a ring shape. I am currently using it for creating an inlay in the lid, but could be used for a full cutout with a bridge to support the center of the ring. Here are a few screenshots:

Used as inlay: image

For the above screenshot it looks like this:

innerRadius = 11;
outerRadius = 19.5;
bridgeWidth = 0;
// Below is the entry in the lid cutout:
[pcbLength("Rotary Encoder"), pcbLength("Rotary Encoder")/2 + 4,bridgeWidth,innerRadius, outerRadius, yappRing , 1, yappCenter]

image

Because there is a depth that is shallower than the lid thickness this works great. For a full cutout a bridge width would be needed to support the center like so:

innerRadius = 11;
outerRadius = 19.5;
bridgeWidth = 0;
// Below is the entry in the lid cutout:
[pcbLength("Rotary Encoder"), pcbLength("Rotary Encoder")/2 + 4,bridgeWidth,innerRadius, outerRadius, yappRing , yappCenter]
mrWheel commented 8 months ago

@rosenhauer, Dave,

Is this something we need? If so, can you do the merge?

rosenhauer commented 8 months ago
cutoutsLid  = 
[
 [20,20, 0, 10, 20, yappRing, yappCenter]
 ,[70,20, 5, 10, 20, yappRing, yappDefault, 0, yappCenter]
 ,[120,20, -5, 10, 20, yappRing, yappDefault, 45, yappCenter]
];

image