I’m creating an BufferGeometry. Now I’m trying to get the outer lines of the geometry with EdgesGeometry. This works fine with following code:
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 }));
But it’s possible that there are “holes” in my BufferGeometry. Is there a way to remove those with EdgesGeometry?
What I get:
What I want: