Moved some code from Node & Render to the Mesh class