NOT TESTED: some polygon stuff.