Struct cut_optimizer_2d::CutPiece [−][src]
pub struct CutPiece {
pub external_id: Option<usize>,
pub width: usize,
pub length: usize,
pub pattern_direction: PatternDirection,
pub can_rotate: bool,
}Expand description
A rectangular piece that needs to be cut from a stock piece.
Fields
external_id: Option<usize>ID to be used by the caller to match up result cut pieces
with the original cut piece. This ID has no meaning to the
optimizer so it can be set to None if not needed.
width: usizeWidth of this rectangular cut piece.
length: usizeLength of this rectangular cut piece.
pattern_direction: PatternDirectionPattern direction of this cut piece.
can_rotate: boolWhether or not the optimizer is allowed to rotate this piece to make it fit.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CutPiece
impl UnwindSafe for CutPiece
Blanket Implementations
Mutably borrows from an owned value. Read more