Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

removing useless information in eps/ps files
Hi,

I think I already ask this question in the past but I cannot convince
myself that it remains without answer.
I create eps images with Matlab (let's say bar3 diagrams for instance)
for which most of the bars
are behind other bars. For some reason, the eps format keeps
everything as does the pdf format in case
of conversion of such diagrams. Is there a way to remove all the
information in the original eps file that is not necessary for
visualization.

Thank you,

M.

Report this thread to moderator Post Follow-up to this message
Old Post
pluton
04-01-08 09:45 AM


Re: removing useless information in eps/ps files
In article
<a51778e6-4fe3-4375-aef7-b1806c36368d@a22g2000hsc.googlegroups.com>,
pluton <plutonesque@gmail.com> wrote:
...
> Is there a way to remove all the information in the original
> eps file that is not necessary for visualization.
No, not easily and not using solely Postscript.

I am not a Matlab user, but what you describe reminds me of 3D rendering
using the "painter algorithm" (that is, the scene is broken down into
surface elements and those are ordered from furthest to closest to the
viewer, projected on a plane and then their 2D projection filled). If
the rendering primitives already provide polygon-filling (like
Postscript or PDF), this is easy to implement, works reasonably well for
non-intersecting convex polyhedras and so is probably good enough for
rendering 3D bar charts.
Of course, as you noted, this is wasteful, since fully hidden surface
will be projected and painted, only to be overwritten by other projected
surfaces...

What you are asking for is called "hidden surface removal" (HSR). This
is a lot harder to achieve and harder to explain :
http://en.wikipedia.org/wiki/Hidden...e_determination

For HSR to work, it must be done by the tier that has knowledge of the
3D objects, (Matlab in this case). Attempting to do it at the (final) 2D
drawing is too late. Hence your question is a Matlab question, not a
Postscript question.

 ________________________________________
________________
François Robert

Report this thread to moderator Post Follow-up to this message
Old Post
François Robert
04-01-08 09:45 AM


Re: removing useless information in eps/ps files
Thank you, I know a software that performs this kind of operation :
DeepExploration.
It works pretty well for Finite Element Meshes fro instance but I am
not sure if it can handle
colors or not. Anyway, its possible inputs are vrml or equivalent 3D
formats and the process
from matlab is not very easy to implement. As you mentionned, maybe I
should ask
Matlab for an improvment of their tool in that direction.

Pluton

Report this thread to moderator Post Follow-up to this message
Old Post
pluton
04-01-08 09:45 AM


Re: removing useless information in eps/ps files
On 31 Mrz., 17:37, pluton <plutones...@gmail.com> wrote:
>
> I think I already ask this question in the past but I cannot convince
> myself that it remains without answer.

The old thread is here: http://groups.google.com/group/comp...e7b47e66f5ef784

Report this thread to moderator Post Follow-up to this message
Old Post
ThomasW
04-01-08 09:45 AM


Re: removing useless information in eps/ps files

> The old thread is here:http://groups.google.com/group/comp...
/thr...

thank you. The thing is that what I mentionned in this thread is not
what I want anymore.
When I consider matlab objects to be saved in eps format (as real
vector object and not raster images
embedded in eps files), they are just either : surfaces constructed
with triangles (with a unique color
per triangle), or 3D bars or patches. I do not think it is a very
difficult task in this situation
to calculate which object belongs to the foreground. Anyway, it looks
like it is a matlab task
more than an .eps task. I'll send mathworks an email to ask them what
they think....

Thank you,

Pluton


Report this thread to moderator Post Follow-up to this message
Old Post
pluton
04-01-08 09:45 AM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PostScript archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 01:54 AM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.