Skip to content

A Simple Go code, to convert a image into a stl mesh, to engrave it or use it otherwise

License

Notifications You must be signed in to change notification settings

ToasterKTN/pic2stl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pic2stl

A Simple Go code, to convert a image into a stl mesh, to engrave it or use it otherwise

Installation

go get libraries

go get github.com/namsral/flag
go get github.com/anthonynsimon/bild/effect
go get github.com/anthonynsimon/bild/imgio
go get github.com/anthonynsimon/bild/transform

Build it

go build

Usage

run it with --help to get the Options available

It takes an Image as input and creates a STL File as Output

You can set a Resize Factor for Z with -ZDivider

Also ResizeX and ResizeY is available. If only one is set we keep Ratio.

You can Invert black and white with -Invert

Example

pic2stl -ZDivider 0.1 -Input image.png -Output output.stl

Creates from

input image

An STL like this (Screenshot)

output image

About

A Simple Go code, to convert a image into a stl mesh, to engrave it or use it otherwise

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages