I'm attempting to develop a class (using three.js) that utilizes an array containing vector names to compare with an array containing a set of 3D vectors in order to generate a mesh of a flat face. However, I am encountering an error.
Uncaught TypeError: Cannot assign to read only property 'quaternion' of object '# <Tface>'
at Tface.createFace (Tface.js: 58)
at eval (index.js: 54)
at Module ../ src / index.js (bundle.js: 651)
at __webpack_require__ (bundle.js: 674)
at bundle.js: 738
at bundle.js: 741
https://github.com/gisselecardozo/teste-classes/blob/master/src/classes/Tface.js