03-12-2012 06:11 PM
Hi,
I'm missing something in the way Labview makes a 3D plot.
I have a excel sheet with 5 columns: x,y,x,color, shape (i.e. square, circular, etc..). Each line is a new point. What I want is just to position these points with the right color and shape, no surface or line between point. Origin should at (0,0,0).
Thanks,
Olivier
"Dummy umanum est, perseverare diabolicum."
03-13-2012 04:02 PM
here is my VI and a data file.
Colunm 1-3 are x,y,z
Colunm 4 is the point
Colunm 5 is the color
For some reasons, I get only the last point drawed. Where is my mistake?
Thanks olivier
03-13-2012 04:32 PM
You have the 3D Curve VI inside the loop. Since you are autoindexing the values (x,y,z), it's only plotting one point at a time. I don't understand how one is supposed to intepret different values for the color and shape columns since you have only one plot, and point style and colors apply to the plot, not to individual points.
03-15-2012 12:32 PM
I think I wasn't clear. I'm looking to apply a specific shape/color to individual point. Thant's what I cannot figure out.
Olivier
03-15-2012 12:40 PM
I do not think the 3D graphs support a different shape for each point, and for tht matter the shape of the points.
I used a 3D picture to do this.
That illustaes it is possible to dicate the XYZ and color.
Othre shapes are possible but they did not fit with the specs of that project. I did experiment with "skinning" the sphers and that worked as well.
So I suggest trying the 3D picture and skip the 3D graphs.
Ben
03-15-2012 12:42 PM
BTW:
Using the terms "simple" and "3D" in the same sentance propbably breaks one of the laws of thermodynamics.
Ben
03-15-2012 12:49 PM
Could you post some sample code for that...please!
Thanks,
Olivier
03-15-2012 12:57 PM - edited 03-15-2012 12:58 PM
@OD wrote:
Could you post some sample code for that...please!
Thanks,
Olivier
Sorry no can do! (I would be promptly fired for giving away code to anyone other than a current customer and I would like to avoid that for the time being.)
LV ships with 3D picture examples including a Solar System demo which is where I started when developing what I posted above.
Standrad shapes are also included. If you want to get exotic you could even crate your own shapes.
Still trying to help (without getting fired),
Ben
03-15-2012 01:08 PM
I understand. Thanks for the tip.
It seems to me something really basic that should be added. I'll try to submit it.
Thanks,
Olivier