09-14-2009 08:27 PM
Hi,
I want to make a 3D-surface plot with an x,y,z-vector. I attached my VI and my data txt-file, if you want to take a look. In the surface plot, you can see 2 trapezoids. The lines connecting the upper points are not correct, they should connect to eachother, so you can see the 2 trapezoids clearly. A whole bunch of these trapezoid will follow eachother up. Can someone help me, so it connects the dots right or is there a better way to create a 3D surface plot with an x,y,z vector? I tried rearranging the points already, didn't work, or I missed a combination. So the points represents the outer surface.
Thanks in advance,
KF_
Solved! Go to Solution.
09-14-2009 11:30 PM
Hi KF_
I really don't know if this helps, but I manipulated the data file that you attached so that each trapezium is represented with 5 points (essentially the first point is copied in the end of the points of the trapezium to complete the trapezium.)
09-15-2009 06:38 AM
Hello NitinD,
Thanks for your reply, it is a nice solution, but for this I would need to adjust the VI that generates those points quite a bit. I prefer not to do that, but if there is no other solution, I will do this. By the way, the plot doesn't have to be with lines, I prefer a 3D surface around the points, but that doesn't seem to work.
KF_
09-15-2009 09:28 AM - edited 09-15-2009 09:35 AM
please post in LV 8.5 if you want me to take a look.
otherwise look here for a simple example of how to draw a surface.
Ben
09-15-2009 09:35 AM
hey Ben,
here it is in 8.5
09-15-2009 10:05 AM - edited 09-15-2009 10:06 AM
Ben,
Thanks for replying, I converted it to Labview 8.5, hopefully it works. You can find the text file with the input in my first post.
Regards KF_
09-16-2009 08:28 AM
Do you want a sepearte surface for each slice?
Ben
09-16-2009 11:11 AM - edited 09-16-2009 11:12 AM
Hi Ben,
This is just what i can use, I am trying to figure out what you exactly did, i'm pretty much a novice. Is the arrangement of the 4 points per slice fixed or can it vary?
Thanks alot,
KF_
09-16-2009 03:09 PM
KF_ wrote:Hi Ben,
This is just what i can use, I am trying to figure out what you exactly did, i'm pretty much a novice. Is the arrangement of the 4 points per slice fixed or can it vary?
Thanks alot,
KF_
Yes you can have more than four but that code was hard-coded to work with theh data you provided. Slice-and dice as you like. See here.
Ben