From: Zeph Davies on
Hi,

I have a m-by-3 matrix, where m is the number of rows, the 3 values are the x, y and z values of a point on a surface in 3D space.

eg:
....
27 23 12
45 54 76
29 34 45
....

I would like to be able to plot these points as a surface, using the mesh() function, or preferably the trimesh() function. Possibly the isosurface() function may also be of interest.

However i'm struggling to put the correct data into the functions for it to plot.

I know that mesh can cope with 3D objects, for example a sphere, for it is in the help under surf(). My 3D object is more complex than a sphere, but the principles should be the same.

Thank you.
From: Zeph Davies on
Additional:
Matrix is N-by-3:
trisurf(N, Matrix(:,1), Matrix(:,2), Matrix(:,3))
From: Luigi Giaccari on
"Zeph Davies" <matlab(a)zephmail.co.uk> wrote in message <hjkhhl$fib$1(a)fred.mathworks.com>...
> Hi,
>
> I have a m-by-3 matrix, where m is the number of rows, the 3 values are the x, y and z values of a point on a surface in 3D space.
>
> eg:
> ...
> 27 23 12
> 45 54 76
> 29 34 45
> ...
>
> I would like to be able to plot these points as a surface, using the mesh() function, or preferably the trimesh() function. Possibly the isosurface() function may also be of interest.
>
> However i'm struggling to put the correct data into the functions for it to plot.
>
> I know that mesh can cope with 3D objects, for example a sphere, for it is in the help under surf(). My 3D object is more complex than a sphere, but the principles should be the same.
>
> Thank you.

http://www.advancedmcode.org/how-to-plot-a-coloured-surface-from-3d-scatter.html

http://www.advancedmcode.org/surface-recostruction-from-scattered-points-cloud-mycrustopen.html

http://www.advancedmcode.org/surface-recostruction-from-scattered-points-cloud-mycrust-robust.html



http://www.advancedmcode.org