public List <DadoBlock> RetrieveDadoCuts(int stepNumber) { List <DadoBlock> dadoBlocks = new List <DadoBlock>(); foreach (DadoBlock dadoBlock in DadosToCut) { StepID step = dadoBlock.GetComponent <StepID>(); if (step.UsedInStep(stepNumber)) { dadoBlocks.Add(dadoBlock); } } return(dadoBlocks); }
public List <CutLine> RetrieveLines(CutLineType cutType, int stepNumber) { List <CutLine> lines = new List <CutLine>(); foreach (CutLine cl in LinesToCut) { StepID step = cl.GetComponent <StepID>(); if (step.UsedInStep(stepNumber) && cl.CutType == cutType) { lines.Add(cl); } } return(lines); }