KCL: Set sensible defaults for pattern 'axis' arg (#7168)

This commit is contained in:
Adam Chalmers
2025-05-22 14:24:21 -05:00
committed by GitHub
parent 04a2c184d7
commit 4e2deca5d8
4 changed files with 22 additions and 8 deletions

View File

@ -26,7 +26,7 @@ patternLinear3d(
| `solids` | [`[Solid]`](/docs/kcl-std/types/std-types-Solid) | The solid(s) to duplicate | Yes |
| `instances` | [`number`](/docs/kcl-std/types/std-types-number) | The number of total instances. Must be greater than or equal to 1. This includes the original entity. For example, if instances is 2, there will be two copies -- the original, and one new copy. If instances is 1, this has no effect. | Yes |
| `distance` | [`number`](/docs/kcl-std/types/std-types-number) | Distance between each repetition. Also known as 'spacing'. | Yes |
| `axis` | [`Point3d`](/docs/kcl-std/types/std-types-Point3d) | The axis of the pattern. A 2D vector. | Yes |
| `axis` | [`Point3d`](/docs/kcl-std/types/std-types-Point3d) | The axis of the pattern. A 3D vector. | Yes |
| `useOriginal` | [`bool`](/docs/kcl-std/types/std-types-bool) | If the target was sketched on an extrusion, setting this will use the original sketch as the target, not the entire joined solid. Defaults to false. | No |
### Returns

View File

@ -143430,6 +143430,11 @@
},
"required": true,
"includeInSnippet": true,
"snippetValueArray": [
"1",
"0",
"0"
],
"description": "The axis around which to make the pattern. This is a 3D vector",
"labelRequired": true
},
@ -157910,6 +157915,10 @@
},
"required": true,
"includeInSnippet": true,
"snippetValueArray": [
"1",
"0"
],
"description": "The axis of the pattern. A 2D vector.",
"labelRequired": true
},
@ -167569,7 +167578,12 @@
},
"required": true,
"includeInSnippet": true,
"description": "The axis of the pattern. A 2D vector.",
"snippetValueArray": [
"1",
"0",
"0"
],
"description": "The axis of the pattern. A 3D vector.",
"labelRequired": true
},
{