CubeCAD provides a triangular surface mesh generator that discretizes surface objects and the surface of solid objects based on a specified edge length. The mesher algorithm generates a regularized mesh and attempts to create triangular cells of almost equal area. CubeCAD's mesh generator polygonizes curve objects based on the same edge length.
Â
<table>
<tr>
<td>
[[Image:cadmesh1_tn_new.png|thumb|left|550px|The geometry of two spheres.]]
</td>
</tr>
<tr>
<td>
[[Image:cadmesh2_tn_new.png|thumb|left|550px|The triangular surface mesh of the two spheres generated by CubeCAD.]]
</td>
</tr>
<tr>
<td>
[[Image:cadmesh3_tn_new.png|thumb|left|550px|The tessellated version of the two spheres.]]
</td>
</tr>
</table>
=== Generating and Controlling the Mesh ===
You can change the mesh type and the mesh resolution from CubeCAD's Mesh Settings dialog. Click the '''Mesh Settings''' [[File:mesh_settings_tn.png]] button of the Simulate Toolbar or select the menu item '''Simulate → Discretization → Mesh Settings...''' In the drop-down list labeled '''Mesh Type''' you can select one of the two options: '''Regular Surface''' or '''Tessellated Surface'''. The latter option shows the simplest tessellation of the physical structure. The mesh resolution is controlled by '''Edge Length''', which is expressed in project units. The default value of edge length is 10 units. This means that the default mesh features cells with a size of about 10 units. When you change the mesh type or resolution, you can see the effect using the {{key|Apply}} button if [[EM.Cube]] is already in mesh view mode. After [[EM.Cube]] generates a mesh, it saves its and uses it the next time you want to see the mesh. The mesh stays the same until you change its parameters. Sometimes, you may want to regenerate the mesh with the same current parameters. To do so, select the menu item '''Simulate → Discretization → Regenerate Mesh'''.
Â
<table>
<tr>
<td>
[[Image:cadmesh1_tn_new.png|thumb|left|550px|The geometry of two spheres.]]
</td>
</tr>
<tr>
<td>
[[Image:cadmesh2_tn_new.png|thumb|left|550px|The triangular surface mesh of the two spheres generated by CubeCAD.]]
</td>
</tr>
<tr>
<td>
[[Image:cadmesh3_tn_new.png|thumb|left|550px|The tessellated version of the two spheres.]]
</td>
</tr>
</table>
===Working with STL Models===