<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237621</link>
    <title>MATLAB Central Newsreader - draw a plane with a point and normal</title>
    <description>Feed for thread: draw a plane with a point and normal</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>Wed, 15 Oct 2008 22:25:04 -0400</pubDate>
      <title>draw a plane with a point and normal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237621#605555</link>
      <author>David Doria</author>
      <description>I found the package geom3d on the file exchange. From what I gathered the usage is :&lt;br&gt;
&lt;br&gt;
p=[1 1 1];&lt;br&gt;
N = [1 2 3];&lt;br&gt;
p = createPlane(p, N)&lt;br&gt;
drawPlane3d(p)&lt;br&gt;
&lt;br&gt;
However, I get this error:&lt;br&gt;
&lt;br&gt;
&amp;gt;&amp;gt; drawPlane3d(p)&lt;br&gt;
??? Error using ==&amp;gt; qhullmx&lt;br&gt;
qhull input error: not enough points (1) to construct initial simplex (need 3)&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
While executing:  | qhull Qt&lt;br&gt;
&lt;br&gt;
Options selected for Qhull 2003.1 2003/12/30:&lt;br&gt;
&amp;nbsp;&amp;nbsp;Qtriangulate  _pre-merge  _zero-centrum&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; convhulln at 71&lt;br&gt;
[k,vv] = qhullmx(x', opt);&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; convhull at 42&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;[k,v] = convhulln([x(:) y(:)]);&lt;br&gt;
&lt;br&gt;
Error in ==&amp;gt; drawPlane3d at 84&lt;br&gt;
ind = convhull(u1, u2);&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
Anyone know whats going on with this?&lt;br&gt;
&lt;br&gt;
Thanks,&lt;br&gt;
Dave</description>
    </item>
    <item>
      <pubDate>Thu, 16 Oct 2008 13:42:01 -0400</pubDate>
      <title>Re: draw a plane with a point and normal</title>
      <link>http://www.mathworks.com/matlabcentral/newsreader/view_thread/237621#605682</link>
      <author>Michael Winther</author>
      <description>Hi David&lt;br&gt;
&lt;br&gt;
If you do:&lt;br&gt;
&lt;br&gt;
p=[1 1 1];&lt;br&gt;
plot3(p(1),p(2),p(3));&lt;br&gt;
N = [1 2 3];&lt;br&gt;
p = createPlane(p, N)&lt;br&gt;
drawPlane3d(p)&lt;br&gt;
grid on&lt;br&gt;
box on&lt;br&gt;
&lt;br&gt;
everything should work, according to the drawPlane m-file it needs a &quot;current window&quot; to work in.&lt;br&gt;
&lt;br&gt;
regards&lt;br&gt;
Michael&lt;br&gt;
&amp;nbsp;&lt;br&gt;
&quot;David Doria&quot; &amp;lt;daviddoria@gmail.com&amp;gt; wrote in message &amp;lt;gd5qk0$q58$1@fred.mathworks.com&amp;gt;...&lt;br&gt;
&amp;gt; I found the package geom3d on the file exchange. From what I gathered the usage is :&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; p=[1 1 1];&lt;br&gt;
&amp;gt; N = [1 2 3];&lt;br&gt;
&amp;gt; p = createPlane(p, N)&lt;br&gt;
&amp;gt; drawPlane3d(p)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; However, I get this error:&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &amp;gt;&amp;gt; drawPlane3d(p)&lt;br&gt;
&amp;gt; ??? Error using ==&amp;gt; qhullmx&lt;br&gt;
&amp;gt; qhull input error: not enough points (1) to construct initial simplex (need 3)&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; While executing:  | qhull Qt&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Options selected for Qhull 2003.1 2003/12/30:&lt;br&gt;
&amp;gt;   Qtriangulate  _pre-merge  _zero-centrum&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; convhulln at 71&lt;br&gt;
&amp;gt; [k,vv] = qhullmx(x', opt);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; convhull at 42&lt;br&gt;
&amp;gt;     [k,v] = convhulln([x(:) y(:)]);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Error in ==&amp;gt; drawPlane3d at 84&lt;br&gt;
&amp;gt; ind = convhull(u1, u2);&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Anyone know whats going on with this?&lt;br&gt;
&amp;gt; &lt;br&gt;
&amp;gt; Thanks,&lt;br&gt;
&amp;gt; Dave</description>
    </item>
  </channel>
</rss>

