Dynamic Mesh

Dynamic Mesh

Released 6 years ago , Last update 6 years ago

A highly optimised dynamic mesh class

A mesh is made up of vertices, edges and faces. If the mesh is static and not going to change, we can get away with just storing the vertices and a list of faces, which index into the vertex array. This does away with edges all together and is well suited to rendering on graphics hardware.

However, if we desire to perform operations on the mesh that will change the connectivity and structure, then we need to store the information in a data structure that will allow us to quickly traverse points, edges or faces. The halfedge structure is one such structure (among many) that will give us the versatility we need.

Thsi dynamic mesh class uses a half edge data structure for fast mesh operations such as split, collapse and rotate edges. It comes with a very useful 3D vector class and also has functions for loading and saving in obj format. It is an ideal starting point for applications such as:

  • Virtual clay modelling tool like mudbox/sculptris
  • Fluid simulation surface tracking
  • Artificial morphogenesis simulation
  • Surface extraction (point sets, implicit surfaces, MRI data, etc)
  • Retargeting meshes
  • 3D morphing
  • Creating meshes for FEM/BEM analysis
  • View dependent level of detail: eg realtime terrains for games, flightsims, etc

The package comes with a demo project, which is a fully functional 3D virtual clay sculpting tool, like MudBox or Sculptris.

  • 5 3
  • 4 0
  • 3 0
  • 2 0
  • 1 0
3 Reviews Read Reviews


14 day 14-day money-back guarantee


Free Demo

  • Perpetual license

  • unlimited applications

  • Can distribute binary products only

  • Non-commercial use


Developer License

  • Perpetual license

  • 5 projects

  • Can distribute code and binary products

  • Commercial use


The easiest way to use the DynamicMesh is as follows:

Create a new mesh:

  DynamicMesh* mesh = new DynamicMesh();

Create a default object:

  mesh->createTetrahedron( pos, size );

Or load one from a .obj file


Modify the vertices (will automatically set dirty flag for any vertex):

DynamicMesh::VertexList& vertices = mesh->getVertexList();
for(DynamicMesh::VertexList::iterator i=vertices.begin(); i!=vertices.end(); ++i)

Refine the mesh:


This will collapse edges that are too small, split edges that are too long, and rotate faces that are too slender. It will only affect edges whose vertices are dirty.

At any point you can save the mesh to a .obj file:


Finally, cleanup:

  delete mesh;

This will delete the mesh and all the vertices and halfedges it contains.

3 licenses, starting from From » FREE View Licenses

Get A Quote

What do you need?
  • Custom development
  • Integration
  • Customization / Reskinning
  • Consultation
When do you need it?
  • Soon
  • Next week
  • Next month
  • Anytime

Thanks for getting in touch!

Your quote details have been received and we'll get back to you soon.

Or enter your name and Email
  • HG Herb Gilliland 4 years ago
    Can't download the free version
  • S saravanan 4 years ago
    There is no DynamicMesh Header file... in the Package.