N-sided polygon view factor algorithm (Matlab)

Full Description | Matlab code

This Matlab algorithm analytically computes the view factor from polygon A to polygon B, so long as the following conditions are met:
1) polygons are planar (all vertices lie in the same plane)
2) polygons are simple (no self-intersecting polygons)
3) polygons are convex (in theory, concave polygons should work, but this remains untested)

 

Author: Jacob Kerkhoff, 2021