Add support for popping a plank
Dependencies
Change contents
- edit in src/lib.rs at line 245
/// Remove a plank from this rowpub fn pop(&mut self, ms: &mut MaterialStorage) {// Remove the plankif let Some(plank) = self.planks.pop() {ms.store_used(plank);// Update the row coverageself.coverage -= plank.length();}// Remove the cutif let Some(cut) = self.cut_coordinates.pop() {println!("Removed cut at {}", cut.coordinate);}}