Three.js Source Note (70) extras/geometries/cubegeometry.js

Source: Internet
Author: User

Commercial Territory (http://blog.csdn.net/omni360/)

This article follows "Attribution-non-commercial use-consistent" authoring public agreement

Reprint Please keep this sentence: Business Domain-this blog focuses on Agile development and mobile and IoT device research: Data visualization, Golang, HTML5, WEBGL, three. JS, Otherwise, from this blog article refused to reprint or reprint, thank you for your cooperation.


I was just beginning to learn, a lot of things are definitely wrong and please forgive me.

The following code is a comment for the extras/geometries/cubegeometry.js file in the three.js source file.

More updates in: Https://github.com/omni360/three.js.sourcecode


/** * @author mrdoob/http://mrdoob.com/*//*///cubegeometry is used to create a cube box object within a three-dimensional space. Replaced by the Boxgeometry object.//////usage: 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 "> Cube width </param>///<param name =" height "type=" float "> Cube height </param>///< param name = "depth" type= "float" > Cube depth </param>///<param name = "Widthsegments" type= "int" > Cube width Subdivision segment number </param>///<param name = "Heightsegments" type= "int" > Cube height subdivision segment number </param>///<param name = " Depthsegments "type=" int "> Cube depth Subdivision number of segments </param>three. Cubegeometry = function (width, height, depth, widthsegments, heightsegments, depthsegments) {console.warn (' thee '). Cubegeometry have been renamed to three. Boxgeometry. '); return new three. Boxgeometry (width, height, depth, widthsegments, HeightseGments, depthsegments); };


Commercial Territory (http://blog.csdn.net/omni360/)

This article follows "Attribution-non-commercial use-consistent" authoring public agreement

Reprint Please keep this sentence: Business Domain-this blog focuses on Agile development and mobile and IoT device research: Data visualization, Golang, HTML5, WEBGL, three. JS, Otherwise, from this blog article refused to reprint or reprint, thank you for your cooperation.


The following code is a comment for the extras/geometries/cubegeometry.js file in the three.js source file.

More updates in: Https://github.com/omni360/three.js.sourcecode

Three.js Source Note (70) extras/geometries/cubegeometry.js

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.