

Just redo it if you do not get an exact outline shape of the squirrel. Step 2: You can use a default outline drawing tool and get an outline of the squirrel in different parts. If you add the wrong image, you can Remove it from the program. Step 1: Click the Image menu to Add the squirrel photo to the program online. After that, you can follow the procedure to create a 3D model out of a photo.

When you enter Smoothie-3D, you should create an account and login first. It was taken from the side and used as the best sample to convert a photo to a 3D model.

Just take a picture of a squirrel for an example. #Second vertex for the edge: same principleĬreateMesh( 2: How to Turn a 2D Image into a 3D Model Vertices.append( v.co.copy() ) #And its coordinates f1.normal.dot( f2.normal ) < epsilonįor e in iter( e for e in bm.edges if e.link_faces and (len(e.link_faces) = 1 or e.link_( e.link_faces.normal ) < epsilon ) ): #Iterate on edges and keep only the one corresponding to opposite faces (ie. #Determinate edges corresponding to opposite faces and make mesh verts/edges from that ? import bpyĭef CreateMesh( scene, name, location, vertices, edges, polygons ): but I'm not sure this corresponds to what is wanted in the question, specially after the last edits of it. So the script keeps only edges of the second case. either to 2 faces which have the same normal.Now you have a flat model of your mesh, with only the minimal amount of vertices and no extraneous faces or geometry.Ī simple script to create a "vectorized style" mesh from a flatten mesh:

In object mode, set geometry to origin with Shift + Ctrl + Alt + C.(Not a clean solution, but should work for most 2D-object purposes.) Select all vertices and make an N-gon Face between them with F.In Edit Mode, select all vertices and remove doubles.Select all of the curves and use Ctrl + J to join.To clean up the imported svg, I took these measures: At the center of your scene, the flat monkey head is imported as curves.Under File > Import select Scalable Vector Graphics and select the file on your desktop. Render the image and an SVG will be placed on your desktop.In the Render Layers panel, under Freestlye Line Set, uncheck the "Edge Types" Sillhouette, Border, and Crease, and check only the edge type External Contour.Under the Render properties panel, check to enable Freestyle and Freestyle SVG Export, and under Output set the path to somewhere intuitive (I used the desktop).In the User Preferences, under Add-ons, search for svg and enable Render: Freestyle SVG Exporter and Import-Export: Scalable Vector Graphics (SVG) 1.1 format.Set up your scene with an orthographic camera facing the model you want to "flatten".
