What is the problem exactly?
You'd like to guess a polygon during runtime.
Do you mean a collision polygon?
How should the polygon be guessed?
Why should it be guessed during runtime?
After it's been guessed what would you like to do with the polygon?
Some more information about the question will make answering it a lot easier.