Is it possible to get the daylight information on a specific point of the model?

Is it possible to get the daylight information on a specific point of the model?

I would like to do the followings.

  1. Import the house model that I made and locate it in the site(the location and north direction are set up already)
  2. Pick(or input) a specific point(coordinates) in a room of the house.
  3. Return daylight information(if the point gets sunlight or not) on a specific date and time.
  4. Export that information to excel spreadsheet.

The key thing is number 3.
Again, the daylight information is very simple - whether the point is getting sunlight or not(shadow)
I don’t know which class list to look for.
I would really appreciate it if someone could write a code for the whole process and teach me.
Just a reminder of the link that tells about how-to’s will be appreciated too.

Dan

For direct sunlight you could try getting the solar vector and cast a ray in that direction from the point.

However, this is a somewhat crude approach that doesn’t cater for any reflected or diffused sunlight. Maybe Sefaria has a tool for this, or perhaps a rendering engine could be used.

(Edit: The previews don’t show it, but the links are to two different methods)