LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

changing 3D line graph colour point by point

I need to be able to change the colour of the line from point to point. Essentially, the program has to be able to allow the user to plot an outline. When the shutter switch is open (true value), the line drawn should reflect that change by changing colour. Similarly, when the shutter is closed, the subsequent lines drawn will revert to the original colour.

 

Currently, I'm trying to use the property node Surface Color Map, but there are several issues.

 

Firstly, the colour of the line does not change exactly at the point specified. Instead, it is a gradient from the previous point. Is it possible to make the change in colour without gradient and only at the specified point?

 

Secondly, with my current programming, after adding points with the shutter open, when you add points with the shutter closed the entire graph becomes the original colour. Then, when you add more points with the shutter open again, the colour differences are shown. Why is this so? Does it have to do with the cluster that controls the property node (I'm not sure what the double integer is supposed to be so I just used the colour vector)?

 

The program attached is a simple program that I'm using to learn how to use the property node. It will be integrated to a larger program that includes adding curves into the graph, not just straight lines.

Download All
0 Kudos
Message 1 of 1
(2,353 Views)