From 81f9be4a1daf65b278d0ce38ba9df8fdf51f981d Mon Sep 17 00:00:00 2001 From: Patricio Whittingslow Date: Mon, 23 May 2022 14:14:06 -0300 Subject: [PATCH] add metric spacer example. change matter package --- examples/README.md | 13 +++++- examples/fig/metric-spacers.png | Bin 0 -> 10993 bytes examples/generate_examples.go | 6 +++ examples/metric-spacers/spacers.go | 66 +++++++++++++++++++++++++++++ helpers/matter/3dprint.go | 21 ++++++--- 5 files changed, 98 insertions(+), 8 deletions(-) create mode 100644 examples/fig/metric-spacers.png create mode 100644 examples/metric-spacers/spacers.go diff --git a/examples/README.md b/examples/README.md index 246c894..c2de1ec 100644 --- a/examples/README.md +++ b/examples/README.md @@ -3,11 +3,20 @@ Click on image to go to code directory. +## Metric spacers M3,M4,M6,M8,M16 + +| Example | Execution Time | File size | +|---|---|---| +|[Metric spacers M3,M4,M6,M8,M16](metric-spacers)|1s|9451kB| + +[![Metric spacers M3,M4,M6,M8,M16](fig/metric-spacers.png)](metric-spacers) + + ## ADZ Nagano sensor cover | Example | Execution Time | File size | |---|---|---| -|[ADZ Nagano sensor cover](adz-sensor-cover)|1s|10MB| +|[ADZ Nagano sensor cover](adz-sensor-cover)|0.5s|10MB| [![ADZ Nagano sensor cover](fig/adz-sensor-cover.png)](adz-sensor-cover) @@ -25,7 +34,7 @@ Click on image to go to code directory. | Example | Execution Time | File size | |---|---|---| -|[ATX Bench power supply mod](atx-bench-supply)|1s|4540kB| +|[ATX Bench power supply mod](atx-bench-supply)|0.5s|4540kB| [![ATX Bench power supply mod](fig/atx-bench-supply.png)](atx-bench-supply) diff --git a/examples/fig/metric-spacers.png b/examples/fig/metric-spacers.png new file mode 100644 index 0000000000000000000000000000000000000000..4ddf86c3df559f8de68abb6e1fca3d326c5ccf07 GIT binary patch literal 10993 zcmeIYi8qwt-#>m&lqrc)D0>Q(HCvWJlQkjR*!MMS5;6?RC`3{j*=EXa?Aby_ie$;i zHW*8Yv9Dtr%Y5%X&+j?s`TYss^L@_Y%$)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