美好的一天。如何在WPF中显示图形边缘? 我在WPF中实现了数字,但我需要得到数字线框。 我试图找到任何HelixToolkit手册,但它失败了。你能给我HelixToolkit手册吗?
我的代码:
<h:HelixViewport3D ClipToBounds="true">
<h:DefaultLights/>
<h:LinesVisual3D Thickness="10">
<ModelVisual3D>
<ModelVisual3D.Content>
<GeometryModel3D>
<GeometryModel3D.Geometry>
<MeshGeometry3D
Positions=" 0,3,3 -3,3,3
-3,0,3 3,0,3
-3,0,-3 -3,3,0"
TriangleIndices=" 0,1,2 2,3,0 5,0,3
3,4,5 5,4,2 1,5,2
0,5,1 3,2,4"/>
</GeometryModel3D.Geometry>
<GeometryModel3D.Material>
<MaterialGroup>
<DiffuseMaterial Brush="GreenYellow" />
<SpecularMaterial Brush="WhiteSmoke" SpecularPower="30"></SpecularMaterial>
</MaterialGroup>
</GeometryModel3D.Material>
</GeometryModel3D>
</ModelVisual3D.Content>
<ModelVisual3D.Transform>
<Transform3DGroup>
<RotateTransform3D>
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="RotateHorizontal" Axis="0 1 0" />
</RotateTransform3D.Rotation>
</RotateTransform3D>
<RotateTransform3D>
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="RotateVertical" Axis="1 0 0" />
</RotateTransform3D.Rotation>
</RotateTransform3D>
</Transform3DGroup>
</ModelVisual3D.Transform>
</ModelVisual3D>
</h:LinesVisual3D>
</h:HelixViewport3D>