I would like to display any MeshElement3D (e.g. BoxVisual3d) in helix-toolkit as a wireframe. How can I do that?
EDIT:
Thanks to the answer of Erno de Weerd, I was able to write the following code
BoxVisual3D Extending Class
public class GeometryBoxVisual3D : BoxVisual3D { public MeshGeometry3D Geometry() { return Tessellate(); } }
Add a window instance to the Viewport:
GeometryBoxVisual3D box = new GeometryBoxVisual3D(); box.Fill = new SolidColorBrush(Colors.Red); Viewport3D.Children.Add(box); MeshGeometry3D geometry3 = box.Geometry(); LinesVisual3D lines = new LinesVisual3D(); lines.Thickness = 3; lines.Points = geometry3.Positions; lines.Transform = new TranslateTransform3D(3,1,1); Viewport3D.Children.Add(lines);
As a result, the following message will be displayed:

If I hide the original box and put LinesVisual3D on top of the window, I can display the wired mode as if it were the original object, but it still has no edges on the side.
source share