Struct cut_optimizer_2d::ResultCutPiece [−][src]
pub struct ResultCutPiece {
pub external_id: Option<usize>,
pub x: usize,
pub y: usize,
pub width: usize,
pub length: usize,
pub pattern_direction: PatternDirection,
pub is_rotated: bool,
}Expand description
A cut piece that has been placed in a solution by the optimizer.
Fields
external_id: Option<usize>ID that matches the one on the cut piece that was passed to the optimizer.
x: usizeX location of the left side of this cut piece within the stock piece.
y: usizeY location of the (bottom or top) side of this cut piece within the stock piece.
width: usizeWidth of this cut piece.
length: usizeLength of this cut piece.
pattern_direction: PatternDirectionPattern direction of this cut piece.
is_rotated: boolWhether or not this cut piece was rotated 90 degrees by the optimizer from it’s original oriorientation.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for ResultCutPieceimpl Send for ResultCutPieceimpl Sync for ResultCutPieceimpl Unpin for ResultCutPieceimpl UnwindSafe for ResultCutPieceBlanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V