Does this need to consider the material?  Do materials have an `equals` function?

Who uses `Polyline.equals`?  Is it really needed?