Update all KCL-Samples to be more ME friendly (#6132)

* update all kcl-samples

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* Update kcl-samples simulation test output

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: Jess Frazelle <jessfraz@users.noreply.github.com>
Co-authored-by: Jess Frazelle <github@jessfraz.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Josh Gomez
2025-04-04 11:03:13 -07:00
committed by GitHub
parent a7896329f7
commit 656eb0abec
195 changed files with 33905 additions and 35179 deletions

View File

@ -4,21 +4,16 @@
// Set units
@settings(defaultLengthUnit = in)
// Define constants in inches (in)
// Define parameters
innerDiameter = 0.203
outerDiameter = 0.438
thicknessMax = 0.038
thicknessNom = 0.032
thicknessMin = 0.024
// Write a function that defines the washer and extrude it.
fn washer(plane, innerDia, outerDia, thk) {
// Define the sketch of the washer
washerSketch = startSketchOn(plane)
|> circle(center = [0, 0], radius = outerDia / 2)
|> hole(circle(center = [0, 0], radius = innerDia / 2), %)
// Define the sketch of the washer
washerSketch = startSketchOn(XY)
|> circle(center = [0, 0], radius = outerDiameter / 2)
|> hole(circle(center = [0, 0], radius = innerDiameter / 2), %)
washer = extrude(washerSketch, length = thk)
return washer
}
washer(XY, innerDiameter, outerDiameter, thicknessMax)
washer = extrude(washerSketch, length = thicknessNom)