Adding a sample using a custom axis in revolve.rs (#2596)
* Adding a sample using a custom axis in revolve.rs * Adding updated docs and snapshot of generated part * Running fmt
This commit is contained in:
@ -200,6 +200,24 @@ pub async fn revolve(args: Args) -> Result<MemoryItem, KclError> {
|
||||
/// axis: getOppositeEdge('revolveAxis', box)
|
||||
/// }, %)
|
||||
/// ```
|
||||
///
|
||||
/// ```no_run
|
||||
/// const sketch001 = startSketchOn('XY')
|
||||
/// |> startProfileAt([10, 0], %)
|
||||
/// |> line([5, -5], %)
|
||||
/// |> line([5, 5], %)
|
||||
/// |> lineTo([profileStartX(%), profileStartY(%)], %)
|
||||
/// |> close(%)
|
||||
///
|
||||
/// const part001 = revolve({
|
||||
/// axis: {
|
||||
/// custom: {
|
||||
/// axis: [0.0, 1.0, 0.0],
|
||||
/// origin: [0.0, 0.0, 0.0]
|
||||
/// }
|
||||
/// }
|
||||
/// }, sketch001)
|
||||
/// ```
|
||||
#[stdlib {
|
||||
name = "revolve",
|
||||
}]
|
||||
|
||||
BIN
src/wasm-lib/kcl/tests/outputs/serial_test_example_revolve6.png
Normal file
BIN
src/wasm-lib/kcl/tests/outputs/serial_test_example_revolve6.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 220 KiB |
Reference in New Issue
Block a user