Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: patch created from isosurface hides plot3 inside the surface
Date: Mon, 16 Jun 2008 05:54:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 38
Message-ID: <g34v5q$klh$1@fred.mathworks.com>
References: <g1lv0n$6em$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1213595642 21169 172.30.248.35 (16 Jun 2008 05:54:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 16 Jun 2008 05:54:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1395525
Xref: news.mathworks.com comp.soft-sys.matlab:473904



"Abe Lau" <abe@nonexistancegmail.com> wrote in message
<g1lv0n$6em$1@fred.mathworks.com>...
> Hi all,
> I was trying to create patches from an isosurface from a 
> 3-D array A (1 being inside the object, and 0 outside) using
> the command:
> patch(reducepatch(isosurface(x,y,z,A, 0), P))
> 
> Upon the surface creation, I was trying to use plot3 to plot
> some of the datum points which is supposed to be on the
> surface.  However, the datum points always like to be shown
> "inside" the surface, rather than half-half, or on the
> surface.  This makes visualization very difficult.
> 
> I guess the image below explains it all:
>
[url=points_hiding_inside_surface][img]http://img2.freeimagehosting.net/uploads/54addd07b2.png[/img][/url]
> http://img2.freeimagehosting.net/uploads/54addd07b2.png
> 
> Is there any way I could get the plot more visible?
> 
> Thanks,
> Abe

Just wondering if any others had similar problem before, or
am I just creating the surface in a wrong way?

It looks to me that the datum points tends to be shown
"outside" of the surface on a convex surface, and "inside"
on a concave surface... wonder if it's a default behaviour,
or if I could change it.

I was thinking to shrink the volume before I create the
isosurface, but looks like if I wanna go that way, I will
need to loop through every images and shrink it, which is
quite time consuming (not to mention the model is changed)

Any help is much appreciated.