Implement cube location used for generating line