three.js 源码注释(八十一)extras/geometries/TetrahedronGeometry.js
来源:互联网 发布:java运行没有设置主类 编辑:程序博客网 时间:2024/04/29 02:58
商域无疆 (http://blog.csdn.net/omni360/)
本文遵循“署名-非商业用途-保持一致”创作公用协议
转载请保留此句:商域无疆 - 本博客专注于 敏捷开发及移动和物联设备研究:数据可视化、GOLANG、Html5、WEBGL、THREE.JS,否则,出自本博客的文章拒绝转载或再转载,谢谢合作。
俺也是刚开始学,好多地儿肯定不对还请见谅.
以下代码是THREE.JS 源码文件中extras/geometries/TetrahedronGeometry.js文件的注释.
更多更新在 : https://github.com/omni360/three.js.sourcecode
/** * @author timothypratley / https://github.com/timothypratley *//*///TetrahedronGeometry用来在三维空间内创建一个四面体对象.//////用法: var geometry = new THREE.TetrahedronGeometry(70);/// var material = new THREE.MeshBasicMaterial({color: 0x00ff00});/// var icos = new THREE.Mesh(geometry,material);/// scene.add(icos);*////<summary>TetrahedronGeometry</summary>///<param name ="radius" type="float">四面体半径</param>///<param name ="detail" type="int">细节因子,默认为0,当超过0将会有更多的顶点,当前的几何体就不会是四面体,当参数detail大于1,将会变成一个球体.</param>THREE.TetrahedronGeometry = function ( radius, detail ) {//TODO: 四面体的参数呢????var vertices = [ 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1];//顶点数组var indices = [ 2, 1, 0, 0, 3, 2, 1, 3, 0, 2, 3, 1];//顶点索引THREE.PolyhedronGeometry.call( this, vertices, indices, radius, detail );};/*****************************************************下面是TetrahedronGeometry对象的方法属性定义,继承自Geometry对象.**************************************************/THREE.TetrahedronGeometry.prototype = Object.create( THREE.Geometry.prototype );
商域无疆 (http://blog.csdn.net/omni360/)
本文遵循“署名-非商业用途-保持一致”创作公用协议
转载请保留此句:商域无疆 - 本博客专注于 敏捷开发及移动和物联设备研究:数据可视化、GOLANG、Html5、WEBGL、THREE.JS,否则,出自本博客的文章拒绝转载或再转载,谢谢合作。
以下代码是THREE.JS 源码文件中extras/geometries/TetrahedronGeometry.js文件的注释.
更多更新在 : https://github.com/omni360/three.js.sourcecode
0 0
- three.js 源码注释(八十一)extras/geometries/TetrahedronGeometry.js
- three.js 源码注释(六十八)extras/geometries/BoxGeometry.js
- three.js 源码注释(六十九)extras/geometries/CircleGeometry.js
- three.js 源码注释(七十)extras/geometries/CubeGeometry.js
- three.js 源码注释(七十一)extras/geometries/CylinderGeometry.js
- three.js 源码注释(七十二)extras/geometries/PlaneGeometry.js
- three.js 源码注释(七十三)extras/geometries/TextGeometry.js
- three.js 源码注释(七十四)extras/geometries/ExtrudeGeometry.js
- three.js 源码注释(七十五)extras/geometries/ShapeGeometry.js
- three.js 源码注释(七十六)extras/geometries/SphereGeometry.js
- three.js 源码注释(七十七)extras/geometries/LatheGeometry.js
- three.js 源码注释(七十八)extras/geometries/IcosahedronGeometry.js
- three.js 源码注释(七十九)extras/geometries/TorusGeometry.js
- three.js 源码注释(八十)extras/geometries/OctahedronGeometry.js
- three.js 源码注释(八十二)extras/geometries/RingGeometry.js
- three.js 源码注释(八十三)extras/geometries/TorusKnotGeometry.js
- three.js 源码注释(八十四)extras/geometries/ParametricGeometry.js
- three.js 源码注释(八十五)extras/geometries/PolyhedronGeometry.js
- 开关灯问题
- HDU2551 竹青遍野【水题】
- Java爬虫的相对路径转绝对路径
- 外网连接VisualSVN的配置
- java 判断含有中文的字符串的长度
- three.js 源码注释(八十一)extras/geometries/TetrahedronGeometry.js
- SSH集成org.springframework.beans.factory.BeanDefinitionStoreException: IOException
- RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- 机器学习与智能优化 之 自底向上(层次)聚类
- three.js 源码注释(八十二)extras/geometries/RingGeometry.js
- 密码等级:至少包含字母、大小写数字、字符中的两种 JS实现方案
- three.js 源码注释(八十三)extras/geometries/TorusKnotGeometry.js
- Linux中如何让进程在后台运行
- Unity3D动态地形网格一