Three.js 删除 LineSegments 中的孔/内线

问题描述

我用我的数据创建了一个 Buffergeometry 并提取 Linesegments 以仅显示外线:

const geometry = new THREE.BufferGeometry();
geometry.setAttribute('position',new THREE.BufferAttribute(vertices,3));
const edges = new THREE.EdgesGeometry(geometry);
const line = new THREE.Linesegments(edges,new THREE.LineBasicMaterial({ color: 0xc4eaff }));

因为数据中有一个“洞”,我得到的结果是这样的:

enter image description here

是否有一种简单的方法可以删除我的 Linesegments 中的内线以获得如下结果:

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)