Skip to content
This repository was archived by the owner on Mar 8, 2025. It is now read-only.

Commit

Permalink
Fix to not rely on import side-effects (#173)
Browse files Browse the repository at this point in the history
* Fix to not rely on import side-effects

* In the realm of scripts and screens, adding a dash of mechanical dreams.

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
jtran and github-actions[bot] authored Feb 19, 2025
1 parent 8aebb1e commit 490578d
Show file tree
Hide file tree
Showing 30 changed files with 12,933 additions and 10,706 deletions.
2 changes: 1 addition & 1 deletion car-wheel-assembly/brake-caliper.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ brakeCaliperSketch = startSketchOn(brakeCaliperPlane)
|> close()

// Revolve the brake caliper sketch
export brakeCaliper = revolve({ axis = "Y", angle = -70 }, brakeCaliperSketch)
revolve({ axis = "Y", angle = -70 }, brakeCaliperSketch)
|> appearance(color = "#c82d2d", metalness = 90, roughness = 90)
2 changes: 1 addition & 1 deletion car-wheel-assembly/car-tire.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ tireSketch = startSketchOn("XY")
|> close()

// Revolve the sketch to create the tire
export carTire = revolve({ axis = "Y" }, tireSketch)
revolve({ axis = "Y" }, tireSketch)
|> appearance(color = "#0f0f0f", roughness = 80)
2 changes: 1 addition & 1 deletion car-wheel-assembly/car-wheel.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ spoke(spokeGap, spokeAngle, spokeThickness)
spoke(-spokeGap, -spokeAngle, -spokeThickness)

// Define and revolve wheel exterior
wheelOuterRevolve = startSketchOn('XY')
startSketchOn('XY')
|> startProfileAt([
wheelDiameter / 2,
-wheelWidth + backSpacing + offset
Expand Down
2 changes: 1 addition & 1 deletion car-wheel-assembly/lug-nut.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ fn lug(plane, length, diameter) {
return lugSketch
}

export lugNut = lug(customPlane, lugLength, lugDiameter)
lug(customPlane, lugLength, lugDiameter)
9 changes: 5 additions & 4 deletions car-wheel-assembly/main.kcl
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

import 'car-wheel.kcl' as carWheel
import 'car-rotor.kcl' as carRotor
import brakeCaliper from "brake-caliper.kcl"
import lugNut from 'lug-nut.kcl'
import carTire from 'car-tire.kcl'
import "brake-caliper.kcl" as brakeCaliper
import 'lug-nut.kcl' as lugNut
import 'car-tire.kcl' as carTire
import lugCount from 'globals.kcl'

carRotor
Expand All @@ -21,4 +21,5 @@ lugNut
instances = lugCount,
rotateDuplicates = false
)

brakeCaliper
carTire
Binary file modified screenshots/3d-boaty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/bracket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/car-wheel-assembly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/flange-with-patterns.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/flange-xy.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/focusrite-scarlett-mounting-bracket.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/food-service-spatula.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/french-press.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/lego.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/multi-axis-robot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/pipe-flange-assembly.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified screenshots/walkie-talkie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,176 changes: 588 additions & 588 deletions step/3d-boaty.step

Large diffs are not rendered by default.

122 changes: 61 additions & 61 deletions step/bracket.step

Large diffs are not rendered by default.

14,764 changes: 8,495 additions & 6,269 deletions step/car-wheel-assembly.step

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions step/flange-with-patterns.step
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ DATA;
GLOBAL_UNIT_ASSIGNED_CONTEXT((#1))
REPRESENTATION_CONTEXT('', '3D')
);
#4 = CARTESIAN_POINT('NONE', (0.03175, -0.0015249999999999999, -0));
#4 = CARTESIAN_POINT('NONE', (0.03175, -0.001524, -0));
#5 = VERTEX_POINT('NONE', #4);
#6 = CARTESIAN_POINT('NONE', (0.03175, 0, -0));
#7 = VERTEX_POINT('NONE', #6);
#8 = CARTESIAN_POINT('NONE', (0.015875, -0.0015249999999999999, 0.000000000000000003888253587292846));
#8 = CARTESIAN_POINT('NONE', (0.015875, -0.001524, 0.000000000000000003888253587292846));
#9 = VERTEX_POINT('NONE', #8);
#10 = CARTESIAN_POINT('NONE', (0.015875, 0, 0.000000000000000003888253587292846));
#11 = VERTEX_POINT('NONE', #10);
Expand Down Expand Up @@ -59,12 +59,12 @@ DATA;
#43 = VERTEX_POINT('NONE', #42);
#44 = DIRECTION('NONE', (1, 0, -0));
#45 = DIRECTION('NONE', (0, 1, 0));
#46 = CARTESIAN_POINT('NONE', (-0, -0.0015249999999999999, 0));
#46 = CARTESIAN_POINT('NONE', (-0, -0.001524, 0));
#47 = AXIS2_PLACEMENT_3D('NONE', #46, #45, #44);
#48 = CIRCLE('NONE', #47, 0.03175);
#49 = DIRECTION('NONE', (0, 1, 0));
#50 = VECTOR('NONE', #49, 1);
#51 = CARTESIAN_POINT('NONE', (0.03175, -0.0015249999999999999, -0));
#51 = CARTESIAN_POINT('NONE', (0.03175, -0.001524, -0));
#52 = LINE('NONE', #51, #50);
#53 = DIRECTION('NONE', (1, 0, -0));
#54 = DIRECTION('NONE', (0, 1, 0));
Expand All @@ -73,12 +73,12 @@ DATA;
#57 = CIRCLE('NONE', #56, 0.03175);
#58 = DIRECTION('NONE', (1, 0, 0.00000000000000024492935982947064));
#59 = DIRECTION('NONE', (0, -1, 0));
#60 = CARTESIAN_POINT('NONE', (0, -0.0015249999999999999, -0));
#60 = CARTESIAN_POINT('NONE', (0, -0.001524, -0));
#61 = AXIS2_PLACEMENT_3D('NONE', #60, #59, #58);
#62 = CIRCLE('NONE', #61, 0.015875);
#63 = DIRECTION('NONE', (0, 1, 0));
#64 = VECTOR('NONE', #63, 1);
#65 = CARTESIAN_POINT('NONE', (0.015875, -0.0015249999999999999, 0.000000000000000003888253587292846));
#65 = CARTESIAN_POINT('NONE', (0.015875, -0.001524, 0.000000000000000003888253587292846));
#66 = LINE('NONE', #65, #64);
#67 = DIRECTION('NONE', (1, 0, 0.00000000000000024492935982947064));
#68 = DIRECTION('NONE', (0, -1, 0));
Expand Down Expand Up @@ -227,17 +227,17 @@ DATA;
#211 = EDGE_CURVE('NONE', #41, #41, #174, .T.);
#212 = EDGE_CURVE('NONE', #41, #43, #178, .T.);
#213 = EDGE_CURVE('NONE', #43, #43, #183, .T.);
#214 = CARTESIAN_POINT('NONE', (-0, -0.0007624999999999999, 0));
#214 = CARTESIAN_POINT('NONE', (-0, -0.000762, 0));
#215 = DIRECTION('NONE', (0, 1, 0));
#216 = DIRECTION('NONE', (1, 0, -0));
#217 = AXIS2_PLACEMENT_3D('NONE', #214, #215, #216);
#218 = CYLINDRICAL_SURFACE('NONE', #217, 0.03175);
#219 = CARTESIAN_POINT('NONE', (0, -0.0007624999999999999, -0));
#219 = CARTESIAN_POINT('NONE', (0, -0.000762, -0));
#220 = DIRECTION('NONE', (0, -1, 0));
#221 = DIRECTION('NONE', (1, 0, 0.00000000000000024492935982947064));
#222 = AXIS2_PLACEMENT_3D('NONE', #219, #220, #221);
#223 = CYLINDRICAL_SURFACE('NONE', #222, 0.015875);
#224 = CARTESIAN_POINT('NONE', (0, -0.0015249999999999999, -0));
#224 = CARTESIAN_POINT('NONE', (0, -0.001524, -0));
#225 = DIRECTION('NONE', (0, 1, 0));
#226 = AXIS2_PLACEMENT_3D('NONE', #224, #225, $);
#227 = PLANE('NONE', #226);
Expand Down
18 changes: 9 additions & 9 deletions step/flange-xy.step
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ DATA;
GLOBAL_UNIT_ASSIGNED_CONTEXT((#1))
REPRESENTATION_CONTEXT('', '3D')
);
#4 = CARTESIAN_POINT('NONE', (0.03175, -0.0015249999999999999, -0));
#4 = CARTESIAN_POINT('NONE', (0.03175, -0.001524, -0));
#5 = VERTEX_POINT('NONE', #4);
#6 = CARTESIAN_POINT('NONE', (0.03175, 0, -0));
#7 = VERTEX_POINT('NONE', #6);
#8 = CARTESIAN_POINT('NONE', (0.015875, -0.0015249999999999999, 0.000000000000000003888253587292846));
#8 = CARTESIAN_POINT('NONE', (0.015875, -0.001524, 0.000000000000000003888253587292846));
#9 = VERTEX_POINT('NONE', #8);
#10 = CARTESIAN_POINT('NONE', (0.015875, 0, 0.000000000000000003888253587292846));
#11 = VERTEX_POINT('NONE', #10);
Expand Down Expand Up @@ -59,12 +59,12 @@ DATA;
#43 = VERTEX_POINT('NONE', #42);
#44 = DIRECTION('NONE', (1, 0, -0));
#45 = DIRECTION('NONE', (0, 1, 0));
#46 = CARTESIAN_POINT('NONE', (-0, -0.0015249999999999999, 0));
#46 = CARTESIAN_POINT('NONE', (-0, -0.001524, 0));
#47 = AXIS2_PLACEMENT_3D('NONE', #46, #45, #44);
#48 = CIRCLE('NONE', #47, 0.03175);
#49 = DIRECTION('NONE', (0, 1, 0));
#50 = VECTOR('NONE', #49, 1);
#51 = CARTESIAN_POINT('NONE', (0.03175, -0.0015249999999999999, -0));
#51 = CARTESIAN_POINT('NONE', (0.03175, -0.001524, -0));
#52 = LINE('NONE', #51, #50);
#53 = DIRECTION('NONE', (1, 0, -0));
#54 = DIRECTION('NONE', (0, 1, 0));
Expand All @@ -73,12 +73,12 @@ DATA;
#57 = CIRCLE('NONE', #56, 0.03175);
#58 = DIRECTION('NONE', (1, 0, 0.00000000000000024492935982947064));
#59 = DIRECTION('NONE', (0, -1, 0));
#60 = CARTESIAN_POINT('NONE', (0, -0.0015249999999999999, -0));
#60 = CARTESIAN_POINT('NONE', (0, -0.001524, -0));
#61 = AXIS2_PLACEMENT_3D('NONE', #60, #59, #58);
#62 = CIRCLE('NONE', #61, 0.015875);
#63 = DIRECTION('NONE', (0, 1, 0));
#64 = VECTOR('NONE', #63, 1);
#65 = CARTESIAN_POINT('NONE', (0.015875, -0.0015249999999999999, 0.000000000000000003888253587292846));
#65 = CARTESIAN_POINT('NONE', (0.015875, -0.001524, 0.000000000000000003888253587292846));
#66 = LINE('NONE', #65, #64);
#67 = DIRECTION('NONE', (1, 0, 0.00000000000000024492935982947064));
#68 = DIRECTION('NONE', (0, -1, 0));
Expand Down Expand Up @@ -227,17 +227,17 @@ DATA;
#211 = EDGE_CURVE('NONE', #41, #41, #174, .T.);
#212 = EDGE_CURVE('NONE', #41, #43, #178, .T.);
#213 = EDGE_CURVE('NONE', #43, #43, #183, .T.);
#214 = CARTESIAN_POINT('NONE', (-0, -0.0007624999999999999, 0));
#214 = CARTESIAN_POINT('NONE', (-0, -0.000762, 0));
#215 = DIRECTION('NONE', (0, 1, 0));
#216 = DIRECTION('NONE', (1, 0, -0));
#217 = AXIS2_PLACEMENT_3D('NONE', #214, #215, #216);
#218 = CYLINDRICAL_SURFACE('NONE', #217, 0.03175);
#219 = CARTESIAN_POINT('NONE', (0, -0.0007624999999999999, -0));
#219 = CARTESIAN_POINT('NONE', (0, -0.000762, -0));
#220 = DIRECTION('NONE', (0, -1, 0));
#221 = DIRECTION('NONE', (1, 0, 0.00000000000000024492935982947064));
#222 = AXIS2_PLACEMENT_3D('NONE', #219, #220, #221);
#223 = CYLINDRICAL_SURFACE('NONE', #222, 0.015875);
#224 = CARTESIAN_POINT('NONE', (0, -0.0015249999999999999, -0));
#224 = CARTESIAN_POINT('NONE', (0, -0.001524, -0));
#225 = DIRECTION('NONE', (0, 1, 0));
#226 = AXIS2_PLACEMENT_3D('NONE', #224, #225, $);
#227 = PLANE('NONE', #226);
Expand Down
Loading

0 comments on commit 490578d

Please sign in to comment.