I'm wondering about a osft that would be capable of simplifying
curves. Let's say after a numerical simulation, I get a curve defined
by n straight lines connected throught n-1 points. If n is very large,
it make sense from an illustration point of view, to simplify the
curve into m splines (instead of segments) with m<<n. This way the
final eps is much smaller. I know that illustrator has this kind of
options through "objects" then "simplify". Are there any others ways
to acieve that ?
thank you
Inkscape has path simplification functionality through Path =>
Simplify (I'm not sure what the actual labels are, in my German
installation it's Pfad => Vereinfachen, or Ctrl+L). I would love to
see an option to what degree the path should be simplified because you
can end up hitting Ctrl+L quite a number of times until the path
actually shrinks substantially.
However, it seems you're starting from PostScript and are concerned
about file size. In my experience the conversion steps from PS to PDF
with Ghostscript and to SVG through Inkscape's PDF import can add
significantly to the complexity of the graphics. I recently wrote a
direct EPS => SVG conversion for the output of a specific program
because what I end up with in Inkscape is six times larger than it
needs to be. Especially the fact that paths which are filled and
stroked using a "gsave fill restore stroke" sequence are split into
one outline path and an interior path makes it hard to edit them in
Inkscape.
Maybe it would still be worth giving it a try. Possibly it's only the
PostScript sources I work with that aren't so well suited for
importing into Inkscape.
Thomas W.
thank you, this Inkscape feature is nice since I can then save the
simplified curve
as a pstricks (Latex) piece of code. Anyway, you are right, I do not
know where
the controls/options of the simplification feature are? It would be
nice to have some.
> > Inkscape has path simplification functionality through Path =3D>
> > Simplify (I'm not sure what the actual labels are, in my German
> > installation it's Pfad =3D> Vereinfachen, or Ctrl+L). =A0I would love to
> > see an option to what degree the path should be simplified because you
> > can end up hitting Ctrl+L quite a number of times until the path
> > actually shrinks substantially.
>
> thank you, this Inkscape feature is nice since I can then save the
> simplified curve
> as a pstricks (Latex) piece of code. Anyway, you are right, I do not
> know where
> the controls/options of the simplification feature are? It would be
> nice to have some.
You may reduce EPS file sizes considerably by removing some of the lengthy
decimal places if you are not concerned with placing images on the paper
to 1/100,000th of an inch.
Open a *copy* of the file in a text editor with Grep and
Search with (\.#)(#+)
Replace with \1 (or whatever decimal places you require)
You may be able to adapt this for curvetos.
David B-W
ok, thank you for the hints.
http://research.microsoft.com/en-us/um/people/jiansun/videos/GMesh_336.wmv
Is this approach available somewhere? It looks like Inkscape does not
allow for multipoint/multicolor gradients? Anyway, it would be great
to have this tool
for optimized eps: for instance, in plotting complicated mathematical
surface through usual patches (polygons with a single color per face),
gradients
would be a nice and light solution.
Pluton
http://www.tinaja.com/cubic01.asp
--
Many thanks,
Don Lancaster voice phone: (928)428-4073
Synergetics 3860 West First Street Box 809 Thatcher, AZ 85552
rss: http://www.tinaja.com/whtnu.xml email: d...@tinaja.com
Please visit my GURU's LAIR web site at http://www.tinaja.com