简体   繁体   English

将 3D 数据可视化为 wpf

[英]Visualize 3D data to wpf

I have a double Points[x,3] array that contains x,y,z coordinates of a human point cloud and I want to visualize the data.我有一个double Points[x,3] array ,其中包含人类点云的x,y,z coordinates ,我想将数据可视化。

I am using using System.Windows.Media.Media3D;我正在using System.Windows.Media.Media3D; but i can't convert double to Windows.Media.Media3D.Point3D .但我无法将double转换为Windows.Media.Media3D.Point3D

How do I visualize the data?我如何可视化数据?

You can try to use Linq:您可以尝试使用 Linq:

IEnumerable<Point3D> points = 
    Enumerable.Range(0, array.Length(0))
              .Select(i => new Point3D(array[i,0],
                                       array[i,1],
                                       array[i,2]));

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM