# Creating Meshes

> Learn about the different processes of creating meshes in Babylon.js.

Source: https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation

## The Creation of Different Types of Mesh

There is a large variety of meshes that you can create. They fall into four broad categories, the first three of which require a single Babylon.js method to build.

1. Set Shapes - which usually have names in everyday use and their forms are well known and recognized. Examples include the box, sphere, cone and plane. These shapes are created with a method having the form _Create&lt;MeshType&gt;_

2. Parametric Shapes - these have no everyday names and are formed through data sets and tend to have irregular shapes. Examples include ribbons, extrusions, and irregular convex or concave polygons. They are created mainly with _Create&lt;MeshType&gt;_ and also with _Extrude&lt;MeshType&gt;_

3. Polyhedra - three dimensional regular solids including octahedron, dodecahedron, icosahedron and icosphere. The method of creating these is _createPolyhedron_ along with a number for the basic shapes and an array of vertices for a wider range of shapes or _createIcoSphere_.

4. Custom - those you design yourself and build from your own set of vertices connected into triangular facets as you choose.

The current way to create a mesh is to use _MeshBuilder_.

```javascript
const mesh = BABYLON.MeshBuilder.Create<MeshType> (name, options, scene);
```

The _options_ object will have different properties according to the type of mesh and can be empty {}. The scene parameter is optional and defaults to the current scene.

There is an older, deprecated method, retained for backwards compatibility, which uses _Mesh_ and a string of parameters.

```javascript
const mesh = BABYLON.Mesh.Create<MeshType>(name, required_param1, required_param2, ..., scene, optional_parameter1, ........);
```

The scene parameter is compulsory when used with optional parameters. You will still find this method in playgrounds.

## Pages in this section

- [Creating Set Shapes](https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/set.md): Learn how to create standard set shapes in Babylon.js.
- [Creating Parametric Meshes](https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/param.md): Learn how to create parametric meshes in Babylon.js.
- [Creating Polyhedra Shapes](https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/polyhedra.md): Learn how to create polyhedra shapes in Babylon.js.
- [Create Custom Meshes](https://doc.babylonjs.com/features/featuresDeepDive/mesh/creation/custom.md): Learn how to create custom meshes in Babylon.js.
