Sketch User's Manual


Loading and Saving

To load a mesh, drag an obj file onto the icon for the executable. Once the program has launched, a new mesh cannot be loaded, so to load a new mesh, close the program and reload it with a new one. To save a mesh, press the 'o' key. This will write the mesh as output.obj in the output folder. The path to the output folder relative to the executable is ..\output\

Rotating

Do not use Inventor's navigation tools. Rather, rotate the mesh using the following keys: q, w, s, a. Each time one of these keys is pressed, the mesh is rotated by a small amount.

Drawing the reference curve and selecting the region of interest

Click with the left mouse button to create the vertices of the polyline. After the line is drawn, press spacebar to select the region of interest. The region of interest will be colored blue. Sometimes the region of interest is not what was desired. In this case, press c to clear the curve and try again. The region of interest is generated by a floodfill, seeded by the vertex closest to the midway point between the first and second points on the reference curve. The seed vertex is colored red. If the curve does not lie on top of the mesh, the program will crash. When you are happy with the region of interest, press spacebar again to associate vertices with points along the curve. The mesh will take on a red-green gradient.

Observing the hidden spline and deforming the mesh.

As you move the mouse cursor, notice the white circle. This circle lies on the underlying cubic B-spline, at the point along the spline closest to the mouse cursor.

When the mouse is near one of the reference curve control points, that point turns from red to green. This means that the point is selected. Now move the mouse to some other location, and click the right mouse button. The selected control point is moved to this new location, and the mesh is deformed.