# Mesh Manipulation with Blender

Blender is a useful alternative to Rhino for working with meshes: **rebuilding meshes** (decimate geometry), splitting models, filling holes and to smoothing (auto shade) meshes.

## 2.0 Useful Resources <a href="#id-2-0-resources" id="id-2-0-resources"></a>

### 2.1 Clean Up <a href="#id-2-1-clean-up" id="id-2-1-clean-up"></a>

#### 2.1.1 Decimate Geometry <a href="#decimate-geometry" id="decimate-geometry"></a>

**Decimating Geometry** performs a similar function to Rhino 3D's `ReduceMesh` command.

This function is useful to **reduce the number of faces/vertices** of a mesh. A surprising number of vertices can be removed without affecting the quality of a 3D print. This can be extremely useful in reducing the file-size of your mesh.&#x20;

Use the **Decimate Modifier**, available in the **Modifiers** drop-down.\
`Select Mesh > Properties Region >  Settings Icon > Add Modifier > Decimate Geometry`

Change the `ratio` field to **reduce** the number of **Mesh Faces**. A Ratio of **0.1** will reduce the number of faces by **90%**.&#x20;

**Click** `apply` once the changes are satisfactory.

See the [Tutorial below](https://www.youtube.com/watch?v=W9B43k9EWVM) for more information:

{% embed url="<https://youtu.be/W9B43k9EWVM>" %}
Figure 2.1.1 - Decimate Modifier Blender Tutorial (Source: Yan Sculpts)
{% endembed %}

#### 2.1.2 Fill Holes <a href="#fill-holes" id="fill-holes"></a>

Blender is extremely good at filling in holes to convert an open mesh in to a closed mesh

Useful to fill in small holes (open faces) in a mesh.

#### 2.1.3 Make Faces Planar <a href="#make-faces-planar" id="make-faces-planar"></a>

**Planarizer** is an Add-On for Blender which can be downloaded from [GitHub](https://github.com/Klowner/blender-planarizer).&#x20;

**Planarizer** allows a user to select **individual mesh faces** (quads or tri's) and their **vertices**. A **Plane** is constructed from the position of these vertices. When the **planes of adjacent quads do not align** (are not parallel) these faces are said to be **non-planar** or non-co-planar.

Once **Planarizer** has been **installed**, use the `W` key to open up the **Specials Menu.** From this menu,  **select Planarizer**.&#x20;

**Select the vertex** which is out of alignment, click `w > planarizer` and then in the `Mesh Tools > Planarizer` menu, **select** `Anchor To: Connected Vertex`.

{% hint style="info" %}
The **Planarizer** algorithm works best if the user **works away from the 3d cursor** (starting at the edge closest to the cursor and moving away from that point).
{% endhint %}

See the [Tutorial below](https://www.youtube.com/watch?v=XYROkaygnys) for more information:

{% embed url="<https://www.youtube.com/watch?v=XYROkaygnys>" %}
Figure 2.1.3 - Blender Planarizer (Source: Mark Riedesel)
{% endembed %}

#### 2.1.4 Split Model (Bisect Tool) <a href="#split-model-bisect-tool" id="split-model-bisect-tool"></a>

1. Ensure Blender is currently in **Orthographic View** `[Numpad: 5]`&#x20;
2. Switch in to **Edit Mode** `Tab > Edit Mode`
3. Select the **Bisect Tool** `Tools > Add > Bisect`
4. Draw a line as desired through the model
5. **Check** the **Fill option** `Plane Normal > Fill`
6. Select the **Inner Region** `Select > Select Loop Inner Region`
7. **Seperate** the **currently selected object**. `P > Selection`

See the [Tutorial below](https://www.youtube.com/watch?v=-QfLdbzSZdw) for more information:

{% embed url="<https://youtu.be/-QfLdbzSZdw>" %}
Figure 2.1.4 - Blender Bisect (Source: Gamemaker Game Programming Course)
{% endembed %}

{% hint style="info" %}
**Note**: Model will only be a shell and needs to be made solid prior to 3D printing
{% endhint %}

#### 2.1.5 Delete Loose Geometry <a href="#delete-loose-geometry" id="delete-loose-geometry"></a>

Occasionally in the process of generating meshes using software packages such as Rhino 3D, **disjoint meshes** can be created. It can be difficult to spot the disjoint faces which may be floating far from the rest of the geometry.

These disjoint or **disconnected** **meshes** can cause problems when trying to import a mesh in to a printer software - as the software may think the **object is too large to print**.

**Blender** is the perfect software to **remove loose faces**.

In `[Edit Mode]` go to `[Menu], [Clean up], [Delete Loose]` to **remove unconnected** and unwanted **vertices** and **edges** and **faces** if needed.

#### 2.1.6 Dissolve Degenerates <a href="#dissolve-degenerates" id="dissolve-degenerates"></a>

**Degenerate faces** are **polygons** with **an area of zero (0)**. A **polygon** is constructed as a **face between three or more points**. **Degenerate faces** are polygons which have been constructed as a face between **one or two points**. These faces can result in errors when the model has been created for 3D Printing.&#x20;

**Blender** can easily **remove degenerate faces**.

In `[Edit Mode]` go to `[Menu], [Clean up], [Degenerate Dissolve]` to delete edges of 0 length and faces with 0 area.

​**For more information** refer to the [Blender Manual](https://docs.blender.org/manual/en/latest/modeling/meshes/editing/cleanup.html):

{% embed url="<https://docs.blender.org/manual/en/dev/modeling/meshes/editing/cleanup.html>" %}

### 2.2 Smoothing <a href="#id-2-2-smoothing" id="id-2-2-smoothing"></a>

**Smoothing** can be used to create softer **geometries**.

**Autosmoothing** is a simple method of **smoothing by splitting edges** . This creates **less featured** (facetted) meshes.  In Blender Auto Smooth can be enabled in `Panel > Properties editor > Object Data`. The **Angle** can be changed for more or less aggressing smoothing.

#### 2.2.1 Smooth <a href="#smooth" id="smooth"></a>

In `[Edit Mode]` go to `[Menu], [Mesh], [Vertices], [Smooth Vertex],` to smooth sharp edges. This is done by averaging the angles between different faces. Amount of smoothing can be controlled by selecting number of iterations of smoothing.

#### 2.2.2 Laplacian Smooth <a href="#laplacian-smooth" id="laplacian-smooth"></a>

In `[Edit Mode]` press`[w]`, select `[Laplacian Smooth]`to smooth sharp edges.&#x20;

**Laplacian smoothing** operations **preserve the original shape of the item better**, while also smoothing mesh surfaces satisfactorily. Laplacian smoothing uses the following algorithm:

$$
{\displaystyle {\bar {x}}*{i}} = \frac{1}{N} {\sum*{j=1}^{N}{}}{\bar  {x}}\_{{j}}
$$

> Where![N](https://wikimedia.org/api/rest_v1/media/math/render/svg/f5e3890c981ae85503089652feb48b191b57aae3) is the number of adjacent vertices to node![i](https://wikimedia.org/api/rest_v1/media/math/render/svg/add78d8608ad86e54951b8c8bd6c8d8416533d20), ![\bar{x}\_{j}](https://wikimedia.org/api/rest_v1/media/math/render/svg/dbd27a85a9a24ada3c6e9742e788cc74447f266b) is the position of the ![j](https://wikimedia.org/api/rest_v1/media/math/render/svg/2f461e54f5c093e92a55547b9764291390f0b5d0)-th adjacent vertex and![{\bar  {x}}\_{{i}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/577fa963b8502af003c9216da23f89fc0ca059a5) is the new position for node![i](https://wikimedia.org/api/rest_v1/media/math/render/svg/add78d8608ad86e54951b8c8bd6c8d8416533d20).

**For more information** on Smoothing using Blender, refer to the [Blender Reference Manual](https://easyblend.org/html/modeling/meshes/smoothing.html):

{% embed url="<https://easyblend.org/html/modeling/meshes/smoothing.html>" %}

## 3.0 Other Resources <a href="#id-3-0-other-resources" id="id-3-0-other-resources"></a>

{% embed url="<https://youtu.be/wzcNH5pvd7Y>" %}
Figure 3.0 - 3D Filters in Blender (Source: Thomas Sanladerer)
{% endembed %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ms-kb.msd.unimelb.edu.au/next-lab/3d-printing/key-techniques/mesh-techniques/other-techniques/blender.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
