Skip to content

Commit

Permalink
allow for sketching on the face of a chamfer in kcl (#2760)
Browse files Browse the repository at this point in the history
* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* cleanup

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* lots of cleanup

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* lots more cleanup

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* more cleaniup

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fix typos

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* add to known issues

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* fixes

Signed-off-by: Jess Frazelle <github@jessfraz.com>

* updates

Signed-off-by: Jess Frazelle <github@jessfraz.com>

---------

Signed-off-by: Jess Frazelle <github@jessfraz.com>
  • Loading branch information
jessfraz committed Jun 24, 2024
1 parent 3946532 commit 5260bd6
Show file tree
Hide file tree
Showing 59 changed files with 991 additions and 279 deletions.
2 changes: 2 additions & 0 deletions docs/kcl/KNOWN-ISSUES.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,7 @@ once fixed in engine will just start working here with no language changes.
- **Chamfers**: Chamfers cannot intersect, you will get an error. Only simple
chamfer cases work currently.

Sketching on the chamfered face does not currently work.

- **Shell**: Shell is only working for `end` faces, not for `side` or `start`
faces. We are tracking the engine side bug on this.
1 change: 1 addition & 0 deletions docs/kcl/angleToMatchLengthX.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ const extrusion = extrude(5, sketch001)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
1 change: 1 addition & 0 deletions docs/kcl/angleToMatchLengthY.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ const extrusion = extrude(5, sketch001)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/angledLine.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -371,6 +372,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/angledLineOfXLength.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const extrusion = extrude(10, sketch001)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -370,6 +371,7 @@ const extrusion = extrude(10, sketch001)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/angledLineOfYLength.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -372,6 +373,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/angledLineThatIntersects.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -376,6 +377,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/angledLineToX.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -369,6 +370,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/angledLineToY.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -369,6 +370,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/arc.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,7 @@ const exampleSketch = startSketchOn('XZ')
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -380,6 +381,7 @@ const exampleSketch = startSketchOn('XZ')
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/bezierCurve.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -375,6 +376,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
7 changes: 6 additions & 1 deletion docs/kcl/chamfer.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Create chamfers on tagged paths.


```js
chamfer(data: ChamferData, extrude_group: ExtrudeGroup) -> ExtrudeGroup
chamfer(data: ChamferData, extrude_group: ExtrudeGroup, tag?: String) -> ExtrudeGroup
```

### Examples
Expand Down Expand Up @@ -73,6 +73,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -135,6 +136,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -295,6 +297,7 @@ string],
}],
}
```
* `tag`: `String` (OPTIONAL)

### Returns

Expand All @@ -318,6 +321,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -380,6 +384,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
3 changes: 3 additions & 0 deletions docs/kcl/circle.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -287,6 +288,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -481,6 +483,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/close.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -370,6 +371,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
3 changes: 3 additions & 0 deletions docs/kcl/extrude.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -361,6 +362,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -423,6 +425,7 @@ const example = extrude(10, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
4 changes: 4 additions & 0 deletions docs/kcl/fillet.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -135,6 +136,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -318,6 +320,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -380,6 +383,7 @@ string],
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/getEdge.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const revolution = startSketchOn(box, "revolveAxis")
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -122,6 +123,7 @@ const revolution = startSketchOn(box, "revolveAxis")
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/getNextAdjacentEdge.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -120,6 +121,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/getOppositeEdge.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -118,6 +119,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
2 changes: 2 additions & 0 deletions docs/kcl/getPreviousAdjacentEdge.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -120,6 +121,7 @@ const example = extrude(5, exampleSketch)
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
4 changes: 4 additions & 0 deletions docs/kcl/helix.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ const part001 = startSketchOn('XY')
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -125,6 +126,7 @@ const part001 = startSketchOn('XY')
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -308,6 +310,7 @@ const part001 = startSketchOn('XY')
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down Expand Up @@ -370,6 +373,7 @@ const part001 = startSketchOn('XY')
// The id of the engine command that called this chamfer.
id: uuid,
length: number,
tag: string,
type: "chamfer",
}],
// The height of the extrude group.
Expand Down
Loading

0 comments on commit 5260bd6

Please sign in to comment.