Returns a Compound made from this Assembly (including all children) with the current Locations applied. Usually this method would only be used after solving.
(self)
| 731 | yield from ch.__iter__(loc, name, color) |
| 732 | |
| 733 | def toCompound(self) -> Compound: |
| 734 | """ |
| 735 | Returns a Compound made from this Assembly (including all children) with the |
| 736 | current Locations applied. Usually this method would only be used after solving. |
| 737 | """ |
| 738 | |
| 739 | shapes = self.shapes |
| 740 | shapes.extend((child.toCompound() for child in self.children)) |
| 741 | |
| 742 | return Compound.makeCompound(shapes).locate(self.loc) |
| 743 | |
| 744 | def _repr_javascript_(self): |
| 745 | """ |