可视化 3D 数据到 wpf
Visualize 3D data to wpf
我有一个 double Points[x,3] array
,其中包含 x,y,z coordinates
的人体点云,我想可视化数据。
我正在使用 using System.Windows.Media.Media3D;
,但我无法将 double
转换为 Windows.Media.Media3D.Point3D
。
如何可视化数据?
你可以尝试使用Linq:
IEnumerable<Point3D> points =
Enumerable.Range(0, array.Length(0))
.Select(i => new Point3D(array[i,0],
array[i,1],
array[i,2]));
我有一个 double Points[x,3] array
,其中包含 x,y,z coordinates
的人体点云,我想可视化数据。
我正在使用 using System.Windows.Media.Media3D;
,但我无法将 double
转换为 Windows.Media.Media3D.Point3D
。
如何可视化数据?
你可以尝试使用Linq:
IEnumerable<Point3D> points =
Enumerable.Range(0, array.Length(0))
.Select(i => new Point3D(array[i,0],
array[i,1],
array[i,2]));