kcl

startSketchAt

Start a new 2-dimensional sketch at a given point on the 'XY' plane.

startSketchAt(data: [number]) -> Sketch

Arguments

NameTypeDescriptionRequired
data[number]Yes

Returns

Sketch - A sketch is a collection of paths.

Examples

exampleSketch = startSketchAt([0, 0])
  |> line([10, 0], %)
  |> line([0, 10], %)
  |> line([-10, 0], %)
  |> close(%)

example = extrude(5, exampleSketch)

Rendered example of startSketchAt 0

exampleSketch = startSketchAt([10, 10])
  |> line([10, 0], %)
  |> line([0, 10], %)
  |> line([-10, 0], %)
  |> close(%)

example = extrude(5, exampleSketch)

Rendered example of startSketchAt 1

exampleSketch = startSketchAt([-10, 23])
  |> line([10, 0], %)
  |> line([0, 10], %)
  |> line([-10, 0], %)
  |> close(%)

example = extrude(5, exampleSketch)

Rendered example of startSketchAt 2