Merge pull request 'support mesh reuse' (#12) from Yinmb/ComputerGraphics:master into master

Reviewed-on: http://git.u-bim.net/Training/ComputerGraphics/pulls/12
This commit is contained in:
Einsam 2021-03-05 00:45:35 +08:00
commit d94d7f9ba5
4 changed files with 23 additions and 1 deletions

View File

@ -96,7 +96,7 @@ BIMLoader = function(json)
var edges = new THREE.EdgesGeometry(mesh.geometry);
var line = new THREE.LineSegments(edges, new THREE.LineBasicMaterial({color: 0xff0000}));
obj.add(mesh);
obj.add(mesh.clone());
obj.add(line);
}
}

22
20210302/README.md Normal file
View File

@ -0,0 +1,22 @@
# 图形学培训
课件:[图形学培训1.2&1.3-glTF数据结构和扩展](./doc/图形学培训1.2&1.3-glTF数据结构和扩展.pptx)
## 内容
- glTF模型数据介绍
- Draco压缩算法及扩展结构介绍
## 作业
不强制要求,希望大家有空都可以去做一做,将 **Navisworks****Revit** 的模型导出一个glTF的数据文件。
gltTF数据文件的验证器[glTF-Validator](https://github.khronos.org/glTF-Validator/)
相关资料:
![glTF OverView](./doc/gltfOverview-2.0.0b.png)
glTF的官方实现[UnityGLTF](https://github.com/KhronosGroup/UnityGLTF/)
glTF的非官方实现[SharpGLTF](https://github.com/vpenades/SharpGLTF)

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 MiB