Thread Subject: draw a plane with a point and normal

Subject: draw a plane with a point and normal

From: David Doria

Date: 15 Oct, 2008 22:25:04

Message: 1 of 2

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

Subject: draw a plane with a point and normal

From: Michael Winther

Date: 16 Oct, 2008 13:42:01

Message: 2 of 2

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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com