pub struct Arrangement {
pub vertices: Vec<Vertex>,
pub pieces: Vec<Piece>,
pub paths: Vec<Vec<(PieceId, bool)>>,
pub crossings: usize,
/* private fields */
}Expand description
The pieces of a set of segments.
Fields§
§vertices: Vec<Vertex>The vertices.
pieces: Vec<Piece>The pieces, ordered by their ends.
paths: Vec<Vec<(PieceId, bool)>>Per input segment, its pieces in order from its first end to its
second, each with whether that direction runs from ends[0] to
ends[1] of the piece.
crossings: usizeThe number of vertices without input points.
Implementations§
Source§impl Arrangement
impl Arrangement
Sourcepub fn fan(
&self,
points: &ExactPoints,
vertex: VertexId,
) -> GeomResult<Vec<(PieceId, bool)>>
pub fn fan( &self, points: &ExactPoints, vertex: VertexId, ) -> GeomResult<Vec<(PieceId, bool)>>
The pieces at vertex in counter-clockwise order in the points’
frame, each with whether it leaves the vertex at ends[0].
Both orient and the half-plane split are in the stored axes up to
the frame sign, which reverses the order within a half but keeps the
cyclic order. Two pieces that leave a vertex the same way overlap,
which arrange has cut apart, so they are an inconsistency.
Trait Implementations§
Source§impl Clone for Arrangement
impl Clone for Arrangement
Source§fn clone(&self) -> Arrangement
fn clone(&self) -> Arrangement
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for Arrangement
impl RefUnwindSafe for Arrangement
impl Send for Arrangement
impl Sync for Arrangement
impl Unpin for Arrangement
impl UnsafeUnpin for Arrangement
impl UnwindSafe for Arrangement
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