EdgedBoxGeometry constructor
EdgedBoxGeometry()
Implementation
EdgedBoxGeometry() {
vertices = [
//
-1, -1, -1,
1, -1, -1,
1, 1, -1,
-1, 1, -1,
-1, -1, 1,
1, -1, 1,
1, 1, 1,
-1, 1, 1,
];
indices = [
//
0, 1,
1, 2,
2, 3,
3, 0,
4, 5,
5, 6,
6, 7,
7, 4,
0, 4,
1, 5,
2, 6,
3, 7,
];
// Set index buffers and attributes.
setIndex(indices);
setAttribute('position', Float32BufferAttribute(vertices, 3));
setAttribute('normal', Float32BufferAttribute(normals, 3));
setAttribute('uv', Float32BufferAttribute(uvs, 2));
}