Updated Geometry Generation

When geometries are created for the G-Codes, previously a new material
was created for each geometry, this update creates each material only
once and reuses it.