Incomplete implementation of mesh simplification. (WARNING: broken\!)