Shape alinging