Nice job, one point is that the molding is closer to the bottle than the wall, hence the discontinuity. It may be possible to project the distance farther in the direction normal to the wall using the sin(theta)*r/r' where r' is the distance to the wall from the bottle and r is the distance to the molding from the bottle and theta is the angle formed by the triangle between the right angle to the wall and the hypotenuse from the bottle.