Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: draw a plane with a point and normal
Date: Thu, 16 Oct 2008 13:42:01 +0000 (UTC)
Organization: SINTEF
Lines: 53
Message-ID: <gd7gb9$sfn$1@fred.mathworks.com>
References: <gd5qk0$q58$1@fred.mathworks.com>
Reply-To: <HIDDEN>
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 1224164521 29175 172.30.248.37 (16 Oct 2008 13:42:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Oct 2008 13:42:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1556335
Xref: news.mathworks.com comp.soft-sys.matlab:495601


Hi David

If you do:

p=[1 1 1];
plot3(p(1),p(2),p(3));
N = [1 2 3];
p = createPlane(p, N)
drawPlane3d(p)
grid on
box on

everything should work, according to the drawPlane m-file it needs a "current window" to work in.

regards
Michael
 
"David Doria" <daviddoria@gmail.com> wrote in message <gd5qk0$q58$1@fred.mathworks.com>...
> I found the package geom3d on the file exchange. From what I gathered the usage is :
> 
> p=[1 1 1];
> N = [1 2 3];
> p = createPlane(p, N)
> drawPlane3d(p)
> 
> However, I get this error:
> 
> >> drawPlane3d(p)
> ??? Error using ==> qhullmx
> qhull input error: not enough points (1) to construct initial simplex (need 3)
> 
> 
> While executing:  | qhull Qt
> 
> Options selected for Qhull 2003.1 2003/12/30:
>   Qtriangulate  _pre-merge  _zero-centrum
> 
> 
> 
> Error in ==> convhulln at 71
> [k,vv] = qhullmx(x', opt);
> 
> Error in ==> convhull at 42
>     [k,v] = convhulln([x(:) y(:)]);
> 
> Error in ==> drawPlane3d at 84
> ind = convhull(u1, u2);
> 
> 
> Anyone know whats going on with this?
> 
> Thanks,
> Dave