mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-30 20:05:55 +00:00
Document convenient syntax of fj::Sweep
This commit is contained in:
parent
8a231eee91
commit
7f1bba7e98
@ -1,6 +1,18 @@
|
|||||||
use crate::{Shape, Shape2d};
|
use crate::{Shape, Shape2d};
|
||||||
|
|
||||||
/// A sweep of a 2-dimensional shape along straight path
|
/// A sweep of a 2-dimensional shape along straight path
|
||||||
|
///
|
||||||
|
/// # Examples
|
||||||
|
///
|
||||||
|
/// Convenient syntax for this operation is available through [`crate::syntax`].
|
||||||
|
///
|
||||||
|
/// ``` rust
|
||||||
|
/// # let shape = fj::Sketch::from_points(vec![[0., 0.], [1., 0.], [0., 1.]]);
|
||||||
|
/// use fj::syntax::*;
|
||||||
|
///
|
||||||
|
/// // `shape` can be anything that converts to `fj::Shape2d`
|
||||||
|
/// let group = shape.sweep([0., 0., 1.]);
|
||||||
|
/// ```
|
||||||
#[derive(Clone, Debug, PartialEq)]
|
#[derive(Clone, Debug, PartialEq)]
|
||||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||||
#[repr(C)]
|
#[repr(C)]
|
||||||
|
Loading…
Reference in New Issue
Block a user