Canvas library

Canvas library

cults3d

Canvas library OpenSCAD library to project canvas with random images on 3D shapes Howto We must first convert the image to grayscale data using img2gray designed from this thing: https://www.thingiverse.com/thing:3830079. This is the reason why I declare this thing as a remix. The test image comes from clipart-library: Then: ``` $ python img2gray.py penguin.jpg penguin.scad ``` The generated file contains the function levels_penguin(); which gives image data. Sample OpenSCAD file to project the image on a plane: ``` use <agentscad/extensions.scad> use <agentscad/mesh.scad> use <agentscad/canvas.scad> empty = newCanvas( [2,1], [200,100] ); penguin = levels_penguin(); canvas = drawImage ( penguin, empty ); flat = canvas2mesh( canvas ); meshPolyhedron ( flat ); ``` Or projection on a cylinder: ``` ... flat = canvas2mesh( canvas ); // Insert these 2 lines projected = projectCylinder( getMeshVertices(flat), radius=50 ); bent = newMesh( projected, getMeshFaces(flat) ); meshPolyhedron ( bent ); ... ``` Or projection on a sphere: ``` ... flat = canvas2mesh( canvas ); // Insert these 2 lines projected = projectSphereCylindrical( getMeshVertices(flat), radius=100 ); bent = newMesh( projected, getMeshFaces(flat) ); meshPolyhedron ( bent ); ... ``` Documentation Full documentation here: agentscad canvas tutorial

Download Model from cults3d

With this file you will be able to print Canvas library with your 3D printer. Click on the button and save the file on your computer to work, edit or customize your design. You can also find more 3D designs for printers on Canvas library.