[Fix] Updating docs for mirror2d (#7013)
* fix: mirror2d works on closed sketches * fix: generating docs
This commit is contained in:
@ -14,8 +14,6 @@ mirror2d(
|
|||||||
): Sketch
|
): Sketch
|
||||||
```
|
```
|
||||||
|
|
||||||
Only works on unclosed sketches for now.
|
|
||||||
|
|
||||||
Mirror occurs around a local sketch axis rather than a global axis.
|
Mirror occurs around a local sketch axis rather than a global axis.
|
||||||
|
|
||||||
### Arguments
|
### Arguments
|
||||||
|
@ -18,7 +18,6 @@ use crate::{
|
|||||||
|
|
||||||
/// Mirror a sketch.
|
/// Mirror a sketch.
|
||||||
///
|
///
|
||||||
/// Only works on unclosed sketches for now.
|
|
||||||
pub async fn mirror_2d(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
|
pub async fn mirror_2d(exec_state: &mut ExecState, args: Args) -> Result<KclValue, KclError> {
|
||||||
let sketches = args.get_unlabeled_kw_arg_typed("sketches", &RuntimeType::sketches(), exec_state)?;
|
let sketches = args.get_unlabeled_kw_arg_typed("sketches", &RuntimeType::sketches(), exec_state)?;
|
||||||
let axis = args.get_kw_arg_typed(
|
let axis = args.get_kw_arg_typed(
|
||||||
@ -36,7 +35,6 @@ pub async fn mirror_2d(exec_state: &mut ExecState, args: Args) -> Result<KclValu
|
|||||||
|
|
||||||
/// Mirror a sketch.
|
/// Mirror a sketch.
|
||||||
///
|
///
|
||||||
/// Only works on unclosed sketches for now.
|
|
||||||
async fn inner_mirror_2d(
|
async fn inner_mirror_2d(
|
||||||
sketches: Vec<Sketch>,
|
sketches: Vec<Sketch>,
|
||||||
axis: Axis2dOrEdgeReference,
|
axis: Axis2dOrEdgeReference,
|
||||||
|
@ -5,8 +5,6 @@
|
|||||||
|
|
||||||
/// Mirror a sketch.
|
/// Mirror a sketch.
|
||||||
///
|
///
|
||||||
/// Only works on unclosed sketches for now.
|
|
||||||
///
|
|
||||||
/// Mirror occurs around a local sketch axis rather than a global axis.
|
/// Mirror occurs around a local sketch axis rather than a global axis.
|
||||||
///
|
///
|
||||||
/// ```
|
/// ```
|
||||||
|
Reference in New Issue
Block a user