pub struct Wire {
pub vertices: Vec<VertexId>,
pub edges: Vec<EdgeId>,
}Expand description
Edges and vertices standing on their own, bounding no face: curves in space, such as the lines, arcs and splines of a 3-D sketch, or where two bodies’ boundaries cross.
A wire owns its entities as a shell owns its faces: edges are used by
no coedge, and vertices are every vertex of the wire — the ends of its
edges, and points on their own, which no edge ends at. An edge or a
vertex belongs to one wire at most, and a vertex of a wire to nothing
else.
A wire is no crate::Body: nothing is cut or combined with it. Its
edges must not cross each other except at a shared vertex, as the edges
of a body must not (see crate::validation).
Fields§
§vertices: Vec<VertexId>§edges: Vec<EdgeId>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Wire
impl<'de> Deserialize<'de> for Wire
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Wire
Auto Trait Implementations§
impl Freeze for Wire
impl RefUnwindSafe for Wire
impl Send for Wire
impl Sync for Wire
impl Unpin for Wire
impl UnsafeUnpin for Wire
impl UnwindSafe for Wire
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more