Add parent, child inheritance for 2d, 3d shapes.