I'm creating LineSegments objects like this:
const geometry = new THREE.BufferGeometry();
geometry.setAttribute('position', new THREE.BufferAttribute(vertices, 3));
const edges = new THREE.EdgesGeometry(geometry);
const line = new THREE.LineSegments(edges2, new THREE.LineBasicMaterial({ color: 0xffffff }));
scene.add(line);
Then I've added custom properties to my lines:
line.prop1 = "hello";
line.prop2 = "world";
How can I get all Objects where prop1 for example is "hello"?