DrawingIn3D/ElementsIn3D.xaml
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<Window x:Class="DrawingIn3D.ElementsIn3D"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="ElementsIn3D" Height="450" Width="450"
xmlns:tools="clr-namespace:_3DTools;assembly=3DTools"
>
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Border BorderBrush="Yellow" BorderThickness="1" Margin="5">
<tools:TrackballDecorator>
<Viewport3D>
<Viewport3D.Camera>
<PerspectiveCamera
LookDirection="2,-1,-1"
UpDirection="0,1,0"
Position="-20,15,15"
NearPlaneDistance="1"
FarPlaneDistance="100"
FieldOfView="40"
>
</PerspectiveCamera>
</Viewport3D.Camera>
<ModelVisual3D>
<ModelVisual3D.Content>
<DirectionalLight
Color="Red"
Direction="-2,-3,-1" />
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D>
<ModelVisual3D.Content>
<DirectionalLight
Color="Chartreuse"
Direction="2,1,1" />
</ModelVisual3D.Content>
</ModelVisual3D>
<ModelVisual3D>
<ModelVisual3D.Content>
<GeometryModel3D>
<GeometryModel3D.Geometry>
<MeshGeometry3D Positions="0,0,0 10,0,0 0,10,0 10,10,0
0,0,10 10,0,10 0,10,10 10,10,10"
TriangleIndices="0,2,1 1,2,3
0,1,4 1,5,4 1,7,5 1,3,7
4,5,6 7,6,5 2,6,3 3,6,7"
Normals="0,1,0 0,1,0 1,0,0 1,0,0
0,1,0 0,1,0 1,0,0 1,0,0" />
后面还有 61 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
