PDA

View Full Version : Identifying Corner Points



LSElite
2015-07-02, 03:07 AM
Hey All

I have a list of points, spanning a grid.
I want to identify all corner points.

I have had a few ideas about finding the points with the two highest X and Y coordinates and then tracking this corner around the shape.
I am having a few issues with sorting the points.

Anyone have any ideas or can give me advice on point list processing?

Cheers

BlackBox
2015-07-02, 06:03 AM
Hey All

I have a list of points, spanning a grid.
I want to identify all corner points.

I have had a few ideas about finding the points with the two highest X and Y coordinates and then tracking this corner around the shape.
I am having a few issues with sorting the points.

Anyone have any ideas or can give me advice on point list processing?

Cheers

Advice when sorting lists - *APPLY, MAPCAR, and LAMBDA are your friends.

It would help us, to help you, if you could post the code you have and a sample data set, so we don't have to start from scratch.

Cheers

BIG-AL
2015-07-03, 11:24 AM
Possibly a simple trick compare the distance to a remote pt -100000,-100000 and your pts minimum is closest max is most away.