Thread Subject: How to create "ASCII Scene Export" files from a MATLAB mesh

Subject: How to create "ASCII Scene Export" files from a MATLAB mesh

From: Johan Carlson

Date: 23 Jul, 2009 09:14:02

Message: 1 of 3

Hi,

I would like to generate an ASE (ascii scene export) file from an image that I've read into MATLAB and plotted as a mesh.

Ideas, anyone?

/Johan

Subject: How to create "ASCII Scene Export" files from a MATLAB mesh

From: Máday Péter

Date: 23 Jul, 2009 23:59:34

Message: 2 of 3

Hi,

Assuming that you have access to something that can render such
models, I suppose you can save them as well. As I have no experience
with this format, what I would suggest, is to create a plane in the X-
Y plane (a flat rectangular surface) with side lengths set to 1 and 10
vertices per dimensions (so that it has 10 by 10 vertices on a uniform
grid) in one such editor, save it as ASE, and try to understand the
result.

If you did this, and are capable of generating rectangular meshes in a
certain size, and with a certain number of vertices, than all you need
to do, is to create such a file with the Z coordinates of the
respective vertices set to the intensity values of the image (or some
transformed version of it).

Peter

Subject: How to create "ASCII Scene Export" files from a MATLAB mesh

From: Johan Carlson

Date: 24 Jul, 2009 10:25:19

Message: 3 of 3

Máday Péter <madapeti@gmail.com> wrote in message <eccf65eb-b27a-4f8a-a09d-32a60210a1ee@c29g2000yqd.googlegroups.com>...
> Hi,
>
> Assuming that you have access to something that can render such
> models, I suppose you can save them as well. As I have no experience
> with this format, what I would suggest, is to create a plane in the X-
> Y plane (a flat rectangular surface) with side lengths set to 1 and 10
> vertices per dimensions (so that it has 10 by 10 vertices on a uniform
> grid) in one such editor, save it as ASE, and try to understand the
> result.
>
> If you did this, and are capable of generating rectangular meshes in a
> certain size, and with a certain number of vertices, than all you need
> to do, is to create such a file with the Z coordinates of the
> respective vertices set to the intensity values of the image (or some
> transformed version of it).
>
> Peter
>

Hi,

Thanks for the response. This is what we're currently trying to do, writing our own export function.

I was hoping, though, that someone out there already did this, since this is really only a small part of a bigger project.

Anyway, thanks!
/Johan

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com