Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

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

No tags are associated with this thread.

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.

Contact us