Learning compositional and actionable visual representations for 3D shapes