LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Changing Multiple STL Mesh Color dynamically

Solved!
Go to solution

Hello,

 

I'm developing a VI (attached below) which loads multiple STL files into a 3D picture Control. I want to able to control each STL mesh's color individually at runtime i.e. dynamically. In the present VI that I have posted, I can change the color of the Mesh last created ("Skull" in my VI) dynamically. This is achieved by the SceneMesh. SetMeshParameters method inside the while loop. However, I can't seem to figure out a way to do this to all the meshes. The solution seems trivial. Any help would be appreciated. 

 

Thanks

 

Biswarup 

Dept of EE, IIT Madras

Message 1 of 2
(2,480 Views)
Solution
Accepted by topic author MustIHaveAnAlias

Nevermind, I was able to fiure it out myself. Smiley Very Happy . The solution wa indeed trivial.

LV.jpg

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Instead of passing the last element of the Mesh ref Nums from the for loop, I passed the entire array and used the array index function to pick the mesh to manipualte as shown above. I have attached the updated VI as well. Hope this helps.

 

Thanks,

 

Biswarup 

Dept of EE, IIT Madras

Message 2 of 2
(2,459 Views)