12-05-2012 10:28 AM
Hello,
There is a VI called: Create Height Field.vi to craete surface to 3D picture control.
"Converts a 2D array of values to a 3D height field and applies the height field to a 3D object that appears in a 3D scene."
This should be perfect for me ( this function interpolates the whole surface) but, I have 3D [x,y,z] point cloud, where the coordinates are not equally spaced. As I understad this VI can display point cloud with equidistant coordinates. How can I use this tool to display my data?
I have tried the Create Mesh.vi to display my point cloud, but I really need the interpolated surface also. Could you give me some guide points where and how to do now?
Thanks in advance,
Solved! Go to Solution.
01-03-2013 09:48 AM
Hi D60!
Sorry for the late reply.
Is your problem still unsolved?
If yes, I searched for some examples that use the Create Height Field VI.
I only found one example code on Community: https://decibel.ni.com/content/docs/DOC-4765
If your data points are not sampled on the same rate, you could use interpolation, to reach the same length.
I guess the easiest way is to use the Mathscript node for this, like in this eaxmple: http://zone.ni.com/reference/en-XX/help/371361F-01/lvtextmath/msfunc_interpolate/
Or this VI could be used for the same purpose: http://zone.ni.com/reference/en-XX/help/371361J-01/gmath/interpolate_2d/
Please let me know, if my suggestions helped. If you have any questions, please don't hesitate to post them.
Best Regards,
01-06-2013 02:11 AM
Dear Balázs,
I will check your suggestion and write a feedback soon.
Thanks for your help!
01-14-2013 02:20 AM
Hi D60!
Were my suggestions useful? Could you solve the issue?
Do you have any other questions, relating to this topic?
Best Regards,
01-14-2013 04:24 AM
Dear Balazs Nagy,
I was out of office and I totally forgot this issue, Sorry for that and thanks for the update.
Your suggestions about 2D interpolation seem OK and very useful.
Thank you so much and have a nice day!
01-14-2013 04:29 AM
Hi D60!
I'm happy, that you could solve this issue using my suggestions.
Thanks for the feedback! Have a nice day too!
Bes Regards,