* Fake modules for Rust std lib functions Signed-off-by: Nick Cameron <nrc@ncameron.org> * Include the missing @ in Rust std lib fns Signed-off-by: Nick Cameron <nrc@ncameron.org> * Move revolve and mirror2d to better modules Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use docs from KCL mods for type summaries Signed-off-by: Nick Cameron <nrc@ncameron.org> * Use type docs to describe types from KCL std lib Signed-off-by: Nick Cameron <nrc@ncameron.org> --------- Signed-off-by: Nick Cameron <nrc@ncameron.org>
41 lines
78 KiB
Markdown
41 lines
78 KiB
Markdown
---
|
|
title: "std::sketch::profileStart"
|
|
excerpt: "Extract the provided 2-dimensional sketch's profile's origin value."
|
|
layout: manual
|
|
---
|
|
|
|
Extract the provided 2-dimensional sketch's profile's origin value.
|
|
|
|
|
|
|
|
```kcl
|
|
profileStart(@profile: Sketch): [number]
|
|
```
|
|
|
|
### Arguments
|
|
|
|
| Name | Type | Description | Required |
|
|
|----------|------|-------------|----------|
|
|
| `profile` | [`Sketch`](/docs/kcl-std/types/std-types-Sketch) | Profile whose start is being used | Yes |
|
|
|
|
### Returns
|
|
|
|
[`[number]`](/docs/kcl-std/types/std-types-number)
|
|
|
|
|
|
### Examples
|
|
|
|
```kcl
|
|
sketch001 = startSketchOn(XY)
|
|
|> startProfile(at = [5, 2])
|
|
|> angledLine(angle = 120, length = 50, tag = $seg01)
|
|
|> angledLine(angle = segAng(seg01) + 120, length = 50)
|
|
|> line(end = profileStart(%))
|
|
|> close()
|
|
|> extrude(length = 20)
|
|
```
|
|
|
|

|
|
|
|
|