# Editor.MeshEditor.PrimitiveBuilder

Build primitives out of polygons.

- Kind: class
- Namespace: `Editor.MeshEditor`
- Assembly: `Sandbox.Tools`
- Modifiers: abstract

## Properties

- [`Is2D`](/api/Editor.MeshEditor.PrimitiveBuilder/Is2D): If this primitive is 2D the bounds box will be limited to have no depth.
- [`Material`](/api/Editor.MeshEditor.PrimitiveBuilder/Material): The material to use for this whole primitive. Loaded on demand so builders can be created without the render system.

## Methods

- [`Build`](/api/Editor.MeshEditor.PrimitiveBuilder/Build): Create the primitive in the mesh.
- [`CreatePropertyEditor`](/api/Editor.MeshEditor.PrimitiveBuilder/CreatePropertyEditor): Create a custom editor for this primitive, or return null to use the standard property sheet.
- [`SetFromBox`](/api/Editor.MeshEditor.PrimitiveBuilder/SetFromBox): Setup properties from box.
