Prompt
Generate the code to create an applet that can convert an uploaded png or jpeg file to a 3D printable stl file. Add sliders for edge smoothing, black sensitivity, changing x, y, and z dimensions, and the precision of output details. Include the option to simplify the design to reduce the number of triangles so I can put the file easily into my slicer. Add a switch to invert the mask to cut the object off its background.
Iteration
Let's make a real challenge out of this! Can you code this in html, css, and javascript to make an embeddable, complete, and self-contained file I can use in a Google Site.
Resource File