💻 Mesh Editing with the Edit mode¶
This assignment will be a brief introduction on the Edit mode in the 3D viewport.
Once you opened the exercise blend file mesh_editing_assignment.blend you'll see the familiar fish iso-surface above a plane.
Getting familiar with the Edit mode¶
To edit the mesh we first need to go the Edit mode with the fish.
- Select the fish and enter the Edit mode by pressing
Tab. Depending on the speed of the system you're working on edit mode might be entered instantly or might take half a second. In general, for larger meshes switching to edit may take longer.
Now you will be able to see all the vertices, edges and faces that make up the 3D model. You will now try to select and move around some vertices, edges and/or faces.
- Change the Mesh Select Mode to
Vertexby pressing1(or click the left icon in
at the 3D view header). This might already be active by default but it will be highlighted on the icons in the 3D view header (
). - Before you start selecting, de-select all all current selected vertices by pressing
Alt-Aor doubleArapidly. - Now try to select a single vertex by clicking on it with the
LMB, or multiple withShift-LMB. You might have to zoom in a bit to separate the vertices enough. - Another method is to use the selection tools:
- Box selection by pressing
Band dragging a box around the vertices you want to select. HoldShiftto de-select. - Circle selection by pressing
Cand left-clicking and dragging with the mouse over the vertices you want to select. To increase the size of the Circle selection tool simply scroll with your mouseWheel. WithMMBand dragging you can de-select vertices. PressEnterto exit circle select mode (or withRMB).
- Box selection by pressing
- Once you selected your vertices you can transform them the same way you can do with objects by pressing the hotkeys
Gfor translation,Rfor rotation, andSfor scaling, etc. - Probably now you did the vertex editing the fish looks a bit scrabbled. One way to clean it up is, of course, using
Ctrl-Zto undo it. Another way is simply deleting the vertices by using the Delete popup menuX > Vertices. Try to remove part of the fish skin to it leaves a hole in the mesh which will reveal a part of the inside of the fish.
Tip!
If your fish has been "meshed-up" beyond repair you can always revert it to the last saved state with: File > Revert > Confirm.
Filling the holes¶
An imported mesh from a 3D visualization program can sometimes contain unwanted holes or separations in parts of the mesh, these can also be fixed in the edit mode. Conveniently the fish in the exercise file was already poked full of holes so you can fix these.
In between: To better inspect if there are any holes left you can switch back and forth between the Object mode and Edit mode because in the Object mode they are easier to see.
- First, make sure the whole mesh is selected by pressing
Aand then remove the small holes (the size of one triangle/quad) by pressingF3in the 3D viewport in Edit mode and type infill holesand pressenteror click on it withLMB(this might take some time). Now this already cleaned up a lot of the holes in the geometry! - Through inspection you might notices there are some bigger wholes that were not filled yet because they were skipped by the previous step since they were to large. To fill these they first need to be selected by first de-selecting everything with
Alt-Aand then pressF3and type innon manifoldand pressEnteror click on it withLMB. - This selected the big holes but also other non-manifold geometry. To select only one of the holes hold
Ctrl+Shiftand drag withLMBover one of the holes. This de-selects everything excepts what was in the drag-box. - Now this selected hole can easily be fixed by pressing
F. - Repeat step 2 to 4 for the other 2 holes.
Tip!
The fill with F fills the hole with an n-gon, a face with more then 4 vertices. These can sometimes create shading artifacts in your final render. Another way to fill these holes is to use grid-fill (Ctrl+F), this tries to fill the whole with a grid of quad shaped faces. This however might not always work for numerous reasons (uneven amount of vertices, closed loops etc) which can be fixed with additional mesh editing but the easy route would be to fill it with an n-gon face.
Separating skin from bones¶
Now that you got a little familiar with mesh editing you can try to separate the skin from the bones by using mesh separation.
- While still in edit mode (press
Tabif not), try to select all the outside skin with the select linked selection by hovering the mouse cursor over the geometry and pressingL. This will only select a connected part of the skin so continue this step until you think you selected all the outside skin. Note that it is difficult to do this perfectly, as some of the insides of the fish are sometimes also selectable. Unfortunately, this occurs frequently with this type of sensor-based 3D data. - Once you think all the skin is selected you can press
Pand selectSelectionto separate the selected surfaces from the main mesh into another mesh object. This new mesh will be added to the Outliner with the namefish.001. - In the Outliner double-click
LMBon the mesh objectfish.001to rename it tofishskin. Do the same for thefishmesh object and rename it tofishbones. - If you now select the
fishskinmesh object and hide it by clicking the little
icon in the Outliner will reveal the insides of the fish.
Tips!
- To reverse the separation of the mesh into bone and skin you can select both the mesh objects in Object mode and press
Ctrl-Jto join them back together into a single mesh. - Sometimes X-ray mode, toggled with
Alt-Z, can be useful when editing a complex mesh, as it makes all geometry in a mesh partly transparent
(BONUS) Make your own annotation arrow¶
Since the content of this course is mostly geared towards imported geometry or scripted geometry, you might not directly think about manually created geometry. This bonus exercise however will show you that it is relatively easy to create your own geometry in Blender. Lets start your manual mesh creation with an annotation arrow!
- In the 3D viewport make sure you are in
Object modeand add a new cylinder withShift-A > Mesh > Cylinder. - Press
/to isolate the mesh so that there are no distractions. This can be reversed again by pressing/. - Press
Tabto go into Edit mode. - Grab the selected geometry by pressing
Gand pressZto move it along the z-axis only and press1to move it 1 unit up so that the origin is at the bottom. - De-select all the geometry with
Alt-Aand press1to set the select mode to Vertex and select all the bottom vertices (withLMB-dragover the vertices or with thebBox-select). - Press
Sto scale them to a tiny point and pressLMBto confirm. - Now select the top vertices the same way you did with the bottom vertices, make sure that none of the bottom vertices are selected.
- Press
Ito inset the faces and move your mouse until you are satisfied with the width of the arrow shaft. - Press
Eto extrude the selection and move the mouse up until you are satisfied with the length of the arrow shaft. - Now press
Taband admire your newly created arrow! - The arrow might now be a bit too big compared to the fish so scale the arrow down with
S, move it to a point of interest withGand rotate the arrow to your liking withR(which is made relatively easy because we made it so that the origin is at the point)
Since the introduction of the Edit mode and switching back and forth between it and the Object mode you do need to make sure in which mode you are before adding new geometry or before using one of the transform operations (grab, scale and rotate). Otherwise you might add geometry to an already existing object instead of adding a new 3D object or you might move, scale or rotate 3D object geometry in the Edit mode and inadvertently change the origin of the object. This can be confusing sometimes but you'll get used to it!