Skip to content

Commit

Permalink
Update samples to use new tag syntax (#37)
Browse files Browse the repository at this point in the history
* Update samples to use new tag syntax

See new tag syntax introduced in KittyCAD/modeling-app#2769

* Format code

* 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 Jul 29, 2024
1 parent ded206e commit c56503e
Show file tree
Hide file tree
Showing 18 changed files with 31,803 additions and 2,347 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ When you submit a PR to add or modify KCL samples, images and STEP files will be
[![ball-bearing](screenshots-of-samples/ball-bearing.png)](ball-bearing.kcl)
#### [bracket](bracket.kcl) ([step](STEP-output-of-samples/bracket.step)) ([screenshot](screenshots-of-samples/bracket.png))
[![bracket](screenshots-of-samples/bracket.png)](bracket.kcl)
#### [car-wheel](car-wheel.kcl) ([step](STEP-output-of-samples/car-wheel.step)) ([screenshot](screenshots-of-samples/car-wheel.png))
[![car-wheel](screenshots-of-samples/car-wheel.png)](car-wheel.kcl)
#### [constrained-y](constrained-y.kcl) ([step](STEP-output-of-samples/constrained-y.step)) ([screenshot](screenshots-of-samples/constrained-y.png))
[![constrained-y](screenshots-of-samples/constrained-y.png)](constrained-y.kcl)
#### [flange-with-patterns](flange-with-patterns.kcl) ([step](STEP-output-of-samples/flange-with-patterns.step)) ([screenshot](screenshots-of-samples/flange-with-patterns.png))
Expand All @@ -37,10 +39,10 @@ When you submit a PR to add or modify KCL samples, images and STEP files will be
[![flange-xy](screenshots-of-samples/flange-xy.png)](flange-xy.kcl)
#### [focusrite-scarlett-mounting-bracket](focusrite-scarlett-mounting-bracket.kcl) ([step](STEP-output-of-samples/focusrite-scarlett-mounting-bracket.step)) ([screenshot](screenshots-of-samples/focusrite-scarlett-mounting-bracket.png))
[![focusrite-scarlett-mounting-bracket](screenshots-of-samples/focusrite-scarlett-mounting-bracket.png)](focusrite-scarlett-mounting-bracket.kcl)
#### [gear-rack](gear-rack.kcl) ([step](STEP-output-of-samples/gear-rack.step)) ([screenshot](screenshots-of-samples/gear-rack.png))
[![gear-rack](screenshots-of-samples/gear-rack.png)](gear-rack.kcl)
#### [gear](gear.kcl) ([step](STEP-output-of-samples/gear.step)) ([screenshot](screenshots-of-samples/gear.png))
[![gear](screenshots-of-samples/gear.png)](gear.kcl)
#### [gear_rack](gear_rack.kcl) ([step](STEP-output-of-samples/gear_rack.step)) ([screenshot](screenshots-of-samples/gear_rack.png))
[![gear_rack](screenshots-of-samples/gear_rack.png)](gear_rack.kcl)
#### [hex-nut](hex-nut.kcl) ([step](STEP-output-of-samples/hex-nut.step)) ([screenshot](screenshots-of-samples/hex-nut.png))
[![hex-nut](screenshots-of-samples/hex-nut.png)](hex-nut.kcl)
#### [kitt](kitt.kcl) ([step](STEP-output-of-samples/kitt.step)) ([screenshot](screenshots-of-samples/kitt.png))
Expand Down
32 changes: 16 additions & 16 deletions STEP-output-of-samples/bracket.step
Original file line number Diff line number Diff line change
Expand Up @@ -86,31 +86,31 @@ DATA;
#70 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0, 0.018323818102449898));
#71 = LINE('NONE', #70, #69);
#72 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0.1524, 0.018323818102449898));
#73 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0.1524, 0.008798818102449901));
#73 = CARTESIAN_POINT('NONE', (-0.19440118189755004, 0.1524, 0.008798818102449918));
#74 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0.1524, 0.008798818102449915));
#75 = (
BOUNDED_CURVE()
B_SPLINE_CURVE(2, (#72, #73, #74), .UNSPECIFIED., .F., .F.)
B_SPLINE_CURVE_WITH_KNOTS((3, 3), (0, 1), .UNSPECIFIED.)
CURVE()
GEOMETRIC_REPRESENTATION_ITEM()
RATIONAL_B_SPLINE_CURVE((1, 0.7071067811865476, 1))
RATIONAL_B_SPLINE_CURVE((1, 1, 1))
REPRESENTATION_ITEM('NONE')
);
#76 = DIRECTION('NONE', (0, -1, 0));
#77 = VECTOR('NONE', #76, 1);
#78 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0.1524, 0.008798818102449915));
#79 = LINE('NONE', #78, #77);
#80 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0, 0.008798818102449915));
#81 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0, 0.008798818102449901));
#81 = CARTESIAN_POINT('NONE', (-0.19440118189755004, 0, 0.008798818102449918));
#82 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0, 0.018323818102449898));
#83 = (
BOUNDED_CURVE()
B_SPLINE_CURVE(2, (#80, #81, #82), .UNSPECIFIED., .F., .F.)
B_SPLINE_CURVE_WITH_KNOTS((3, 3), (-1, -0), .UNSPECIFIED.)
CURVE()
GEOMETRIC_REPRESENTATION_ITEM()
RATIONAL_B_SPLINE_CURVE((1, 0.7071067811865476, 1))
RATIONAL_B_SPLINE_CURVE((1, 1, 1))
REPRESENTATION_ITEM('NONE')
);
#84 = DIRECTION('NONE', (0, 0, -1));
Expand All @@ -134,31 +134,31 @@ DATA;
#102 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0, -0));
#103 = LINE('NONE', #102, #101);
#104 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0.1524, -0));
#105 = CARTESIAN_POINT('NONE', (-0.2032, 0.1524, -0));
#105 = CARTESIAN_POINT('NONE', (-0.20319999999999996, 0.1524, -0));
#106 = CARTESIAN_POINT('NONE', (-0.2032, 0.1524, 0.018323818102449894));
#107 = (
BOUNDED_CURVE()
B_SPLINE_CURVE(2, (#104, #105, #106), .UNSPECIFIED., .F., .F.)
B_SPLINE_CURVE_WITH_KNOTS((3, 3), (0, 1), .UNSPECIFIED.)
CURVE()
GEOMETRIC_REPRESENTATION_ITEM()
RATIONAL_B_SPLINE_CURVE((1, 0.7071067811865476, 1))
RATIONAL_B_SPLINE_CURVE((1, 1, 1))
REPRESENTATION_ITEM('NONE')
);
#108 = DIRECTION('NONE', (0, -1, 0));
#109 = VECTOR('NONE', #108, 1);
#110 = CARTESIAN_POINT('NONE', (-0.2032, 0.1524, 0.018323818102449894));
#111 = LINE('NONE', #110, #109);
#112 = CARTESIAN_POINT('NONE', (-0.2032, 0, 0.018323818102449894));
#113 = CARTESIAN_POINT('NONE', (-0.2032, 0, -0));
#113 = CARTESIAN_POINT('NONE', (-0.20319999999999996, 0, -0));
#114 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0, -0));
#115 = (
BOUNDED_CURVE()
B_SPLINE_CURVE(2, (#112, #113, #114), .UNSPECIFIED., .F., .F.)
B_SPLINE_CURVE_WITH_KNOTS((3, 3), (-1, -0), .UNSPECIFIED.)
CURVE()
GEOMETRIC_REPRESENTATION_ITEM()
RATIONAL_B_SPLINE_CURVE((1, 0.7071067811865476, 1))
RATIONAL_B_SPLINE_CURVE((1, 1, 1))
REPRESENTATION_ITEM('NONE')
);
#116 = DIRECTION('NONE', (-1, 0, 0));
Expand Down Expand Up @@ -292,38 +292,38 @@ DATA;
#244 = AXIS2_PLACEMENT_3D('NONE', #242, #243, $);
#245 = PLANE('NONE', #244);
#246 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0, 0.018323818102449898));
#247 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0, 0.008798818102449901));
#247 = CARTESIAN_POINT('NONE', (-0.19440118189755004, 0, 0.008798818102449918));
#248 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0, 0.008798818102449915));
#249 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0.0762, 0.018323818102449898));
#250 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0.0762, 0.008798818102449901));
#250 = CARTESIAN_POINT('NONE', (-0.19440118189755004, 0.0762, 0.008798818102449918));
#251 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0.0762, 0.008798818102449915));
#252 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0.1524, 0.018323818102449898));
#253 = CARTESIAN_POINT('NONE', (-0.1944011818975501, 0.1524, 0.008798818102449901));
#253 = CARTESIAN_POINT('NONE', (-0.19440118189755004, 0.1524, 0.008798818102449918));
#254 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0.1524, 0.008798818102449915));
#255 = (
BOUNDED_SURFACE()
B_SPLINE_SURFACE(2, 2, ((#246, #247, #248), (#249, #250, #251), (#252, #253, #254)), .UNSPECIFIED., .F., .F., .F.)
B_SPLINE_SURFACE_WITH_KNOTS((3, 3), (3, 3), (0, 1), (0, 1), .UNSPECIFIED.)
GEOMETRIC_REPRESENTATION_ITEM()
RATIONAL_B_SPLINE_SURFACE(((1, 0.7071067811865476, 1), (1, 0.7071067811865476, 1), (1, 0.7071067811865476, 1)))
RATIONAL_B_SPLINE_SURFACE(((1, 1, 1), (1, 1, 1), (1, 1, 1)))
REPRESENTATION_ITEM('NONE')
SURFACE()
);
#256 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0, -0));
#257 = CARTESIAN_POINT('NONE', (-0.2032, 0, -0));
#257 = CARTESIAN_POINT('NONE', (-0.20319999999999996, 0, -0));
#258 = CARTESIAN_POINT('NONE', (-0.2032, 0, 0.018323818102449894));
#259 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0.0762, -0));
#260 = CARTESIAN_POINT('NONE', (-0.2032, 0.0762, -0));
#260 = CARTESIAN_POINT('NONE', (-0.20319999999999996, 0.0762, -0));
#261 = CARTESIAN_POINT('NONE', (-0.2032, 0.0762, 0.018323818102449894));
#262 = CARTESIAN_POINT('NONE', (-0.1848761818975501, 0.1524, -0));
#263 = CARTESIAN_POINT('NONE', (-0.2032, 0.1524, -0));
#263 = CARTESIAN_POINT('NONE', (-0.20319999999999996, 0.1524, -0));
#264 = CARTESIAN_POINT('NONE', (-0.2032, 0.1524, 0.018323818102449894));
#265 = (
BOUNDED_SURFACE()
B_SPLINE_SURFACE(2, 2, ((#256, #257, #258), (#259, #260, #261), (#262, #263, #264)), .UNSPECIFIED., .F., .F., .F.)
B_SPLINE_SURFACE_WITH_KNOTS((3, 3), (3, 3), (0, 1), (0, 1), .UNSPECIFIED.)
GEOMETRIC_REPRESENTATION_ITEM()
RATIONAL_B_SPLINE_SURFACE(((1, 0.7071067811865476, 1), (1, 0.7071067811865476, 1), (1, 0.7071067811865476, 1)))
RATIONAL_B_SPLINE_SURFACE(((1, 1, 1), (1, 1, 1), (1, 1, 1)))
REPRESENTATION_ITEM('NONE')
SURFACE()
);
Expand Down
Loading

0 comments on commit c56503e

Please sign in to comment.