Thread View: comp.lang.awk
1 messages
1 total messages
Started by mike
Wed, 04 Nov 2026 21:16
BSP tree to SVG using AWK
Author: mike
Date: Wed, 04 Nov 2026 21:16
Date: Wed, 04 Nov 2026 21:16
47 lines
2060 bytes
2060 bytes
Hello. Interesting script here (or it was a learning experiance for me). Script (a bit too long to post so here's a link instead): <https://drive.google.com/file/d/1cpGSxQLpnFCsGZIAxdx5IKRYdcgAhEye/view> SGV image created by the script: <https://drive.google.com/file/d/1y6KriCdbxkRVWtNFeFg3YGpdJgc4sR2N/view> Notes from the script: Creates a BSP tree as an SVG image given 2 column input where input data is formatted as: NAME|QUANTITY 2026 Michael S. Sanders Here I use... Apples|32 Oranges|16.2 Bananas|7 Grapes|3.11 Pears|8.43 Mangoes|2 Kiwi|0.50 to calculate each fruit's percentage of the total quantity: Fruit Quantity Share Apples 32 46.22% Oranges 16.2 23.40% Bananas 7 10.11% Grapes 3.11 4.49% Pears 8.43 12.18% Mangoes 2 2.89% Kiwi 0.50 0.72% Total 69.24 100.00% See also... BSP tree: <https://en.wikipedia.org/wiki/Binary_space_partitioning> Enjoy. -- :wq Mike Sanders
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads