標籤:web3d webgl 三維 資料視覺效果 three.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