Start a new topic

Flipping a Polygon Using Python

Original Post by: jwill222 Thu Apr 10 14:03:31 2014


I'm trying to write a script that involves flipping a polygon. Is the mgReversePoly function the correct function to use? I'm trying to mimic the reverse face action that's in Creator.


Original Post by: ChrisRogers Thu Apr 10 15:15:23 2014


Yes, mgReversePoly will reverse the order of the vertices in the polygon. (the order of the vertices completely determine the direction the polygon will face)

Original Post by: SteveThompson Thu Apr 10 15:51:05 2014


Or if you're using Creator Script, the following could be used:


mgSelectOne(poly)

mgExecute ("Reverse Face", None)


This is one instance where the OpenFlight Script version s actually simpler to use than the Creator Script version. Usually it's the other way around.

Original Post by: jwill222 Thu Apr 10 16:19:58 2014


Ok thanks!

Login to post a comment