Transpiled version (11795L) is out of date.
srecord noeq G22MeshGroup(L<G22Mesh> meshes) is MakesBufferedImage { public Rect bounds() { ret mergeRects(map(meshes, m -> m.bounds())); } public int getWidth() { ret bounds().w; } public int getHeight() { ret bounds().h; } public BufferedImage getBufferedImage() { var r = bounds(); if (r == null) null; ret new G22VisualizeMeshes( widthAndHeight(r.x2(), r.y2()), meshes)!; } }
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, ekrmjmnbrukm, mowyntqkapby, mqqgnosmbjvj
No comments. add comment
| Snippet ID: | #1035170 |
| Snippet name: | G22MeshGroup - multiple meshes on one screen |
| Eternal ID of this version: | #1035170/4 |
| Text MD5: | 6f1ce6c05426c96627a788c190613737 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2022-05-02 20:02:53 |
| Source code size: | 431 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 608 / 748 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |