Remove dead code
This commit is contained in:
parent
963568bec1
commit
7503922451
37
geometry.js
37
geometry.js
@ -1,42 +1,5 @@
|
||||
import * as se3 from './se3';
|
||||
|
||||
/** Makes a square with constant z = 0.
|
||||
*
|
||||
* Face is oriented towards z+.
|
||||
*/
|
||||
function makeSquare() {
|
||||
const vertices = [
|
||||
// triangle 0
|
||||
0.5, 0.5 , 0.0,
|
||||
-0.5, 0.5, 0.0,
|
||||
-0.5, -0.5, 0.0,
|
||||
|
||||
// triangle 1
|
||||
0.5, 0.5, 0.0,
|
||||
-0.5, -0.5, 0.0,
|
||||
0.5, -0.5, 0.0,
|
||||
];
|
||||
|
||||
// normals toward z+
|
||||
const normals = [].concat(...Array(6).fill([0.0, 0.0, 1.0]));
|
||||
|
||||
const textures = [
|
||||
0.99, 0.99,
|
||||
0.01, 0.99,
|
||||
0.01, 0.01,
|
||||
|
||||
0.99, 0.99,
|
||||
0.01, 0.01,
|
||||
0.99, 0.01,
|
||||
];
|
||||
|
||||
return {
|
||||
vertices,
|
||||
normals,
|
||||
textures,
|
||||
};
|
||||
}
|
||||
|
||||
function memoize(f) {
|
||||
const memo = {};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user