patioTable2.js 665 B

123456789101112131415161718
  1. import {scene, Group, compute} from "setup";
  2. import Board from "Board";
  3. import * as three from "three";
  4. const boards = [];
  5. console.time("something");
  6. const board = new Board(scene, 2, 4, 50, boards, ["height", 45, true]);
  7. const boardTwo = new Board(scene, 2, 4, 50, boards, ["height", 45, true]);
  8. boardTwo.translate(0, 23, 23);
  9. boardTwo.rotate(90, 0, 180);
  10. const boardThree = new Board(scene, 2, 4, 50, boards, ["height", 45, true]);
  11. boardThree.translate(0, 23, -23);
  12. boardThree.rotate(90, 0, 0);
  13. const boardFour = new Board(scene, 2, 4, 50, boards, ["height", 45, true]);
  14. boardFour.translate(0, 46, 0);
  15. boardFour.rotate(0, 0, 180);
  16. console.timeEnd("something");