ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mesh change color programmal

 

 

Hi, everyone,

 

I have a question about the color of mesh. I create mesh obtained from stl file and attach to a object. I have set a color to it, such as grey. And then I want to reset the color to green programmally. But I can not find the proper method to do it. So, I try to reset the mesh parameter and call set drawble method to do it. But there is an error when I run it. It seems that I can not call set drawable method twice for the same object? On the other hand, although there is an error but the color of object indeeds became the new color I want to set. Is there any suggestion? Thanks.

 

Hechang

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

 

 

Really urgent, thanks!

 

Hechang

0 Kudos
Message 2 of 3
(2,651 Views)

Howdy,

 

The LabVIEW help article on Mesh parameters may prove to be helpful, you can find this here:

http://zone.ni.com/reference/en-XX/help/371361J-01/lvprop/scenemesh_set_mesh_parmeters/

 

Also, the example within the LabVIEW example finder named: Using Meshes.vi may prove to give you better insight as to how to manipulate mesh properties.

Daniel G.
Semiconductor & Wireless
National Instruments
0 Kudos
Message 3 of 3
(2,622 Views)