首页 > 代码库 > three.js 源码注释(七十)extras/geometries/CubeGeometry.js

three.js 源码注释(七十)extras/geometries/CubeGeometry.js

商域无疆 (http://blog.csdn.net/omni360/)

本文遵循“署名-非商业用途-保持一致”创作公用协议

转载请保留此句:商域无疆 -  本博客专注于 敏捷开发及移动和物联设备研究:数据可视化、GOLANG、Html5、WEBGL、THREE.JS否则,出自本博客的文章拒绝转载或再转载,谢谢合作。


俺也是刚开始学,好多地儿肯定不对还请见谅.

以下代码是THREE.JS 源码文件中extras/geometries/CubeGeometry.js文件的注释.

更多更新在 : https://github.com/omni360/three.js.sourcecode


/**
 * @author mrdoob / http://mrdoob.com/
 */
/*
///CubeGeometry用来在三维空间内创建一个立方体盒子对象.被BoxGeometry对象替换.
///
///	用法: var geometry = new THREE.BoxGeometry(1,1,1);	
/// 	  var material = new THREE.MeshBasicMaterial({color: 0x00ff00});
/// 	  var cube = new THREE.Mesh(geometry,material);
/// 	  scene.add(cube);
*/
///<summary>CubeGeometry</summary>
///<param name ="width" type="float">立方体宽度</param>
///<param name ="height" type="float">立方体高度</param>
///<param name ="depth" type="float">立方体深度</param>
///<param name ="widthSegments" type="int">立方体宽度细分线段数</param>
///<param name ="heightSegments" type="int">立方体高度细分线段数</param>
///<param name ="depthSegments" type="int">立方体深度细分线段数</param>
THREE.CubeGeometry = function ( width, height, depth, widthSegments, heightSegments, depthSegments ) {

	console.warn( 'THEE.CubeGeometry has been renamed to THREE.BoxGeometry.' );
	return new THREE.BoxGeometry( width, height, depth, widthSegments, heightSegments, depthSegments );

 };


商域无疆 (http://blog.csdn.net/omni360/)

本文遵循“署名-非商业用途-保持一致”创作公用协议

转载请保留此句:商域无疆 -  本博客专注于 敏捷开发及移动和物联设备研究:数据可视化、GOLANG、Html5、WEBGL、THREE.JS否则,出自本博客的文章拒绝转载或再转载,谢谢合作。


以下代码是THREE.JS 源码文件中extras/geometries/CubeGeometry.js文件的注释.

更多更新在 : https://github.com/omni360/three.js.sourcecode

three.js 源码注释(七十)extras/geometries/CubeGeometry.js