How do I orient an object against any surface correctly?

(topic deleted by author)