| 1013 | } |
| 1014 | |
| 1015 | void GenomeEditorWindow::updateGeometry(GenomeDescription& genome, ConstructionShape shape) |
| 1016 | { |
| 1017 | auto shapeGenerator = ShapeGeneratorFactory::create(shape); |
| 1018 | if (!shapeGenerator) { |
| 1019 | return; |
| 1020 | } |
| 1021 | genome.header.angleAlignment = shapeGenerator->getConstructorAngleAlignment(); |
| 1022 | for (auto& cell : genome.cells) { |
| 1023 | auto shapeGenerationResult = shapeGenerator->generateNextConstructionData(); |
| 1024 | cell.referenceAngle = shapeGenerationResult.angle; |
| 1025 | cell.numRequiredAdditionalConnections = shapeGenerationResult.numRequiredAdditionalConnections; |
| 1026 | } |
| 1027 | } |
| 1028 | |
| 1029 | void GenomeEditorWindow::setCurrentGenome(GenomeDescription const& genome) |
| 1030 | { |
nothing calls this directly
no test coverage detected