Tested with Unity 5.3.3f1 Personal
To open:
Start Unity, hit the "Open Project"-button and select the folder Thesis.
Alternatively, open Main directly.
Setup:
Select "BaseObject" in the hierarchy-window.
Set the materials and number of new vertices in the attached script.
Exemplary materials can be found in the folder Materials. If you wish to use your own material, you have to first copy it into that folder.
The number of new vertices directly determines the coarseness of the texture mesh.
The checkbox "Color Vertices" determines if the object is coloured randomly or textured. If it is checked, the vertices are assigned random colours and an appropriate shader has to be chosen for the "Texture Material" (see below).
Set a shader for each material by selecting it in the folder Materials and choosing a shader from the dropdown-menu "Shader".
Exemplary shaders can be selected via the entry "Custom".
They are stored in the Shaders folder.
The default settings assume that the object is textured. To colour it, select Custom/TextureMeshColorShader in the dropdown-menu.
If a texture is to be applied, it has to be set in the Material: Select the material, choose a shader and set the texture.
An exemplary texture can be found in Textures. It is also selected by default.
Finally, the model that is to be textured has to be attached to the "Geometry" game object, found as a child of "BaseObject".
An exemplary model is already attached per default. If you wish to use a different model, first copy it into the Models folder and attach it to "Geometry".
Unity supports all standard 3D formats.
Run:
Hit the "Play"-button.
In the "Game"-view, the model can be inspected once calculations are complete. This may take some time, depending on the number of new vertices and the shape of the model.
To rotate the view, hold the left mousebutton and drag the mouse.
To zoom in, use the scrollwheel.