factor.js 359 B

1234567891011121314151617181920212223
  1. import * as three from "three-js";
  2. class factor {
  3. #mesh;
  4. constructor(mesh) {
  5. if (!(mesh instanceof three.Object3D)) {
  6. throw new TypeError("Must initialize with Object3D.");
  7. }
  8. this.#mesh = mesh;
  9. }
  10. get mesh() {
  11. return this.#mesh;
  12. }
  13. loop() {
  14. return null;
  15. }
  16. }
  17. export { factor }