1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//! # Operations to build objects
//!
//! All object structs have constructors, but building even simple shapes by
//! just using those is pretty difficult. This is why the traits in this module
//! exist. They build on top of those low-level constructors, providing a more
//! rich set of operations to build geometry.
//!
//!
//! ## Wrapper Structs
//!
//! Many of the the trait methods return the object that is being built
//! directly, but others return a wrapper struct. An example of this is
//! [`BuildFace::triangle`], which returns [`Polygon`] instead of returning the
//! face directly.
//!
//! These wrapper structs are designed to provide convenient access not only to
//! the top-level object itself, but also to the other objects that make up its
//! components.
pub use ;