I am in the process of creating basic data visualizations using Three.js as my tool of choice. I have a series of PlaneGeometry meshes to which I am applying a transparent texture dynamically generated with red squares drawn at varying opacity levels. My goal is to use the coordinates of these red squares to create additional meshes (such as CylinderGeometry) and position them above the red squares based on their opacity values. I have been able to identify the UV values for each square and store them in an array, but I am facing difficulty in converting these UV coordinates to the 3D world coordinates system. While I have come across resources explaining this process for spheres, I have not been able to find similar information for other types of meshes.
How can I determine the 3D coordinates of the red squares within the texture?