The basic way the Polyhedron animation works in this app is as follows:
(1) A graph describing how the faces are connected is loaded from a resource
(2) This graph is used to generate a two dimensional Net - basically the equivalent
of a cardboard cut-out.
(3) This Net is then used to generate Faces in 3 dimensions that can be folded to
form the final Polyhedron
(4) This Polyhedron is then "projected" onto the xaml canvas using a perspective
transformation. The z-order of the polygons corresponding to the individual
faces is set so that they draw from back to front. They are made semi-transparent
so you can see the whole solid.
The xaml for the wheel of polyhedrons in Page1.xaml is auto-generated using code similar
to this app with Projector.Project replaced with a Project.ProjectToXaml.
I had quite a bit of fun using Storyboards in this app to fade-in and magnify the
currently selected Polyhedron and to rotate the arrow on the cycle button.
Triggers are only available for the Load event in this Alpha. All other events have
to be wired manually to storyboards. Watch out for the MouseEnter event which is generated
multiple times (so a flag is needed to prevent the Storyboard reseting continuously).
You are welcome to use most of the code in this app as you see fit.
The DirectX Math emulation library is probably the most reusable part and is available
under the GNU Lesser General Public License. Most of the rest of the app is copyright
free. However I'm retaining copyright on Graphs.cs, Net.cs and Polyhedron.cs because
I use more elaborate version of these in another app. (Please don't use them without
permission.)
Have fun with Silverlight. I certainly did.
Declan Brennan
declan@brennan.name
没有合适的资源?快使用搜索试试~ 我知道了~
Microsoft Silverlight 技术实现的3D示例
共64个文件
shp:18个
dihedrals:18个
cs:12个
5星 · 超过95%的资源 需积分: 10 6 下载量 51 浏览量
2010-12-17
18:41:46
上传
评论
收藏 217KB RAR 举报
温馨提示
Microsoft Silverlight是微软所发展的 Web 前端应用程序开发解决方案,是微软丰富型互联网应用程序(Rich Internet Application)策略的主要应用程序开发平台之一,以浏览器的外挂组件方式,提供 Web 应用程序中多媒体(含影音流与音效流)与高度交互性前端应用程序的解决方案,同时它也是微软 UX(用户经验)策略中的一环,也是微软试图将美术设计和程序开发人员的工作明确切分与协同合作发展应用程序的尝试之一。
资源推荐
资源详情
资源评论
收起资源包目录
Polyhedra.rar (64个子文件)
Polyhedra
Polyhedra
Polyhedra.csproj 7KB
Web.config 8KB
obj
Debug
Polyhedra.pdb 90KB
Page.g.cs 23KB
ResolveAssemblyReference.cache 12KB
App.g.cs 2KB
TempPE
Polyhedra.csproj.FileListAbsolute.txt 2KB
XapCacheFile.xml 1KB
Polyhedra.dll 252KB
Polyhedra.g.resources 153KB
Release
TempPE
Properties
AppManifest.xml 207B
AssemblyInfo.cs 1KB
Graph.cs 8KB
Polyhedra.csproj.user 933B
Geometry.cs 3KB
DirectXMath.cs 27KB
Projector.cs 4KB
ClientBin
ko
es
zh-hant
ja
fr
zh-hans
de
it
App.xaml 275B
App.xaml.cs 1004B
Net.cs 7KB
Page.xaml.cs 11KB
bg.jpg 29KB
Polyhedron.cs 7KB
readme.txt 2KB
Page.xaml 123KB
Shapes
truncated_icosidodecahedron.shp 1KB
truncated_octahedron.shp 221B
octahedron.dihedrals 504B
snub_cuboctahedron.shp 476B
icosidodecahedron.shp 452B
truncated_cuboctahedron.dihedrals 3KB
tetrahedron.dihedrals 264B
truncated_tetrahedron.dihedrals 782B
truncated_cube.shp 231B
cube.dihedrals 524B
rhombicosidodecahedron.shp 932B
rhombicuboctahedron.shp 355B
cuboctahedron.dihedrals 1KB
tetrahedron.shp 36B
truncated_cube.dihedrals 2KB
truncated_dodecahedron.dihedrals 4KB
snub_cuboctahedron.dihedrals 3KB
truncated_icosahedron.shp 614B
rhombicuboctahedron.dihedrals 2KB
truncated_icosidodecahedron.dihedrals 9KB
icosahedron.dihedrals 1KB
rhombicosidodecahedron.dihedrals 6KB
truncated_cuboctahedron.shp 491B
dodecahedron.dihedrals 1KB
truncated_octahedron.dihedrals 2KB
octahedron.shp 72B
icosidodecahedron.dihedrals 3KB
cuboctahedron.shp 163B
truncated_icosahedron.dihedrals 4KB
snub_icosidodecahedron.dihedrals 7KB
dodecahedron.shp 174B
truncated_tetrahedron.shp 96B
cube.shp 66B
snub_icosidodecahedron.shp 1KB
icosahedron.shp 224B
truncated_dodecahedron.shp 632B
PolyhedronPalette.cs 4KB
Polyhedra.sln 917B
Polyhedra.suo 30KB
共 64 条
- 1
资源评论
- SadlyCodes2012-10-17挺好的资源 不过内容比较少 但还是能学到一些东西
webcia
- 粉丝: 0
- 资源: 6
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 阿里云OSS Java版SDK.zip
- 阿里云api网关请求签名示例(java实现).zip
- 通过示例学习 Android 的 RxJava.zip
- 通过多线程编程在 Java 中发现并发模式和特性 线程、锁、原子等等 .zip
- 通过在终端中进行探索来学习 JavaScript .zip
- 通过不仅针对初学者而且针对 JavaScript 爱好者(无论他们的专业水平如何)设计的编码挑战,自然而自信地拥抱 JavaScript .zip
- 适用于 Kotlin 和 Java 的现代 JSON 库 .zip
- yolo5实战-yolo资源
- english-chinese-dictionary-数据结构课程设计
- mp-mysql-injector-spring-boot-starter-sql注入
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功