View factor is a MATLAB function that uses the CDIF (contour double integral formula) to calculates view factors between planar surfaces(polygons), no matter what are the shape and the orientation of the two figures.
All you need to enter is the coordinates of the vertices that define the outlines of the two figures and the level of precision desired (number of significant digits).
example:
Use the following command to calculate the view factors between two parallel triangles of coordinates (0,0,0),(1,0,0),(0,1,0) and (0,0,1),(2,0,1),(0,2,1)
with a precision of 6 significant digits.
[vfactor12,vfactor21,area1,area2]=viewfactor([[0,0,0];[1,0,0];[0,1,0]],[[0,0,1];[2,0,1];[0,2,1]],6)
引用格式
Nicolas Lauzier (2026). View Factors (https://ww2.mathworks.cn/matlabcentral/fileexchange/5664-view-factors), MATLAB Central File Exchange. 检索时间: .
| 版本 | 已发布 | 发行说明 | Action |
|---|---|---|---|
| 1.0.0.0 | Grammatical error in the description (significANT digits) |
