Path: news.mathworks.com!newsfeed-00.mathworks.com!newsfeed2.dallas1.level3.net!news.level3.com!postnews.google.com!c29g2000yqd.googlegroups.com!not-for-mail
From: =?ISO-8859-1?Q?M=E1day_P=E9ter?= <madapeti@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to create "ASCII Scene Export" files from a MATLAB mesh
Date: Thu, 23 Jul 2009 16:59:34 -0700 (PDT)
Organization: http://groups.google.com
Lines: 19
Message-ID: <eccf65eb-b27a-4f8a-a09d-32a60210a1ee@c29g2000yqd.googlegroups.com>
References: <h499kp$f8n$1@fred.mathworks.com>
NNTP-Posting-Host: 65.202.28.10
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
X-Trace: posting.google.com 1248393574 10938 127.0.0.1 (23 Jul 2009 23:59:34 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Thu, 23 Jul 2009 23:59:34 +0000 (UTC)
Complaints-To: groups-abuse@google.com
Injection-Info: c29g2000yqd.googlegroups.com; posting-host=65.202.28.10; 
	posting-account=2PqKegoAAADnjvM4kDkkBq0VRrWqtQm2
User-Agent: G2/1.0
X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.12) 
	Gecko/2009070611 Firefox/3.0.12 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe)
X-HTTP-Via: 1.1 proxy (NetCache NetApp/6.0.6)
Xref: news.mathworks.com comp.soft-sys.matlab:557993


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