Moved some vertex snapping into its own class. Placeholder functionality for custom material.