<font style="font-family: comic sans ms,sans-serif;" size="4">Hi all<br><br>I have a complex object represented as a triangular mesh. <br>I am going to do some kind of numerical analysis on the object surface.<br><b style="background-color: rgb(255, 204, 153);">The assumption is that light is impinging onto the object surface from some infinitely faraway point</b><span style="background-color: rgb(255, 204, 153);">. </span>Is there an efficient <br>
function which based on the location of the light source determines <span style="background-color: rgb(255, 102, 102);"> </span><u style="background-color: rgb(255, 102, 102);"><b>which triangles are in light and which ones fall in the shade</b></u><span style="background-color: rgb(255, 102, 102);">?</span><br style="background-color: rgb(255, 102, 102);">
<br>Many many thanks<br>Davood<br></font>