From f5bc61841b1f1b5a6ba2d9079c9e07acaa90e153 Mon Sep 17 00:00:00 2001 From: Alex Matulich Date: Thu, 22 May 2025 20:02:50 -0700 Subject: [PATCH] Added sharpening filter, fixed edge artifact, fixed contour topic in isosurface.scad --- isosurface.scad | 2 +- scripts/img2scad.html | 82 +++++++++++++++++++++++++++---------------- 2 files changed, 52 insertions(+), 32 deletions(-) diff --git a/isosurface.scad b/isosurface.scad index 599df2b9..081805fe 100644 --- a/isosurface.scad +++ b/isosurface.scad @@ -3523,7 +3523,7 @@ function _showstats_isosurface(voxsize, bbox, isoval, cubes, triangles, faces) = // Function&Module: contour() // Synopsis: Creates a 2D contour from a function or array of values. // SynTags: Geom,Path,Region -// Topics: Isosurfaces, Path Generators (2D), Regions +// Topics: Contours, Path Generators (2D), Regions // Usage: As a module // contour(f, isovalue, bounding_box, pixel_size, [pixel_count=], [use_centers=], [smoothing=], [exact_bounds=], [show_stats=], [show_box=], ...) [ATTACHMENTS]; // Usage: As a function diff --git a/scripts/img2scad.html b/scripts/img2scad.html index 6e3c72a0..2487be5e 100644 --- a/scripts/img2scad.html +++ b/scripts/img2scad.html @@ -8,9 +8,10 @@ Version 6: 23 April 2025 - added cropping UI Version 7: 25 April 2025 - added contrast and threshold sliders Version 8: 26 April 2025 - added file size estimate to output section Version 9: 20 May 2025 - improved appearance UI, added Sobel edge detection -Verskl 10: 21 May 2025 - Added array_name_size value at top of output file +Version 10: 21 May 2025 - Added array_name_size value at top of output file +Version 11: 22 May 2025 - Fixed filter artifacts at image edges, added sharpening filter --> - Image to OpenSCAD array, v10 + Image to OpenSCAD array, v11