Simple cpp application to render an input 3d file (.off, .obj, .stl etc) as a SVG drawing in the style of technical ink drawing.
- Linux
- conan >=2.25.2
- CGAL 6.1
- After installing conan, run
bash build.sh. This will install all the requirements and build the program. - A binary
ink3dwill appear in thebuildfolder. - If you wish to create a statically linked bin, uncomment the lines according to the comments in
conanfile.txt
ink3d path/to/config.json
# e.g.,
# ink3d samples/config.jsonAfter running the above command, an svg file will appear according to the configuration file supplied. See samples/config.json for an example.
// config.json
{
"input_path": "./samples/cubes.stl",
"output_path": "./output.svg",
"view_origin": [1,1,1],
"look_at": [0,0,0],
"projection": "perspective", // perspective or orthographic
"samples": 108,
"refine_steps": 108
}