helix-3d-toolkit

How to display MeshElement3D as wireframe?

こ雲淡風輕ζ 提交于 2019-12-05 07:58:18
I would like to display any MeshElement3D (for example BoxVisual3d) in helix-toolkit as wireframe. How can this be accomplished? EDIT: Thanks to Erno de Weerd's answer I was able to write the following code Class that extends BoxVisual3D public class GeometryBoxVisual3D : BoxVisual3D { public MeshGeometry3D Geometry() { return Tessellate(); } } Add the instance of box 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();