mirror of
https://github.com/hannobraun/Fornjot
synced 2025-01-29 11:29:22 +00:00
Document convenient syntax for fj::Sketch
This commit is contained in:
parent
5013127e17
commit
a9d5afdcbd
@ -84,6 +84,17 @@ impl From<Difference2d> for Shape2d {
|
||||
/// Nothing about these edges is checked right now, but algorithms might assume
|
||||
/// that the edges are non-overlapping. If you create a `Sketch` with
|
||||
/// overlapping edges, you're on your own.
|
||||
///
|
||||
/// # Examples
|
||||
///
|
||||
/// Convenient syntax for this operation is available through [`crate::syntax`].
|
||||
///
|
||||
/// ``` rust
|
||||
/// use fj::syntax::*;
|
||||
///
|
||||
/// // `a` and `b` can be anything that converts to `fj::Shape`
|
||||
/// let sketch = [[0., 0.], [1., 0.], [0., 1.]].sketch();
|
||||
/// ```
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
|
||||
#[repr(C)]
|
||||
|
Loading…
Reference in New Issue
Block a user