IEnumerator getProgressiveCrosshatches(SCBasePenPathGenerator generator) { SCPen pen = FindObjectOfType <SCPen>(); addPenSubscribers(pen); int count = 0; foreach (PenDrawingPath penPath in generator.generate()) { DebugPenPathToLineMesh(penPath); pen.makeMoves(penPath); if (showWithLineRenderers) { lineRenderPenPath(penPath); } if (++count % 500 == 0) { yield return(null); progressText.text = string.Format("{0}", count); } } progressText.text = string.Format("{0}", count); paintFromGCode(); beFinished(); painter.applyTexture(); }
private void testRotationsWith(List <PenDrawingPath> penIterator, SCPen pen, Matrix2f m) { foreach (PenDrawingPath penPath in penIterator) { penPath.Rotate(m); } foreach (PenDrawingPath penPath in penIterator) { if (showWithLineRenderers) { lineRenderPenPath(penPath); } pen.makeMoves(penPath); } }
void getCrosshatches(SCBasePenPathGenerator generator) { var penIterator = generator.generate(); SCPen pen = FindObjectOfType <SCPen>(); addPenSubscribers(pen); foreach (PenDrawingPath penPath in penIterator) { pen.makeMoves(penPath); } if (showWithLineRenderers) { foreach (PenDrawingPath penPath in penIterator) { lineRenderPenPath(penPath); } } paintFromGCode(); beFinished(); painter.applyTexture(); }