* fix docs paths for website Signed-off-by: Jess Frazelle <github@jessfraz.com> * fix docs paths for website 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>
158 KiB
158 KiB
title, excerpt, layout
| title | excerpt | layout |
|---|---|---|
| extrude | Extend a 2-dimensional sketch through a third dimension in order to | manual |
Extend a 2-dimensional sketch through a third dimension in order to
create new 3-dimensional volume, or if extruded into an existing volume, cut into an existing solid.
extrude(length: number, sketch_group_set: SketchGroupSet) -> ExtrudeGroupSet
Arguments
| Name | Type | Description | Required |
|---|---|---|---|
length |
number |
Yes | |
sketch_group_set |
SketchGroupSet |
A sketch group or a group of sketch groups. | Yes |
Returns
ExtrudeGroupSet - A extrude group or a group of extrude groups.
Examples
const example = startSketchOn('XZ')
|> startProfileAt([0, 0], %)
|> line([10, 0], %)
|> arc({
angleStart: 120,
angleEnd: 0,
radius: 5
}, %)
|> line([5, 0], %)
|> line([0, 10], %)
|> bezierCurve({
control1: [-10, 0],
control2: [2, 10],
to: [-5, 10]
}, %)
|> line([-5, -2], %)
|> close(%)
|> extrude(10, %)
const exampleSketch = startSketchOn('XZ')
|> startProfileAt([-10, 0], %)
|> arc({
angleStart: 120,
angleEnd: -60,
radius: 5
}, %)
|> line([10, 0], %)
|> line([5, 0], %)
|> bezierCurve({
control1: [-3, 0],
control2: [2, 10],
to: [-5, 10]
}, %)
|> line([-4, 10], %)
|> line([-5, -2], %)
|> close(%)
const example = extrude(10, exampleSketch)