creating a 3d plot please help

classic Classic list List threaded Threaded
2 messages Options
Stephen Thomas Stephen Thomas
Reply | Threaded
Open this post in threaded view
|

creating a 3d plot please help


Hi all ,
          Im trying to create a 3d plot..by reading data from a file..
The datafile has 3 set of values i ve randomly put.
say like this..
X    Y      Z
1    2      3.5
3    6.0    8.4
7    9       3

i want to plot the surface  covered by these values..

i used plot3d1(X ,Y,Z) command and i got a rectagular prism shaped surface..with the faces being drawn through outermost set of xyz points

Is there any free suface plotting function in scilab..other than this ractangular facets..

Or can any one tell me which is the best method of plotting such type of non related 3 D data??
Thanks
Stephen


--------------------------------------------------------------------------------------------------
 
"Be good, be kind, be humane, and charitable; love your fellows;
 
console the afflicted; pardon those who have done you wrong."
 
Zoroaster.



The Ubuntu Counter Project - user number # 22904

Pierre JUILLARD Pierre JUILLARD
Reply | Threaded
Open this post in threaded view
|

Re: creating a 3d plot please help

Hi Stephens,


I can't readily tell how to do in Scilab, but I think you miss a problem (or maybe it's me...).

The thing is, your example shows a point cloud, not a mesh: you can't directly get a surface from a point cloud...
How would Scilab or any other software know how to link the correct set of points between themselves?

However, if your point cloud is one that would correspond to a "relatively flat" shell mesh (in the sense it's not a compact ball of points everywhere for instance...), you can use Delaunay3D meshing to have a triangular mesh corresponding to a surface.

I did a similar thing with ParaView from 3D scans. I wrote the coordinates in a file understandable by ParaView (csv I think to remember), then I used the Delaunay3D filter available.
It worked rather well.


Hope I help.

Pierre



2009/3/6 Stephen Thomas <[hidden email]>

Hi all ,
          Im trying to create a 3d plot..by reading data from a file..
The datafile has 3 set of values i ve randomly put.
say like this..
X    Y      Z
1    2      3.5
3    6.0    8.4
7    9       3

i want to plot the surface  covered by these values..

i used plot3d1(X ,Y,Z) command and i got a rectagular prism shaped surface..with the faces being drawn through outermost set of xyz points

Is there any free suface plotting function in scilab..other than this ractangular facets..

Or can any one tell me which is the best method of plotting such type of non related 3 D data??
Thanks
Stephen


--------------------------------------------------------------------------------------------------
 
"Be good, be kind, be humane, and charitable; love your fellows;
 
console the afflicted; pardon those who have done you wrong."
 
Zoroaster.



The Ubuntu Counter Project - user number # 22904