Modified Measure Segment Script for CityEngine