Plotting Points in 3D Space
-
2006년 6월 14일 수요일 오후 5:10Is there any way to draw points in 3D space with WPF? I suppose I would have to create a mesh geometry of some kind. But I just want a one pixel point.
Thanks,
Lee
모든 응답
-
2006년 6월 14일 수요일 오후 8:13
Sorry, all we have is triangles so you're going to have to make a two triangle square and size it appropriately. -
2006년 6월 14일 수요일 오후 9:11
You could use Daniel Lehenbauer's ScreenSpaceLines3D implementation and create lines so small that they look and feel like points. Something like:
ScreenSpaceLines3D
p = new ScreenSpaceLines3D();p.Points.Add(
new Point3D(.01,1,0));p.Points.Add(
new Point3D(-.01,1,0));p.Thickness = 2;
p.Color =
Colors.Red;myViewPort3D.Children.Add(p);
Or do a scale transform on a sphere to make it tiny. You can grab a sphere from the Mesh3DObjects class, which you can grab from the code sample in the WPF Task Manager article. Which inspires me to finally post my Sandbox3D sample again, which also may help out...
-
2006년 6월 14일 수요일 오후 9:21Excellent thanks Karsten!
-
2006년 6월 19일 월요일 오후 8:03You bet!

