Re: [nbos] Off Topic (pensioners)
keith.davies-at-kjdavies.org
Wed Nov 14th, 2007
On Wed, Nov 14, 2007 at 08:30:13AM -0600, David Tait wrote:
>
> As I said, it would be nice to select a fractal polygon
> element and automatically 'convert' it to a closed spline curve. It
> would reduce the workload considerably, however I have no idea if such
> a thing were even possible. In the meantime, I will keep on chugging
> away with my little project - content with the results that I consider
> more than acceptably fine.

Thinking about it, it shouldn't be *too* hard to do this with a script.

for each map element that is a fractal polygon
create a spline polygon
for each (sub)point in the fractal polygon
add the point to the spline polygon
add the spline polygon to the map
remove the fractal polygon

(algorithm only; I'm at work and can't implement it right now)

This should come pretty close to the current shape. If you do this
immediately after importing from FWE you won't lose any other work
you've done.

Alternatively, you could move the fractal polygons to another layer,
rather than delete them. I'm a geek, I don't like losing data if it can
be avoided.


Heh. I didn't read it quite right. It should be dead easy to change
the above algorithm control to "for each selected map element that is a
fractal polygon".

Hmm. In fact, to make it generic it would be appropriate to create a
function that works on a list of map elements passed in.

I'll try to remember to look into this when I get home tonight.


Keith
--
Keith Davies "History is made by stupid people
keith.davies-at-kjdavies.org "Clever people wouldn't even try
keith.davies-at-gmail.com "If you want a place in the history books
http://www.kjdavies.org/ "Then do something dumb before you die."
-- The Arrogant Worms
_______________________________________________
Nbossoftware mailing list


Copyright © 2003-2007, NBOS Software. All rights reserved. 'Fractal Mapper', 'ScreenMonkey', 'Character Sketcher', 'Inspiration Pad', 'Fractal World Explorer', 'Goblin API', 'AstroSynthesis' are trademarks of NBOS Software. 'Dwarven Beserker' art by V. Shane.
Member contributed resources