From: avtmd <w...@avt.at>
Date: Mon, 28 Apr 2008 01:04:01 -0700 (PDT)
Local: Mon, Apr 28 2008 4:04 am
Subject: Re: Reordering polygon vertices
Wow, that's been a great weekend discussion!
May I dare to add another idea? 1) The corner problem: I have posted a way to find a polygon's
2) The rotation problem:
This approach will work for any polygons, not only squares.
With transformers you would have to do a lot more operations, of
Maybe that helps,
Wolfgang
On 27 Apr., 01:14, kimo <k...@ollivier.co.nz> wrote:
> I got the idea from an example previously seen in the Python Cookbook
> for computing convex hulls. It discusses finding the lowest point and > sorting into clockwise order using Graham's Scan Algorithm. I had > initially thought of calling a Python script using this code, or using > the logic in a list handler, but it was quite complicated for an > apparently simple problem, and not really in the spirit of using > transformers and FME. I am sure that list handling is robust, but > this problem puts a lot of skill back on the scripter to implement > properly. This algorithm would be able cope with the general case to > answer the original question completely. > Routine from Python Cookbook Ed 2 chapter 18.17 p 686. Actually it's > not Graham's Scan (1972) at all > It is really Andrew's Monotone Chain Algorithm (1979), but never mind, > I tested it and it worked after debugging.http://en.wikipedia.org/wiki/Graham_scanfor a graphical explanation > I understand how an expert can do "anything" once you have a list of
> On Apr 27, 6:53 am, "Jason Birch" <Jason.Bi...@nanaimo.ca> wrote:
> > That's a good solution.
> > I was working under the assumption that the sctweedy's "so far" meant that I couldn't count on the polygons remaining as simple squares.
> > I wouldn't have come up with anything as elegant as your solution even if I had accepted these constraints though; use of the ConvexHullReplacer was a great call.
> > I'd agree with full-feature processing being faster, but I've found lists to be entirely reliable and one of the parts of FME that I like most.
> > The only way that I know of to "attach" to Google Groups is to use the email interface instead of the web interface.
> > Jason
> > ________________________________
> > From: kimo
> > Too much detail! Much too hard. Surely with all the power in the
> > winmail.dat
> Dow
> - Zitierten Text anzeigen - You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||