Despite Thailand's reputation for rauchiness, public displays of nudity are severely frowned upon and indeed illegal. Your Thai hosts will not be impressed if you go topless on the beaches, whilst any more blatent displays will probably end up with you being detained at a local police station. Please respect the social mores of this country.