I have created tours like
<code>
const geometry = new THREE.TorusGeometry(1, 0.4, 16, 100);
const material = new THREE.MeshStandardMaterial({ color: 0x0077ff,
side: THREE.DoubleSide,
transparent: true,
opacity: 0.5
});
this.torus = new THREE.Mesh(geometry, material);
</code>
<code>
const geometry = new THREE.TorusGeometry(1, 0.4, 16, 100);
const material = new THREE.MeshStandardMaterial({ color: 0x0077ff,
side: THREE.DoubleSide,
transparent: true,
opacity: 0.5
});
this.torus = new THREE.Mesh(geometry, material);
</code>
const geometry = new THREE.TorusGeometry(1, 0.4, 16, 100);
const material = new THREE.MeshStandardMaterial({ color: 0x0077ff,
side: THREE.DoubleSide,
transparent: true,
opacity: 0.5
});
this.torus = new THREE.Mesh(geometry, material);
and a plane like this
<code>
const geometry = new THREE.PlaneGeometry(5, 5, 32, 32);
const material = new THREE.MeshStandardMaterial({ color: 0xff0000, side: THREE.DoubleSide,opacity: 0.5, transparent: true ,depthWrite: false});
this.plane = new THREE.Mesh(geometry, material);
this.plane.position.set(0, 0, 1);
this.plane.rotation.x = Math.PI / 2;
this.scene.add(this.plane);
this.objects.push(this.plane);
</code>
<code>
const geometry = new THREE.PlaneGeometry(5, 5, 32, 32);
const material = new THREE.MeshStandardMaterial({ color: 0xff0000, side: THREE.DoubleSide,opacity: 0.5, transparent: true ,depthWrite: false});
this.plane = new THREE.Mesh(geometry, material);
this.plane.position.set(0, 0, 1);
this.plane.rotation.x = Math.PI / 2;
this.scene.add(this.plane);
this.objects.push(this.plane);
</code>
const geometry = new THREE.PlaneGeometry(5, 5, 32, 32);
const material = new THREE.MeshStandardMaterial({ color: 0xff0000, side: THREE.DoubleSide,opacity: 0.5, transparent: true ,depthWrite: false});
this.plane = new THREE.Mesh(geometry, material);
this.plane.position.set(0, 0, 1);
this.plane.rotation.x = Math.PI / 2;
this.scene.add(this.plane);
this.objects.push(this.plane);
and when rendered it looks like this
But I would like to highlight the intersection as below
How can I achieve this output?