Mercurial > code > home > repos > light9
diff bin/paintserver @ 1524:a30a73c12554
more code and testing in solve & sim
Ignore-this: cb72fb96cf4a46fa86ccf641c4703fdb
author | Drew Perttula <drewp@bigasterisk.com> |
---|---|
date | Thu, 20 Apr 2017 07:18:00 +0000 |
parents | 69088fe2865e |
children | 0480fc790527 |
line wrap: on
line diff
--- a/bin/paintserver Wed Apr 19 08:26:08 2017 +0000 +++ b/bin/paintserver Thu Apr 20 07:18:00 2017 +0000 @@ -24,7 +24,8 @@ solver.loadSamples() with self.settings.stats.solve.time(): out = solver.solve(painting) - self.write(json.dumps(out)) + layers = solver.simulationLayers(out) + self.write(json.dumps({'layers': layers, 'out': out})) class App(object): def __init__(self, show, session):