3rd Chapter Geometric shape
When creating an object, you need to pass in two parameters, one is the geometry (Geometry) and the other is the material (Material). This chapter describes the creation of geometries, the 4th chapter introduces materials, and the 5th chapter describes how to create meshes using both.
The main function of geometric shapes (Geometry) is to store the vertex information of an object. WebGL requires the programmer to specify the location of each vertex, whereas in three.js, you can create a geometry by specifying some characteristics, such as creating a sphere with a radius, eliminating the effort of the programmer to specify vertices individually.
This section describes the geometry of cubes, planes, spheres, cylinders, tetrahedral, and octets , as well as the method of using three- dimensional text as a geometric shape. This section also describes composing geometry by manually defining vertex position and polygon information.
Series Blog-three.js Getting Started Guide (Zhang Wenli)-Geometric shapes