refactor mesh. mesh now binds material and geometry class together.