threejs如何获取一个几何体其中一个面的形状?-灵析社区

满脑子智慧溢出

threejs如何获取一个几何体其中一个面的形状? ![image.png](https://wmprod.oss-cn-shanghai.aliyuncs.com/c/user/20241010/0bd26e85ff02209f9bf51c91d839c611.png) const waterGeometry = this.scene.getObjectByName('小河'); let position = waterGeometry.geometry.attributes.position; //拿到顶点坐标,然后创建曲线

阅读量:175

点赞量:0

问AI
强哥喝假酒
如果你的这个几何体是THREE.Geometry类的实例,一般通过访问实例的faces可以获得面的数据