Plotting Points in 3D Space

Is 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
[544 byte] By [LeeBrimelow] at [2007-12-21]
# 1
Sorry, all we have is triangles so you're going to have to make a two triangle square and size it appropriately.
JordanParker-MSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 2

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...

KarstenJanuszewskiMSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 3
Excellent thanks Karsten!
LeeBrimelow at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...
# 4
You bet!
KarstenJanuszewskiMSFT at 2007-9-10 > top of Msdn Tech,Visual Studio Orcas,Windows Presentation Foundation (WPF)...

Visual Studio Orcas

Site Classified