Three.js 007Geometries
Summary
- Created new
BufferGeometry
with 5,000 randomly placed triangles. - Vertex positions spefied with a
Float32Array
with 5,000 (triangles) * 3 (vertices) * 3 (x,y,z) position values. - Using this float array, defined a
BufferAttribute
. - Using
geometry.setAttribute()
set 'position' attribute to the buffer attribute. - Defined
MeshBasicMasterial
withwireframe: true
. - Created
Mesh
with new geometry and material. - Assigned mesh to the scene.
Loading...