added some necessary methods to the curve key class
some small changes
added curve key logic to the curve intersection
made a unified get material logic for shading point