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




Answer this question

Plotting Points in 3D Space

  • Lantzmannen

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



  • Skynetxp

    You bet!

  • Robert Caruso

    Excellent thanks Karsten!


  • redcrusher

    Sorry, all we have is triangles so you're going to have to make a two triangle square and size it appropriately.
  • Plotting Points in 3D Space