Alberto Bottillo Posted June 9, 2016 Report Share Posted June 9, 2016 Hi everybody, I'm a PhD student of Naples and I'm working in a complex project that involves Labview code (that I know very very basically..). I'll start to ask you help for a little problem I had imported a STL file (3D file) in Labview (below there is a screen shot) and I manage to get the coordinates x,y,z of the point of the STL file that I select with the mouse click. Now I would need to create a marker ( or a little sphere or a red point ) on the STL file where I clicked and, if I click on an other point I would need that the marker created before was deleted and that a new marker be created on the new point I clicked, I mean that on the 3D object must be always only one marker. (I'm sorry for my English, please tell me if there is something not clear). I would specifie somethings: the Z coordinate is not important to create the marker/point/sphere because it gona be create on the surface of the 3D object I've imported at the start of the VI (STL file). I must be able to continue to move the 3D object in the scene and create the marker/sphere/point only when I click on the object surface I need to storage the X,Y marker coordinate on 3d onbject must be only one marker at the time THANK YOU IN ADVANCE Pick_point_3D_Picture_Control.vi Quote Link to comment
bbean Posted June 20, 2016 Report Share Posted June 20, 2016 Sorry don't have too much time to help here, but try example code here for some guidance maybe: C:\Program Files (x86)\National Instruments\LabVIEW 2014\examples\Graphics and Sound\3D Picture Control\Using Meshes.vi Quote Link to comment
vugie Posted June 21, 2016 Report Share Posted June 21, 2016 I've created such example some time ago:https://decibel.ni.com/content/docs/DOC-13861 I think it is somehow related... 1 Quote Link to comment
AlbertoBottillo Posted July 4, 2018 Report Share Posted July 4, 2018 Thank you for your help, but I'm still having problems.. Finally I achived to apply my jpeg picture to the imported STL 3d model (as in the attached VI) but the VI "apply texture" apply the texture to each ont of the triangles of the STL file.. that is it does not associate eache pixel of the jpeg picture to each triangle (that it is what I would..). I don't know if it is necessary to perform the jpeg image normalization to apply it on the STL file becaouse of the different sizes.. Someone can help me? Thank you in advance! STL_Texture_Ale_04-07-18.vi Untitled2.stl Quote Link to comment
Gribo Posted July 4, 2018 Report Share Posted July 4, 2018 You need to generate texture mapping coordinates. That is not a trivial process. Quote Link to comment
AlbertoBottillo Posted July 4, 2018 Report Share Posted July 4, 2018 Thanks Gribo, I found and modified an example VI (in the attached) that I think map the coordinates but the result is not very good.. STL and JPEG examples with texture_2.vi Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.