@@ -19,13 +19,13 @@ import Face from "std::types"
19
19
/// filletRadius = 2
20
20
///
21
21
/// mountingPlateSketch = startSketchOn(XY)
22
- /// |> startProfile(at = [-width/2, -length/2])
22
+ /// mountingPlateProfile = startProfile(mountingPlateSketch, at = [-width/2, -length/2])
23
23
/// |> line(endAbsolute = [width/2, -length/2], tag = $edge1)
24
24
/// |> line(endAbsolute = [width/2, length/2], tag = $edge2)
25
25
/// |> line(endAbsolute = [-width/2, length/2], tag = $edge3)
26
26
/// |> close(tag = $edge4)
27
27
///
28
- /// mountingPlate = extrude(mountingPlateSketch , length = thickness)
28
+ /// mountingPlate = extrude(mountingPlateProfile , length = thickness)
29
29
/// |> fillet(
30
30
/// radius = filletRadius,
31
31
/// tags = [
@@ -44,13 +44,13 @@ import Face from "std::types"
44
44
/// filletRadius = 1
45
45
///
46
46
/// mountingPlateSketch = startSketchOn(XY)
47
- /// |> startProfile(at = [-width/2, -length/2])
47
+ /// mountingPlateProfile = startProfile(mountingPlateSketch, at = [-width/2, -length/2])
48
48
/// |> line(endAbsolute = [width/2, -length/2], tag = $edge1)
49
49
/// |> line(endAbsolute = [width/2, length/2], tag = $edge2)
50
50
/// |> line(endAbsolute = [-width/2, length/2], tag = $edge3)
51
51
/// |> close(tag = $edge4)
52
52
///
53
- /// mountingPlate = extrude(mountingPlateSketch , length = thickness)
53
+ /// mountingPlate = extrude(mountingPlateProfile , length = thickness)
54
54
/// |> fillet(
55
55
/// radius = filletRadius,
56
56
/// tolerance = 0.000001,
@@ -90,13 +90,13 @@ export fn fillet(
90
90
/// chamferLength = 2
91
91
///
92
92
/// mountingPlateSketch = startSketchOn(XY)
93
- /// |> startProfile(at = [-width/2, -length/2])
93
+ /// mountingPlateProfile = startProfile(mountingPlateSketch, at = [-width/2, -length/2])
94
94
/// |> line(endAbsolute = [width/2, -length/2], tag = $edge1)
95
95
/// |> line(endAbsolute = [width/2, length/2], tag = $edge2)
96
96
/// |> line(endAbsolute = [-width/2, length/2], tag = $edge3)
97
97
/// |> close(tag = $edge4)
98
98
///
99
- /// mountingPlate = extrude(mountingPlateSketch , length = thickness)
99
+ /// mountingPlate = extrude(mountingPlateProfile , length = thickness)
100
100
/// |> chamfer(
101
101
/// length = chamferLength,
102
102
/// tags = [
@@ -111,13 +111,13 @@ export fn fillet(
111
111
/// ```
112
112
/// // Sketch on the face of a chamfer.
113
113
/// fn cube(pos, scale) {
114
- /// sg = startSketchOn(XY)
115
- /// |> startProfile(at = pos)
114
+ /// cubeSketch = startSketchOn(XY)
115
+ /// cubeProfile = startProfile(cubeSketch, at = pos)
116
116
/// |> line(end = [0, scale])
117
117
/// |> line(end = [scale, 0])
118
118
/// |> line(end = [0, -scale])
119
119
///
120
- /// return sg
120
+ /// return cubeProfile
121
121
/// }
122
122
///
123
123
/// part001 = cube(pos = [0,0], scale = 20)
@@ -131,7 +131,7 @@ export fn fillet(
131
131
/// )
132
132
///
133
133
/// sketch001 = startSketchOn(part001, face = chamfer1)
134
- /// |> startProfile(at = [10, 10])
134
+ /// profile001 = startProfile(sketch001, at = [10, 10])
135
135
/// |> line(end = [2, 0])
136
136
/// |> line(end = [0, 2])
137
137
/// |> line(end = [-2, 0])
@@ -414,7 +414,7 @@ export fn hollow(
414
414
///
415
415
/// // Sketch 4 cylinders.
416
416
/// sketch001 = startSketchOn(XZ)
417
- /// |> circle(center = [0, 0], radius = 2)
417
+ /// extrude001 = circle(sketch001, center = [0, 0], radius = 2)
418
418
/// |> extrude(length = 5)
419
419
/// |> patternTransform(instances = 4, transform = transform)
420
420
/// ```
@@ -428,7 +428,7 @@ export fn hollow(
428
428
/// }
429
429
///
430
430
/// sketch001 = startSketchOn(XZ)
431
- /// |> circle(center = [0, 0], radius = 2)
431
+ /// extrude001 = circle(sketch001, center = [0, 0], radius = 2)
432
432
/// |> extrude(length = 5)
433
433
/// |> patternTransform(instances = 4, transform = transform)
434
434
/// ```
@@ -572,13 +572,13 @@ export fn patternTransform(
572
572
/// /// Pattern using a named axis.
573
573
///
574
574
/// exampleSketch = startSketchOn(XZ)
575
- /// |> startProfile(at = [0, 0])
575
+ /// exampleProfile = startProfile(exampleSketch, at = [0, 0])
576
576
/// |> line(end = [0, 2])
577
577
/// |> line(end = [3, 1])
578
578
/// |> line(end = [0, -4])
579
579
/// |> close()
580
580
///
581
- /// example = extrude(exampleSketch , length = 1)
581
+ /// example = extrude(exampleProfile , length = 1)
582
582
/// |> patternLinear3d(
583
583
/// axis = X,
584
584
/// instances = 7,
@@ -590,13 +590,13 @@ export fn patternTransform(
590
590
/// /// Pattern using a raw axis.
591
591
///
592
592
/// exampleSketch = startSketchOn(XZ)
593
- /// |> startProfile(at = [0, 0])
593
+ /// exampleProfile = startProfile(exampleSketch, at = [0, 0])
594
594
/// |> line(end = [0, 2])
595
595
/// |> line(end = [3, 1])
596
596
/// |> line(end = [0, -4])
597
597
/// |> close()
598
598
///
599
- /// example = extrude(exampleSketch , length = 1)
599
+ /// example = extrude(exampleProfile , length = 1)
600
600
/// |> patternLinear3d(
601
601
/// axis = [1, 0, 1],
602
602
/// instances = 7,
@@ -607,8 +607,8 @@ export fn patternTransform(
607
607
/// ```kcl
608
608
/// // Pattern a whole sketch on face.
609
609
/// size = 100
610
- /// case = startSketchOn(XY)
611
- /// |> startProfile(at = [-size, -size])
610
+ /// caseSketch = startSketchOn(XY)
611
+ /// case = startProfile(caseSketch, at = [-size, -size])
612
612
/// |> line(end = [2 * size, 0])
613
613
/// |> line(end = [0, 2 * size])
614
614
/// |> tangentialArc(endAbsolute = [-size, size])
@@ -635,8 +635,8 @@ export fn patternTransform(
635
635
/// ```kcl
636
636
/// // Pattern an object on a face.
637
637
/// size = 100
638
- /// case = startSketchOn(XY)
639
- /// |> startProfile(at = [-size, -size])
638
+ /// caseSketch = startSketchOn(XY)
639
+ /// case = startProfile(caseSketch, at = [-size, -size])
640
640
/// |> line(end = [2 * size, 0])
641
641
/// |> line(end = [0, 2 * size])
642
642
/// |> tangentialArc(endAbsolute = [-size, size])
@@ -732,8 +732,8 @@ export fn patternCircular3d(
732
732
/// // Union two cubes using the stdlib functions.
733
733
///
734
734
/// fn cube(center, size) {
735
- /// return startSketchOn(XY)
736
- /// |> startProfile(at = [center[0] - size, center[1] - size])
735
+ /// cubeSketch = startSketchOn(XY)
736
+ /// return startProfile(cubeSketch, at = [center[0] - size, center[1] - size])
737
737
/// |> line(endAbsolute = [center[0] + size, center[1] - size])
738
738
/// |> line(endAbsolute = [center[0] + size, center[1] + size])
739
739
/// |> line(endAbsolute = [center[0] - size, center[1] + size])
@@ -754,8 +754,8 @@ export fn patternCircular3d(
754
754
/// // Codemods will generate the stdlib function call instead.
755
755
///
756
756
/// fn cube(center, size) {
757
- /// return startSketchOn(XY)
758
- /// |> startProfile(at = [center[0] - size, center[1] - size])
757
+ /// cubeSketch = startSketchOn(XY)
758
+ /// return startProfile(cubeSketch, at = [center[0] - size, center[1] - size])
759
759
/// |> line(endAbsolute = [center[0] + size, center[1] - size])
760
760
/// |> line(endAbsolute = [center[0] + size, center[1] + size])
761
761
/// |> line(endAbsolute = [center[0] - size, center[1] + size])
@@ -777,8 +777,8 @@ export fn patternCircular3d(
777
777
/// // Codemods will generate the stdlib function call instead.
778
778
///
779
779
/// fn cube(center, size) {
780
- /// return startSketchOn(XY)
781
- /// |> startProfile(at = [center[0] - size, center[1] - size])
780
+ /// cubeSketch = startSketchOn(XY)
781
+ /// return startProfile(cubeSketch, at = [center[0] - size, center[1] - size])
782
782
/// |> line(endAbsolute = [center[0] + size, center[1] - size])
783
783
/// |> line(endAbsolute = [center[0] + size, center[1] + size])
784
784
/// |> line(endAbsolute = [center[0] - size, center[1] + size])
@@ -815,8 +815,8 @@ export fn union(
815
815
/// // Intersect two cubes using the stdlib functions.
816
816
///
817
817
/// fn cube(center, size) {
818
- /// return startSketchOn(XY)
819
- /// |> startProfile(at = [center[0] - size, center[1] - size])
818
+ /// cubeSketch = startSketchOn(XY)
819
+ /// return startProfile(cubeSketch, at = [center[0] - size, center[1] - size])
820
820
/// |> line(endAbsolute = [center[0] + size, center[1] - size])
821
821
/// |> line(endAbsolute = [center[0] + size, center[1] + size])
822
822
/// |> line(endAbsolute = [center[0] - size, center[1] + size])
@@ -837,8 +837,8 @@ export fn union(
837
837
/// // Codemods will generate the stdlib function call instead.
838
838
///
839
839
/// fn cube(center, size) {
840
- /// return startSketchOn(XY)
841
- /// |> startProfile(at = [center[0] - size, center[1] - size])
840
+ /// cubeSketch = startSketchOn(XY)
841
+ /// return startProfile(cubeSketch, at = [center[0] - size, center[1] - size])
842
842
/// |> line(endAbsolute = [center[0] + size, center[1] - size])
843
843
/// |> line(endAbsolute = [center[0] + size, center[1] + size])
844
844
/// |> line(endAbsolute = [center[0] - size, center[1] + size])
@@ -873,8 +873,8 @@ export fn intersect(
873
873
/// // Subtract a cylinder from a cube using the stdlib functions.
874
874
///
875
875
/// fn cube(center, size) {
876
- /// return startSketchOn(XY)
877
- /// |> startProfile(at = [center[0] - size, center[1] - size])
876
+ /// cubeSketch = startSketchOn(XY)
877
+ /// return startProfile(cubeSketch, at = [center[0] - size, center[1] - size])
878
878
/// |> line(endAbsolute = [center[0] + size, center[1] - size])
879
879
/// |> line(endAbsolute = [center[0] + size, center[1] + size])
880
880
/// |> line(endAbsolute = [center[0] - size, center[1] + size])
@@ -895,8 +895,8 @@ export fn intersect(
895
895
/// // Codemods will generate the stdlib function call instead.
896
896
///
897
897
/// fn cube(center, size) {
898
- /// return startSketchOn(XY)
899
- /// |> startProfile(at = [center[0] - size, center[1] - size])
898
+ /// cubeSketch = startSketchOn(XY)
899
+ /// return startProfile(cubeSketch, at = [center[0] - size, center[1] - size])
900
900
/// |> line(endAbsolute = [center[0] + size, center[1] - size])
901
901
/// |> line(endAbsolute = [center[0] + size, center[1] + size])
902
902
/// |> line(endAbsolute = [center[0] - size, center[1] + size])
@@ -928,21 +928,21 @@ export fn subtract(
928
928
/// ```kcl
929
929
/// // Add color to an extruded solid.
930
930
/// exampleSketch = startSketchOn(XZ)
931
- /// |> startProfile(at = [0, 0])
931
+ /// exampleProfile = startProfile(exampleSketch, at = [0, 0])
932
932
/// |> line(endAbsolute = [10, 0])
933
933
/// |> line(endAbsolute = [0, 10])
934
934
/// |> line(endAbsolute = [-10, 0])
935
935
/// |> close()
936
936
///
937
- /// example = extrude(exampleSketch , length = 5)
937
+ /// example = extrude(exampleProfile , length = 5)
938
938
/// // There are other options besides 'color', but they're optional.
939
939
/// |> appearance(color='#ff0000')
940
940
/// ```
941
941
///
942
942
/// ```kcl
943
943
/// // Add color to a revolved solid.
944
944
/// sketch001 = startSketchOn(XY)
945
- /// |> circle( center = [15, 0], radius = 5 )
945
+ /// profile001 = circle( sketch001, center = [15, 0], radius = 5 )
946
946
/// |> revolve( angle = 360deg, axis = Y)
947
947
/// |> appearance(
948
948
/// color = '#ff0000',
@@ -954,13 +954,13 @@ export fn subtract(
954
954
/// ```kcl
955
955
/// // Add color to different solids.
956
956
/// fn cube(center) {
957
- /// return startSketchOn(XY)
958
- /// |> startProfile(at = [center[0] - 10, center[1] - 10])
959
- /// |> line(endAbsolute = [center[0] + 10, center[1] - 10])
957
+ /// cubeSketch = startSketchOn(XY)
958
+ /// return startProfile(cubeSketch, at = [center[0] - 10, center[1] - 10])
959
+ /// |> line(endAbsolute = [center[0] + 10, center[1] - 10])
960
960
/// |> line(endAbsolute = [center[0] + 10, center[1] + 10])
961
961
/// |> line(endAbsolute = [center[0] - 10, center[1] + 10])
962
962
/// |> close()
963
- /// |> extrude(length = 10)
963
+ /// |> extrude(length = 10)
964
964
/// }
965
965
///
966
966
/// example0 = cube(center = [0, 0])
@@ -975,15 +975,15 @@ export fn subtract(
975
975
/// // You can set the appearance before or after you shell it will yield the same result.
976
976
/// // This example shows setting the appearance _after_ the shell.
977
977
/// firstSketch = startSketchOn(XY)
978
- /// |> startProfile(at = [-12, 12])
978
+ /// firstSolid = startProfile(firstSketch, at = [-12, 12])
979
979
/// |> line(end = [24, 0])
980
980
/// |> line(end = [0, -24])
981
981
/// |> line(end = [-24, 0])
982
982
/// |> close()
983
983
/// |> extrude(length = 6)
984
984
///
985
985
/// shell(
986
- /// firstSketch ,
986
+ /// firstSolid ,
987
987
/// faces = [END],
988
988
/// thickness = 0.25,
989
989
/// )
@@ -1021,13 +1021,13 @@ export fn subtract(
1021
1021
/// // Setting the appearance of a 3D pattern can be done _before_ or _after_ the pattern.
1022
1022
/// // This example shows _before_ the pattern.
1023
1023
/// exampleSketch = startSketchOn(XZ)
1024
- /// |> startProfile(at = [0, 0])
1024
+ /// exampleProfile = startProfile(exampleSketch, at = [0, 0])
1025
1025
/// |> line(end = [0, 2])
1026
1026
/// |> line(end = [3, 1])
1027
1027
/// |> line(end = [0, -4])
1028
1028
/// |> close()
1029
1029
///
1030
- /// example = extrude(exampleSketch , length = 1)
1030
+ /// example = extrude(exampleProfile , length = 1)
1031
1031
/// |> appearance(
1032
1032
/// color = '#ff0000',
1033
1033
/// metalness = 90,
0 commit comments