Select to view content in your preferred language

Reverse Orientation Not Working

833
1
07-29-2010 01:04 PM
BrianBehling
Deactivated User
I am trying to reverse the orientation of a polygon but this simple operation is not working.

Dim myPolygon as IPolygon
myPolygon.ReverseOrientation()

Is there an operation I have to perform on the polygon before I use the reverseOrientation function or something?
0 Kudos
1 Reply
AndrewMay
Emerging Contributor
Hi
No, there's nothing special you need to do.  Have you seen the following example?

http://edndoc.esri.com/arcobjects/9.2/componenthelp/esrigeometry/ReverseOrientation_Example.htm

What are you expecting to see whe you reverse the order of your polygon?  The node order determines whether a ring is an inner or outer ring.  I'm not sure what goes on behind the scenes so it's possible that changing the order of a polygon might not have any affect for something like a simple polygon as Arc knows this must be an outer ring and so the nodes must be in a clockwise direction.
Regards
0 Kudos