错误提示:‘interface’ declarations can only be used in TypeScript files.
问题:
<script setup typets></script>
写法错误,正确写法是
<script setup langts></script>
ThreeJs所有的模型就是一个树结构 Group层级模型 //创建两个网格模型mesh1、mesh2
const geometry new THREE.BoxGeometry(20, 20, 20);
const material new THREE.MeshLambertMaterial({color: 0x00ffff});
const group new THREE.Group();
const mesh1 new THREE.Mesh(ge…