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