|
"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.
|