* rust side of circle args Signed-off-by: Jess Frazelle <github@jessfraz.com> * change circle in all test js files Signed-off-by: Jess Frazelle <github@jessfraz.com> * more js side Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * updates 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> * updates Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * ud[ates Signed-off-by: Jess Frazelle <github@jessfraz.com> * A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores) --------- Signed-off-by: Jess Frazelle <github@jessfraz.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
192 KiB
192 KiB
title, excerpt, layout
title | excerpt | layout |
---|---|---|
hole | Use a 2-dimensional sketch to cut a hole in another 2-dimensional sketch. | manual |
Use a 2-dimensional sketch to cut a hole in another 2-dimensional sketch.
hole(
holeSketch: SketchSet,
sketch: Sketch,
) -> Sketch
Arguments
Name | Type | Description | Required |
---|---|---|---|
holeSketch |
SketchSet |
A sketch or a group of sketches. | Yes |
sketch |
Sketch |
A sketch is a collection of paths. | Yes |
Returns
Sketch
- A sketch is a collection of paths.
Examples
exampleSketch = startSketchOn(XY)
|> startProfileAt([0, 0], %)
|> line(end = [0, 5])
|> line(end = [5, 0])
|> line(end = [0, -5])
|> close()
|> hole(circle(center = [1, 1], radius = .25), %)
|> hole(circle(center = [1, 4], radius = .25), %)
example = extrude(exampleSketch, length = 1)
fn squareHoleSketch() {
squareSketch = startSketchOn(-XZ)
|> startProfileAt([-1, -1], %)
|> line(end = [2, 0])
|> line(end = [0, 2])
|> line(end = [-2, 0])
|> close()
return squareSketch
}
exampleSketch = startSketchOn(-XZ)
|> circle(center = [0, 0], radius = 3)
|> hole(squareHoleSketch(), %)
example = extrude(exampleSketch, length = 1)