View Single Post

  #3 (permalink)  
Old 12-12-2006
OOT OOT is offline
Junior Member
Yellow Belt
 
Join Date: Dec 2006
Posts: 14
Re: Looping through Vertices of PolyLine?

Quote:
Originally Posted by Wilfried View Post
Hi,

Your approach seems fine
You have a for loop in a for loop because foreach is like a loop. Only consider that foreach does not garantie the sequence (depending how the interface is written). So you code seems fine !

As for OOP you have to think an object as a black box. An object has inputs (properties, methods), and outputs (events, properties). An well written object does not now about objects it does not belong to or way around. Whit that in mind you are thinking OOP
Wow. Thank you for the answer. I was expecting laughter and ridicule about my code. It does seem to be working. I will have to figure out some way of letting the user select the polygon before retrieving the vertices (don't need all of them if they only want the one's from one polygon).

Thank you also for the explanation on how to approach OOP. I keep reading different tutorials but most seem to think that you're reading the tutorial because you already understand OOP - definitely not the case with me.

Thank you again for the help and the advice on how to approach it. It is very much appreciated.
Reply With Quote