# HalfEdgeMesh class

Namespace: [Grasshopper2.Geometry.HalfEdges](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.geometry.halfedges.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public class HalfEdgeMesh
```

This is the main class that describes a half-edge mesh. Derived from Plankton, (c) 2013 Daniel Piker and Will Pearson, licensed LGPL v3 or later.

## Constructors

- [HalfEdgeMesh](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/ctor.md): (2 overloads) Initializes a new (empty) instance of the [HalfEdgeMesh](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh.md) class.

## Properties

- [Faces](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/faces.md): Gets access to the [HalfEdgeFaceList](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgefacelist.md) collection in this mesh.
- [Halfedges](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/halfedges.md): Gets access to the [HalfEdgeList](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgelist.md) collection in this mesh.
- [Vertices](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/vertices.md): Gets access to the [HalfEdgeVertexList](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgevertexlist.md) collection in this mesh.

## Methods

- [Compact](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/compact.md): Removes any unreferenced objects from arrays, reindexes as needed and shrinks arrays to minimum required size.
- [Dual](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/dual.md)
- [IsClosed](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/isclosed.md)
- [TruncateVertices](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/truncatevertices.md): Truncates the vertices of a mesh.
- [Volume](https://developer.rhino3d.com/api/gh2/type/grasshopper2.geometry.halfedges.halfedgemesh/volume.md): Calculate the volume of the mesh
