Previously variable declaration required a keyword, e.g. ```kcl let x = 4 const x = 4 var x = 4 ``` These were all valid, and did the exact same thing. As of this PR, they're all still valid, but the KCL formatter will change them all to just: ```kcl x = 4 ``` which is the new preferred way to declare a constant. But the formatter will remove the var/let/const keywords. Closes https://github.com/KittyCAD/modeling-app/issues/3985
58 KiB
58 KiB
title, excerpt, layout
| title | excerpt | layout |
|---|---|---|
| patternLinear3d | Repeat a 3-dimensional solid along a linear path, with a dynamic amount | manual |
Repeat a 3-dimensional solid along a linear path, with a dynamic amount
of distance between each repetition, some specified number of times.
patternLinear3d(data: LinearPattern3dData, solid_set: SolidSet) -> [Solid]
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
data |
LinearPattern3dData |
Data for a linear pattern on a 3D model. | Yes |
solid_set |
SolidSet |
A solid or a group of solids. | Yes |
Returns
Examples
exampleSketch = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> line([0, 2], %)
|> line([3, 1], %)
|> line([0, -4], %)
|> close(%)
example = extrude(1, exampleSketch)
|> patternLinear3d({
axis: [1, 0, 1],
repetitions: 6,
distance: 6
}, %)