I have a WPF app, with my HelixViewport3D's ModelVisual3D Content property bound to a Model3DGroup-type property. I create some EllipsoidVisual3D objects, and add them to my model group by
Now I want to create some line segments. I do this
LinesVisual3D lv3d = new LinesVisual3D();
Point3D p1 = new Point3D(...);
Point3D p2 = new Point3D(...);
lv3d.Thickness = 20;
But my lines aren't visible. Setting IsRendering to true doesn't help.
I'm doing MVVM, so I don't want to directly add a visual to my viewport, as is done in the Points and Lines sample. I know I'm using it wrong, I just can't figure out where. Any help will be appreciated.