Path: news.mathworks.com!not-for-mail
From: "Pinpress" <nothing@nothing.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to smooth a triangulated surface?
Date: Tue, 21 Apr 2009 13:46:01 +0000 (UTC)
Organization: Dartmouth College
Lines: 33
Message-ID: <gskimp$9ot$1@fred.mathworks.com>
References: <gsj703$rf1$1@fred.mathworks.com> <gskf9d$eh7$1@fred.mathworks.com>
Reply-To: "Pinpress" <nothing@nothing.edu>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240321561 10013 172.30.248.37 (21 Apr 2009 13:46:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 21 Apr 2009 13:46:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 29342
Xref: news.mathworks.com comp.soft-sys.matlab:534389


Thanks Mike.

Yes, the isosurface was already based on a smoothed volume (using smooth3). However, I would still like to further smooth the resulting triangular surface. Just imaging that I created a phantom 3D image volume of a sphere using the following code:

stack = zeros(100,100,100);
[x,y,z] = meshgrid(1:size(stack,2), 1:size(stack,1), 1:size(stack,3));
dis = dismap_pointsets_openmp([x(:) y(:) z(:)], size(stack)/2);  %% just the distance relative to the center
ind = find(dis<40);
stack(ind) = 1; 

When I create isosurface, I will get a somewhat jagged sphere. Because the "real", or "idealized" surface is a perfect sphere, I was wondering if there is any way to "smooth" the resulting triangulated surface. 

Thanks for any further input!


"Michael Garrity" <mgarrity@mathworks.com> wrote in message <gskf9d$eh7$1@fred.mathworks.com>...
> 
> "Pinpress" <nospam__@yahoo.com> wrote in message news:gsj703$rf1$1@fred.mathworks.com...
> > Hi all,
> >
> > Suppose I have a triangulated surface (e.g., created by using isosurface), how can I
> > efficiently smooth the surface? Thanks for any good input!
> >
> Just a suggestion. If it really is an isosurface, you'll probably
> have better results smoothing the volume data before doing
> the isosurface. It tends to be simpler and more robust than
> messing with the surface data.
> 
> 
>     -Mike Garrity
>     -The MathWorks
> 
>