zoukankan
html css js c++ java
WPF : 3D 最简单的WPF 3D
<
Window x:Class
=
"
SimplestWpf3D.Window1
"
xmlns
=
"
http://schemas.microsoft.com/winfx/2006/xaml/presentation
"
xmlns:x
=
"
http://schemas.microsoft.com/winfx/2006/xaml
"
Title
=
"
Window1
"
Height
=
"
300
"
Width
=
"
300
"
>
<
Grid
>
<
Viewport3D
>
<!--Camera-->
<
Viewport3D.Camera
>
<
PerspectiveCamera
/>
</
Viewport3D.Camera
>
<!--Lights and Objects in the Children-->
<
Viewport3D.Children
>
<!--Light-->
<
ModelVisual3D
>
<
ModelVisual3D.Content
>
<
DirectionalLight Color
=
"
White
"
Direction
=
"
0,1,-1
"
/>
</
ModelVisual3D.Content
>
</
ModelVisual3D
>
<!--Object-->
<
ModelVisual3D
>
<
ModelVisual3D.Content
>
<
GeometryModel3D
>
<
GeometryModel3D.Geometry
>
<
MeshGeometry3D Positions
=
"
-1 0 -8, 1 0 -8, 0 1 -8
"
/>
</
GeometryModel3D.Geometry
>
<
GeometryModel3D.Material
>
<
DiffuseMaterial Brush
=
"
Red
"
/>
</
GeometryModel3D.Material
>
</
GeometryModel3D
>
</
ModelVisual3D.Content
>
</
ModelVisual3D
>
</
Viewport3D.Children
>
</
Viewport3D
>
</
Grid
>
</
Window
>
查看全文
相关阅读:
Python学习之余,摸摸鱼
Python 实现斐波那契数
Linux下为什么目录的大小总是4096
Python的精髓居然是方括号、花括号和圆括号!
为什么说Python是最伟大的语言?看图就知道了!
前端常用知识(会更新)
Mysql 约束
Navicat 安装
Java后台将CTS格式转为标准日期时间格式返回给前端
MySQL数据库报错“Zero date value prohibited”
原文地址:https://www.cnblogs.com/mrfangzheng/p/1179559.html
最新文章
美团机器学习实践
SQL必会50题
SQL面试必会50题-训练数据
Seaborn可视化常见操作
可视化-Matplotlib的常见用法
pandas常用语法
SQL函数汇总
编写复杂查询-子查询
GROUP BY子句
常见的数据表操作语句-增删改查
热门文章
UNION子句
fiddler工具栏常用功能介绍
搭建本地 mysql server 5.5.X 配置及方法
Linux系统篇(Linux目录初识)
Linux入门基础教程(安装)
高并发处理
fiddler 看懂瀑布图Timeline
monkey介绍以及基本命令(二)
monkey介绍以及基本命令(一)
monkey介绍以及基本命令
Copyright © 2011-2022 走看看