Jump to content

 
Photo

Smoothing in Illustrator

- - - - -

  • Please log in to reply
21 replies to this topic

#16
Charles Syrett

Charles Syrett

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 537 posts
  • Canada

Thanks, Hugo....but you just convinced me even more that a new tool needs to be created. I tested 99% on Illy's Smooth with Pat's Smooth in FreeHand, on the same line segment -- and Illy actually introduces extra curves, whereas FreeHand remains true to the "logic" of the original curve.


Charles Syrett
Map Graphics
http://www.mapgraphics.com


I often use the Simplify... function in Illy, with a setting of 97-99, and I am reasonably happy with the results.



#17
Michael Schmeling

Michael Schmeling

    Master Contributor

  • Validated Member
  • PipPipPipPip
  • 206 posts
  • Gender:Male
  • Location:Kassel, Germany
  • Germany

What about the Round Any Corner script?

Is this more or less what you mean?
Michael Schmeling
Kassel, Germany
Arid Ocean Map Illustrations
http://maps.aridocean.com
Indie Cartographer
http://www.indiecartographer.com

#18
Andrew Patterson

Andrew Patterson

    Key Contributor

  • Validated Member
  • PipPipPip
  • 99 posts
  • Gender:Male
  • Location:Toronto, ON
  • Canada

To really understand this, read Pat's ReadMe: http://www.pdcarto.c...on/csreadme.txt
Better yet, download and try it: http://www.pdcarto.com/freehand.html
;)


I'll see if Support has a copy of FreeHand still installed (I suspect they do for support calls) and if so I'll download it and give it a whirl.

If I understand the description, it sounds like Smooth has zero impact on the vertex count. So if a line has 403 vertices before, it'll have 403 after -- they will simply be bezier vertices now? I'm playing around with the idea on paper just drawing things by hand and I can see how that might function; definitely interesting.

We used to have a 'Spline Lines' filter in MAPublisher, but frankly the code was mystifying. We couldn't find anyone who used it so we pulled it a while back -- certainly no one complained, which kind of lent weight to the decision. I wonder now if it wasn't doing something like this. I don't think so -- if I had to guess I'd say it was a glorified wrapper around Illustrator's Simplify with 100% curve precision & 0% curve threshold -- but it would be interesting to know.

I'd have to go over the algorithm as described in Pat's detailed description, but I don't see why something like that couldn't work in Illustrator. Certainly they both handle paths the same. We've toyed with several 'smooth' operations before and never really found any that overjoyed us -- mostly they were about point elimination though. I know we have one in our labeling engine for running labels along paths (which might have jagged sections you'd rather not see replicated in the label!) but again, that's definitely using point elimination. A more subtle one that simply 'splined' existing lines within constraints would be a different approach.

If I asked our cartographers about this, what kind of places do you find this handy? Is it to give 'rough' paths a softer feel, without losing detail? Certain kinds of features, like rivers or roads?
Andrew Patterson
Lead Software Architect
Avenza Systems Inc.

email: andrew@avenza.com
phone: 416.487.5116

#19
Charles Syrett

Charles Syrett

    Ultimate Contributor

  • Validated Member
  • PipPipPipPipPipPip
  • 537 posts
  • Canada

"Round Any Corners" script WORKS!! Yay!
B)


Charles Syrett
Map Graphics
http://www.mapgraphics.com

#20
Andrew Patterson

Andrew Patterson

    Key Contributor

  • Validated Member
  • PipPipPip
  • 99 posts
  • Gender:Male
  • Location:Toronto, ON
  • Canada

"Round Any Corners" script WORKS!! Yay!
B)


Aha! I was looking at that when it got posted -- it had a nice example screenshot and I wondered if that's what you wanted. I think that's a pretty cool result.

I tried to download it -- I was curious if it was a plugin or a script of some sort -- but as usual my login to the adobe.com site met with a timeout. I'm getting tired of that :(
Andrew Patterson
Lead Software Architect
Avenza Systems Inc.

email: andrew@avenza.com
phone: 416.487.5116

#21
frax

frax

    Hall of Fame

  • Associate Admin
  • PipPipPipPipPipPipPip
  • 2,312 posts
  • Gender:Male
  • Location:Stockholm, Sweden
  • Interests:music, hiking, friends, nature, photography, traveling. and maps!
  • Sweden

You can get that script here: s.h.'s page: Scripts for Adobe Illustrator CS (JavaScript)
Hugo Ahlenius
Nordpil - custom maps and GIS
http://nordpil.com/
Twitter

#22
Kimi

Kimi

    Contributor

  • Validated Member
  • PipPip
  • 32 posts
  • Gender:Female
  • Location:Canada
  • Canada

I have just looked at the "Round Any Corners" and it works really beautifully!! I like it!!

Avenza Systems Inc.
124 Merton Street, Suite 400,
Toronto, Ontario, M4S 2Z2, Canada
Webpage: http://www.avenza.com




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

-->