From 75039224514b4f772939eb67bcce6caa6563d577 Mon Sep 17 00:00:00 2001 From: Paul Mathieu Date: Fri, 17 Dec 2021 06:13:07 -0800 Subject: [PATCH] Remove dead code --- geometry.js | 37 ------------------------------------- 1 file changed, 37 deletions(-) diff --git a/geometry.js b/geometry.js index bbd57d8..f6dd064 100644 --- a/geometry.js +++ b/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 = {};