<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170138</link>
    <title>MATLAB Central Newsreader - patch created from isosurface hides plot3 inside the surface</title>
    <description>Feed for thread: patch created from isosurface hides plot3 inside the surface</description>
    <language>en-us</language>
    <copyright>&amp;copy;1994-2012 by MathWorks, Inc.</copyright>
    <webmaster>webmaster@mathworks.com</webmaster>
    <generator>MATLAB Central Newsreader</generator>
    <docs>http://blogs.law.harvard.edu/tech/rss</docs>
    <ttl>60</ttl>
    <image>
      <title>MathWorks</title>
      <url>http://www.mathworks.com/images/membrane_icon.gif</url>
    </image>
    <item>
      <pubDate>Thu, 29 May 2008 10:03:03 -0400</pubDate>
      <title>patch created from isosurface hides plot3 inside the surface</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170138#434772</link>
      <author>Abe Lau</author>
      <description>Hi all,&lt;br&gt;
I was trying to create patches from an isosurface from a &lt;br&gt;
3-D array A (1 being inside the object, and 0 outside) using&lt;br&gt;
the command:&lt;br&gt;
patch(reducepatch(isosurface(x,y,z,A, 0), P))&lt;br&gt;
&lt;br&gt;
Upon the surface creation, I was trying to use plot3 to plot&lt;br&gt;
some of the datum points which is supposed to be on the&lt;br&gt;
surface.  However, the datum points always like to be shown&lt;br&gt;
&quot;inside&quot; the surface, rather than half-half, or on the&lt;br&gt;
surface.  This makes visualization very difficult.&lt;br&gt;
&lt;br&gt;
I guess the image below explains it all:&lt;br&gt;
[url=points_hiding_inside_surface][img]&lt;a href=&quot;http://img2.freeimagehosting.net/uploads/54addd07b2.png[/img][/url]&quot;&gt;http://img2.freeimagehosting.net/uploads/54addd07b2.png[/img][/url]&lt;/a&gt;&lt;br&gt;
&lt;a href=&quot;http://img2.freeimagehosting.net/uploads/54addd07b2.png&quot;&gt;http://img2.freeimagehosting.net/uploads/54addd07b2.png&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Is there any way I could get the plot more visible?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Abe</description>
    </item>
    <item>
      <pubDate>Mon, 16 Jun 2008 05:54:02 -0400</pubDate>
      <title>Re: patch created from isosurface hides plot3 inside the surface</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170138#437554</link>
      <author>Abe Lau</author>
      <description>&quot;Abe Lau&quot; &amp;lt;abe@nonexistancegmail.com&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g1lv0n$6em$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt; I was trying to create patches from an isosurface from a &lt;br&gt;
&amp;gt; 3-D array A (1 being inside the object, and 0 outside) using&lt;br&gt;
&amp;gt; the command:&lt;br&gt;
&amp;gt; patch(reducepatch(isosurface(x,y,z,A, 0), P))&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Upon the surface creation, I was trying to use plot3 to plot&lt;br&gt;
&amp;gt; some of the datum points which is supposed to be on the&lt;br&gt;
&amp;gt; surface.  However, the datum points always like to be shown&lt;br&gt;
&amp;gt; &quot;inside&quot; the surface, rather than half-half, or on the&lt;br&gt;
&amp;gt; surface.  This makes visualization very difficult.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I guess the image below explains it all:&lt;br&gt;
&amp;gt;&lt;br&gt;
[url=points_hiding_inside_surface][img]&lt;a href=&quot;http://img2.freeimagehosting.net/uploads/54addd07b2.png[/img][/url]&quot;&gt;http://img2.freeimagehosting.net/uploads/54addd07b2.png[/img][/url]&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://img2.freeimagehosting.net/uploads/54addd07b2.png&quot;&gt;http://img2.freeimagehosting.net/uploads/54addd07b2.png&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there any way I could get the plot more visible?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Abe&lt;br&gt;
&lt;br&gt;
Just wondering if any others had similar problem before, or&lt;br&gt;
am I just creating the surface in a wrong way?&lt;br&gt;
&lt;br&gt;
It looks to me that the datum points tends to be shown&lt;br&gt;
&quot;outside&quot; of the surface on a convex surface, and &quot;inside&quot;&lt;br&gt;
on a concave surface... wonder if it's a default behaviour,&lt;br&gt;
or if I could change it.&lt;br&gt;
&lt;br&gt;
I was thinking to shrink the volume before I create the&lt;br&gt;
isosurface, but looks like if I wanna go that way, I will&lt;br&gt;
need to loop through every images and shrink it, which is&lt;br&gt;
quite time consuming (not to mention the model is changed)&lt;br&gt;
&lt;br&gt;
Any help is much appreciated.</description>
    </item>
    <item>
      <pubDate>Mon, 16 Jun 2008 08:12:01 -0400</pubDate>
      <title>Re: patch created from isosurface hides plot3 inside the surface</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170138#437566</link>
      <author>gianni schena</author>
      <description>&lt;br&gt;
you can use alpha(0.1) to make the isosurface transparent&lt;br&gt;
&lt;br&gt;
%%%%&lt;br&gt;
.... alpha sets one of three transparency&lt;br&gt;
properties, depending on what arguments you specify with &lt;br&gt;
the call to this function.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&quot;Abe Lau&quot; &amp;lt;abe@nonexistancegmail.com&amp;gt; wrote in message &lt;br&gt;
&amp;lt;g1lv0n$6em$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; Hi all,&lt;br&gt;
&amp;gt; I was trying to create patches from an isosurface from a &lt;br&gt;
&amp;gt; 3-D array A (1 being inside the object, and 0 outside) &lt;br&gt;
using&lt;br&gt;
&amp;gt; the command:&lt;br&gt;
&amp;gt; patch(reducepatch(isosurface(x,y,z,A, 0), P))&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Upon the surface creation, I was trying to use plot3 to &lt;br&gt;
plot&lt;br&gt;
&amp;gt; some of the datum points which is supposed to be on the&lt;br&gt;
&amp;gt; surface.  However, the datum points always like to be &lt;br&gt;
shown&lt;br&gt;
&amp;gt; &quot;inside&quot; the surface, rather than half-half, or on the&lt;br&gt;
&amp;gt; surface.  This makes visualization very difficult.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; I guess the image below explains it all:&lt;br&gt;
&amp;gt; [url=points_hiding_inside_surface][img]&lt;br&gt;
&lt;a href=&quot;http://img2.freeimagehosting.net/uploads/54addd07b2.png&quot;&gt;http://img2.freeimagehosting.net/uploads/54addd07b2.png&lt;/a&gt;&lt;br&gt;
[/img][/url]&lt;br&gt;
&amp;gt; &lt;a href=&quot;http://img2.freeimagehosting.net/uploads/54addd07b2.png&quot;&gt;http://img2.freeimagehosting.net/uploads/54addd07b2.png&lt;/a&gt;&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Is there any way I could get the plot more visible?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Abe</description>
    </item>
    <item>
      <pubDate>Mon, 16 Jun 2008 10:04:01 -0400</pubDate>
      <title>Re: patch created from isosurface hides plot3 inside the surface</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170138#437581</link>
      <author>Abe Lau</author>
      <description>Thanks for your input Gianni.&lt;br&gt;
Yes I have actually tried to set transparency to workaround&lt;br&gt;
the problem, as you could probably tell from the screenshot&lt;br&gt;
attached.  &lt;br&gt;
&lt;br&gt;
While this could be a workaround, the effect is far from&lt;br&gt;
good unfortunately, especially when you only want to&lt;br&gt;
illustrate what is on the surface, but not everything behind&lt;br&gt;
it.  I will need to set the alpha to a very low value to&lt;br&gt;
&quot;uncover&quot; the datum points and this makes the entire surface&lt;br&gt;
almost transparent (of cos, haha).  More to say, if I would&lt;br&gt;
like to export the figure in a vector format, all the&lt;br&gt;
transparency will be removed :(&lt;br&gt;
&lt;br&gt;
Any other idea?&lt;br&gt;
&lt;br&gt;
&quot;Gianni Schena&quot; &amp;lt;schena@univ.trieste.it&amp;gt; wrote in message&lt;br&gt;
&amp;lt;g3578h$djn$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; you can use alpha(0.1) to make the isosurface transparent&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; %%%%&lt;br&gt;
&amp;gt; .... alpha sets one of three transparency&lt;br&gt;
&amp;gt; properties, depending on what arguments you specify with &lt;br&gt;
&amp;gt; the call to this function.&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; </description>
    </item>
    <item>
      <pubDate>Tue, 24 Jun 2008 01:34:02 -0400</pubDate>
      <title>Re: patch created from isosurface hides plot3 inside the surface</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/170138#439189</link>
      <author>Abe Lau</author>
      <description>Any insight on this problem?  or am I basically creating the&lt;br&gt;
patches and plot incorrectly?&lt;br&gt;
&lt;br&gt;
The summery now:&lt;br&gt;
From a 3D volumetric array:&lt;br&gt;
patch(reducepatch(isosurface(x,y,z,A, 0), P))&lt;br&gt;
&lt;br&gt;
I want to plot some of the surface coordinates for&lt;br&gt;
illustration, using &quot;plot3&quot;&lt;br&gt;
&lt;br&gt;
However, many datum points (esp in concave area) got hidden&lt;br&gt;
&quot;inside&quot; the model, even when the point size is huge, as&lt;br&gt;
shown below:&lt;br&gt;
&lt;a href=&quot;http://img2.freeimagehosting.net/uploads/54addd07b2.png&quot;&gt;http://img2.freeimagehosting.net/uploads/54addd07b2.png&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
Gianni suggested setting alpha to 0.1 to show the points,&lt;br&gt;
but the model is then too transparent, displaying not only&lt;br&gt;
the surface points, but everything.  Problem with export&lt;br&gt;
also, where transparency is not supported in vector-based&lt;br&gt;
format.&lt;br&gt;
&lt;br&gt;
PS: is this a proper newsgroup, and is top-post/bottom-post&lt;br&gt;
preferred?  can't find it in the rules, and I'm reading this&lt;br&gt;
from the mathworks website also....&lt;br&gt;
&lt;br&gt;
Thanks</description>
    </item>
  </channel>
</rss>

