pyviewfactor 1.0.3__tar.gz → 1.1.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/PKG-INFO +16 -21
  2. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/README.md +156 -161
  3. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor/__init__.py +42 -43
  4. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor/_version.py +6 -6
  5. pyviewfactor-1.1.1/pyviewfactor/pvf_geometry_preprocess.py +835 -0
  6. pyviewfactor-1.1.1/pyviewfactor/pvf_integrators.py +485 -0
  7. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor/pvf_plot.py +81 -88
  8. pyviewfactor-1.1.1/pyviewfactor/pvf_viewfactor_computations.py +293 -0
  9. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor/pvf_visibility_obstruction.py +121 -160
  10. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor.egg-info/PKG-INFO +16 -21
  11. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor.egg-info/SOURCES.txt +1 -0
  12. pyviewfactor-1.1.1/test/test_new_kernels.py +414 -0
  13. pyviewfactor-1.1.1/test/test_view_factor.py +216 -0
  14. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/test/test_visibility_obstruction.py +29 -1
  15. pyviewfactor-1.0.3/pyviewfactor/pvf_geometry_preprocess.py +0 -537
  16. pyviewfactor-1.0.3/pyviewfactor/pvf_integrators.py +0 -317
  17. pyviewfactor-1.0.3/pyviewfactor/pvf_viewfactor_computations.py +0 -402
  18. pyviewfactor-1.0.3/test/test_view_factor.py +0 -407
  19. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/LICENSE.txt +0 -0
  20. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor.egg-info/dependency_links.txt +0 -0
  21. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor.egg-info/requires.txt +0 -0
  22. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/pyviewfactor.egg-info/top_level.txt +0 -0
  23. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/setup.cfg +0 -0
  24. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/setup.py +0 -0
  25. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/test/__init__.py +0 -0
  26. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/test/test_geometry_preprocess.py +0 -0
  27. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/test/test_plot.py +0 -0
  28. {pyviewfactor-1.0.3 → pyviewfactor-1.1.1}/test/test_visibility_obstruction_semantics.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pyviewfactor
3
- Version: 1.0.3
3
+ Version: 1.1.1
4
4
  Summary: "A lightweight open-source Python library for exact view-factor computations on polygonal meshes"
5
5
  Home-page: https://gitlab.com/arep-dev/pyViewFactor/
6
6
  Author: Mateusz BOGDAN, Edouard WALTHER
@@ -20,11 +20,8 @@ Requires-Dist: numba>=0.61
20
20
  Requires-Dist: pyvista>=0.45
21
21
  Dynamic: license-file
22
22
 
23
- # PyViewFactor
24
-
25
-
26
23
  <div align="center">
27
- <img src="https://gitlab.com/arep-dev/pyViewFactor/-/raw/da36d4a0b08308009d9e71876091492ecb97d476/img/Logo%20pVF%20512x512%20v3%20transparent%20crop.png" alt="pvf_logo" width="256px"/>
24
+ <img src="./docs/assets/logo_full.png" alt="pvf_logo" width="512px"/>
28
25
  </div>
29
26
 
30
27
 
@@ -34,7 +31,7 @@ Dynamic: license-file
34
31
  > - obstruction detection,
35
32
  > - accurate view factor computation.
36
33
 
37
- *Full documentation available [here](https://arep-dev.gitlab.io/pyViewFactor/).*
34
+ *Full documentation available at [arep-dev.gitlab.io/pyViewFactor](https://arep-dev.gitlab.io/pyViewFactor/).*
38
35
 
39
36
 
40
37
  <img src="https://gitlab.com/arep-dev/pyViewFactor/-/raw/3d40d1804eccbaefbc8b1736ff30d0d9f08141ad/img/FF_sceneUrbaine_cyl_RT.png" alt="Urban View Factor" width="800" />
@@ -45,7 +42,7 @@ Dynamic: license-file
45
42
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
46
43
  [![Pypi Version](https://img.shields.io/pypi/v/pyviewfactor)](https://pypi.org/project/pyviewfactor/)
47
44
  [![Pypi Downloads](https://img.shields.io/pypi/dm/pyviewfactor.svg?label=pypi%20downloads)](https://pypi.org/project/pyviewfactor/)
48
-
45
+ [![status](https://joss.theoj.org/papers/cc7d3aebf5e8ed25b343c6dd822f70b4/status.svg)](https://joss.theoj.org/papers/cc7d3aebf5e8ed25b343c6dd822f70b4)
49
46
 
50
47
 
51
48
  ## Features
@@ -56,11 +53,11 @@ with insights from [(Schmid 2016)](https://hal.archives-ouvertes.fr/tel-01734545
56
53
  * It uses the handy [`Pyvista`](https://docs.pyvista.org/) package to deal with geometry imports (`*.stl`, `*.vtk`, `*.obj`, ...),
57
54
  geometry creations, and some other mesh functionalities under the hood.
58
55
  * It enables:
59
- - 🔺 View factor computation between planar polygons
56
+ - 🔺 View factor computation between planar polygons via the **SA-30 semi-analytic kernel** — handles touching and coplanar faces analytically, no epsilon shift
60
57
  - 👁️ Visibility checks based on face orientation
61
- - 🚧 Obstruction detection using ray-triangle intersection
58
+ - 🚧 Obstruction detection using Möller–Trumbore ray-triangle intersection, **BVH-accelerated** (O(log N) per ray)
62
59
  - ⚙️ Strict / non-strict modes for robustness control
63
- - ⚡ Optimized full matrix computation with caching
60
+ - ⚡ Full N×N view-factor matrix with Numba `prange` parallelism (~33× faster than v1.0)
64
61
  - 📦 Built on `numpy`, `scipy`, `pyvista`, `numba`
65
62
 
66
63
 
@@ -86,7 +83,7 @@ tqdm==4.65.0
86
83
  The code will probably work with lower versions of the required packages, however this has not been tested.
87
84
 
88
85
  > [!NOTE]
89
- > If you are alergic to `numba`, you may `pip install pyviewfactor==0.0.10` that works (and give up the times 3+ speed-up in view factor computation).
86
+ > `numba` is optional but strongly recommended. Without it, all kernels fall back to sequential pure-Python with identical results — no need to pin an older version.
90
87
 
91
88
 
92
89
  ## Quick Start
@@ -135,8 +132,8 @@ pl.add_mesh(arrows2, color="darkred")
135
132
  pl.show()
136
133
  ```
137
134
 
138
- You usually get your geometry from a different format?
139
- (`*.dat`, `*.idf`, ...)
135
+ You want to import your own geometry from a different format?
136
+ (`*.dat`, `*.idf`, `*.stl`, ...)
140
137
 
141
138
  Check pyvista's documentation on [how to generate a PolyData facet from points](https://docs.pyvista.org/examples/00-load/create-poly.html).
142
139
 
@@ -144,14 +141,12 @@ Check pyvista's documentation on [how to generate a PolyData facet from points](
144
141
 
145
142
  For detailed explanations and advanced usage, see:
146
143
 
147
- https://arep-dev.gitlab.io/pyViewFactor/pyviewfactor.html
144
+ https://arep-dev.gitlab.io/pyViewFactor/
148
145
 
149
146
  The documentation includes:
150
- * Visibility and obstruction semantics,
151
- * Strict vs non-strict modes,
152
- * Geometry preprocessing utilities,
153
- * Numerical robustness guidelines,
154
- * Extended examples (that can also be found in the `examples/` folder of the repository).
147
+ * Theory: view factor integral, SA-30 semi-analytic kernel, BVH obstruction engine,
148
+ * Implementation: architecture, visibility & obstruction semantics, performance guide,
149
+ * Extended examples with analytical validations.
155
150
 
156
151
 
157
152
  ## Citation & Acknowledgments
@@ -170,7 +165,7 @@ So if you use `pyViewFactor` in your work, please cite:
170
165
  Bibtex entry:
171
166
  ``` latex
172
167
  @inproceedings{pyViewFactor22bogdan,
173
- authors = "Mateusz BOGDAN and Edouard WALTHER and Marc ALECIAN and Mina CHAPON",
168
+ author = "Mateusz BOGDAN and Edouard WALTHER and Marc ALECIAN and Mina CHAPON",
174
169
  title = "Calcul des facteurs de forme entre polygones - Application à la thermique urbaine et aux études de confort",
175
170
  year = "2022",
176
171
  organization = "IBPSA France",
@@ -180,4 +175,4 @@ Bibtex entry:
180
175
  ```
181
176
 
182
177
  ## License
183
- MIT License - Copyright (c) AREP 2025
178
+ MIT License - 2026
@@ -1,161 +1,156 @@
1
- # PyViewFactor
2
-
3
-
4
- <div align="center">
5
- <img src="https://gitlab.com/arep-dev/pyViewFactor/-/raw/da36d4a0b08308009d9e71876091492ecb97d476/img/Logo%20pVF%20512x512%20v3%20transparent%20crop.png" alt="pvf_logo" width="256px"/>
6
- </div>
7
-
8
-
9
- > `pyViewFactor` is a lightweight open-source Python library for exact view-factor computations on polygonal meshes.
10
- > It provides robust tools for:
11
- > - geometric visibility analysis,
12
- > - obstruction detection,
13
- > - accurate view factor computation.
14
-
15
- *Full documentation available [here](https://arep-dev.gitlab.io/pyViewFactor/).*
16
-
17
-
18
- <img src="https://gitlab.com/arep-dev/pyViewFactor/-/raw/3d40d1804eccbaefbc8b1736ff30d0d9f08141ad/img/FF_sceneUrbaine_cyl_RT.png" alt="Urban View Factor" width="800" />
19
-
20
- [![Latest Release](https://gitlab.com/arep-dev/pyViewFactor/-/badges/release.svg)](https://gitlab.com/arep-dev/pyViewFactor/-/releases)
21
- [![pipeline status](https://gitlab.com/arep-dev/pyViewFactor/badges/main/pipeline.svg)](https://gitlab.com/arep-dev/pyViewFactor/pipelines)
22
- [![codecov](https://codecov.io/gl/arep-dev/pyViewFactor/graph/badge.svg?token=HPHU835UZ8)](https://codecov.io/gl/arep-dev/pyViewFactor)
23
- [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
24
- [![Pypi Version](https://img.shields.io/pypi/v/pyviewfactor)](https://pypi.org/project/pyviewfactor/)
25
- [![Pypi Downloads](https://img.shields.io/pypi/dm/pyviewfactor.svg?label=pypi%20downloads)](https://pypi.org/project/pyviewfactor/)
26
-
27
-
28
-
29
- ## Features
30
-
31
- * This library enables the computation of radiation view factors between planar polygons using an **accurate** double‐contour integration method described in
32
- [(Mazumder and Ravishankar 2012)](https://www.academia.edu/download/77459051/Viewfactor_paper_IJHMT.pdf)
33
- with insights from [(Schmid 2016)](https://hal.archives-ouvertes.fr/tel-01734545/).
34
- * It uses the handy [`Pyvista`](https://docs.pyvista.org/) package to deal with geometry imports (`*.stl`, `*.vtk`, `*.obj`, ...),
35
- geometry creations, and some other mesh functionalities under the hood.
36
- * It enables:
37
- - 🔺 View factor computation between planar polygons
38
- - 👁️ Visibility checks based on face orientation
39
- - 🚧 Obstruction detection using ray-triangle intersection
40
- - ⚙️ Strict / non-strict modes for robustness control
41
- - ⚡ Optimized full matrix computation with caching
42
- - 📦 Built on `numpy`, `scipy`, `pyvista`, `numba`
43
-
44
-
45
-
46
- ## Installation
47
- `pyViewFactor` can be installed from [PyPi](https://pypi.org/project/pyviewfactor/)
48
- using `pip` on Python >= 3.10:
49
- ```shell
50
- pip install pyviewfactor
51
- ```
52
- You can also visit [PyPi](https://pypi.org/project/pyviewfactor/) or
53
- [Gitlab](https://gitlab.com/arep-dev/pyViewFactor) to download the sources.
54
-
55
- Requirements:
56
- ```
57
- numpy==1.26.4
58
- pyvista==0.45
59
- scipy==1.11.4
60
- numba==0.61.2
61
- tqdm==4.65.0
62
-
63
- ```
64
- The code will probably work with lower versions of the required packages, however this has not been tested.
65
-
66
- > [!NOTE]
67
- > If you are alergic to `numba`, you may `pip install pyviewfactor==0.0.10` that works (and give up the times 3+ speed-up in view factor computation).
68
-
69
-
70
- ## Quick Start
71
-
72
- Suppose we want to compute the radiation view factor between a triangle
73
- and a rectangle facing each other:
74
-
75
- <img src="https://gitlab.com/arep-dev/pyViewFactor/-/raw/9dbd31d124eb898cc5d17913cfc1f010116e2245/img/mwe.png" alt="Triangle and rectangle configuration" width="260"/>
76
-
77
- You are few lines of code away from your first view factor computation:
78
-
79
- ```python
80
- import pyvista as pv
81
- import pyviewfactor as pvf
82
-
83
- # Create a rectangle and a triangle facing each other
84
- pointa1 = [0.0, 0.0, 0.0]
85
- pointb1 = [1.0, 0.0, 0.0]
86
- pointc1 = [0.0, 1.0, 0.0]
87
- rectangle = pv.Rectangle([pointa1, pointb1, pointc1])
88
-
89
- pointa2 = [0.0, 0.0, 1.0]
90
- pointb2 = [0.0, 1.0, 1.0]
91
- pointc2 = [1.0, 1.0, 1.0]
92
- triangle = pv.Triangle([pointa2, pointb2, pointc2])
93
-
94
- if pvf.get_visibility(rectangle, triangle)[0]:
95
- F = pvf.compute_viewfactor(triangle, rectangle)
96
- print("VF from rectangle to triangle :", F)
97
- else:
98
- print("Not facing each other")
99
-
100
- pl = pv.Plotter()
101
- pl.add_mesh(rectangle, color="lightblue", opacity=0.7)
102
- pl.add_mesh(triangle, color="salmon", opacity=0.7)
103
-
104
- # compute and glyph normals for mesh1
105
- n1 = rectangle.compute_normals(cell_normals=True, point_normals=False)
106
- arrows1 = n1.glyph(orient="Normals", factor=0.1)
107
- pl.add_mesh(arrows1, color="blue")
108
- # similarly for mesh2
109
- n2 = triangle.compute_normals(cell_normals=True, point_normals=False)
110
- arrows2 = n2.glyph(orient="Normals", factor=0.1)
111
- pl.add_mesh(arrows2, color="darkred")
112
-
113
- pl.show()
114
- ```
115
-
116
- You usually get your geometry from a different format?
117
- (`*.dat`, `*.idf`, ...)
118
-
119
- Check pyvista's documentation on [how to generate a PolyData facet from points](https://docs.pyvista.org/examples/00-load/create-poly.html).
120
-
121
- ## Documentation
122
-
123
- For detailed explanations and advanced usage, see:
124
-
125
- https://arep-dev.gitlab.io/pyViewFactor/pyviewfactor.html
126
-
127
- The documentation includes:
128
- * Visibility and obstruction semantics,
129
- * Strict vs non-strict modes,
130
- * Geometry preprocessing utilities,
131
- * Numerical robustness guidelines,
132
- * Extended examples (that can also be found in the `examples/` folder of the repository).
133
-
134
-
135
- ## Citation & Acknowledgments
136
- * Main contributors:
137
- * Mateusz BOGDAN,
138
- * Edouard WALTHER.
139
- * Acknowledgment: The authors would like to acknowledge *M. Alecian* for his initial work on the quadrature
140
- code and *M. Chapon* for her contribution to the code validation.
141
-
142
- There is even a [conference paper](https://www.researchgate.net/publication/360835982_Calcul_des_facteurs_de_forme_entre_polygones_-Application_a_la_thermique_urbaine_et_aux_etudes_de_confort), showing analytical validations.
143
-
144
- So if you use `pyViewFactor` in your work, please cite:
145
- > [!IMPORTANT] Citation:
146
- > Mateusz BOGDAN, Edouard WALTHER, Marc ALECIAN and Mina CHAPON. *Calcul des facteurs de forme entre polygones - Application à la thermique urbaine et aux études de confort*. IBPSA France 2022, Châlons-en-Champagne.
147
-
148
- Bibtex entry:
149
- ``` latex
150
- @inproceedings{pyViewFactor22bogdan,
151
- authors = "Mateusz BOGDAN and Edouard WALTHER and Marc ALECIAN and Mina CHAPON",
152
- title = "Calcul des facteurs de forme entre polygones - Application à la thermique urbaine et aux études de confort",
153
- year = "2022",
154
- organization = "IBPSA France",
155
- venue = "Châlons-en-Champagne, France"
156
- note = "IBPSA France 2022",
157
- }
158
- ```
159
-
160
- ## License
161
- MIT License - Copyright (c) AREP 2025
1
+ <div align="center">
2
+ <img src="./docs/assets/logo_full.png" alt="pvf_logo" width="512px"/>
3
+ </div>
4
+
5
+
6
+ > `pyViewFactor` is a lightweight open-source Python library for exact view-factor computations on polygonal meshes.
7
+ > It provides robust tools for:
8
+ > - geometric visibility analysis,
9
+ > - obstruction detection,
10
+ > - accurate view factor computation.
11
+
12
+ *Full documentation available at [arep-dev.gitlab.io/pyViewFactor](https://arep-dev.gitlab.io/pyViewFactor/).*
13
+
14
+
15
+ <img src="https://gitlab.com/arep-dev/pyViewFactor/-/raw/3d40d1804eccbaefbc8b1736ff30d0d9f08141ad/img/FF_sceneUrbaine_cyl_RT.png" alt="Urban View Factor" width="800" />
16
+
17
+ [![Latest Release](https://gitlab.com/arep-dev/pyViewFactor/-/badges/release.svg)](https://gitlab.com/arep-dev/pyViewFactor/-/releases)
18
+ [![pipeline status](https://gitlab.com/arep-dev/pyViewFactor/badges/main/pipeline.svg)](https://gitlab.com/arep-dev/pyViewFactor/pipelines)
19
+ [![codecov](https://codecov.io/gl/arep-dev/pyViewFactor/graph/badge.svg?token=HPHU835UZ8)](https://codecov.io/gl/arep-dev/pyViewFactor)
20
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
21
+ [![Pypi Version](https://img.shields.io/pypi/v/pyviewfactor)](https://pypi.org/project/pyviewfactor/)
22
+ [![Pypi Downloads](https://img.shields.io/pypi/dm/pyviewfactor.svg?label=pypi%20downloads)](https://pypi.org/project/pyviewfactor/)
23
+ [![status](https://joss.theoj.org/papers/cc7d3aebf5e8ed25b343c6dd822f70b4/status.svg)](https://joss.theoj.org/papers/cc7d3aebf5e8ed25b343c6dd822f70b4)
24
+
25
+
26
+ ## Features
27
+
28
+ * This library enables the computation of radiation view factors between planar polygons using an **accurate** double‐contour integration method described in
29
+ [(Mazumder and Ravishankar 2012)](https://www.academia.edu/download/77459051/Viewfactor_paper_IJHMT.pdf)
30
+ with insights from [(Schmid 2016)](https://hal.archives-ouvertes.fr/tel-01734545/).
31
+ * It uses the handy [`Pyvista`](https://docs.pyvista.org/) package to deal with geometry imports (`*.stl`, `*.vtk`, `*.obj`, ...),
32
+ geometry creations, and some other mesh functionalities under the hood.
33
+ * It enables:
34
+ - 🔺 View factor computation between planar polygons via the **SA-30 semi-analytic kernel** — handles touching and coplanar faces analytically, no epsilon shift
35
+ - 👁️ Visibility checks based on face orientation
36
+ - 🚧 Obstruction detection using Möller–Trumbore ray-triangle intersection, **BVH-accelerated** (O(log N) per ray)
37
+ - ⚙️ Strict / non-strict modes for robustness control
38
+ - ⚡ Full N×N view-factor matrix with Numba `prange` parallelism (~33× faster than v1.0)
39
+ - 📦 Built on `numpy`, `scipy`, `pyvista`, `numba`
40
+
41
+
42
+
43
+ ## Installation
44
+ `pyViewFactor` can be installed from [PyPi](https://pypi.org/project/pyviewfactor/)
45
+ using `pip` on Python >= 3.10:
46
+ ```shell
47
+ pip install pyviewfactor
48
+ ```
49
+ You can also visit [PyPi](https://pypi.org/project/pyviewfactor/) or
50
+ [Gitlab](https://gitlab.com/arep-dev/pyViewFactor) to download the sources.
51
+
52
+ Requirements:
53
+ ```
54
+ numpy==1.26.4
55
+ pyvista==0.45
56
+ scipy==1.11.4
57
+ numba==0.61.2
58
+ tqdm==4.65.0
59
+
60
+ ```
61
+ The code will probably work with lower versions of the required packages, however this has not been tested.
62
+
63
+ > [!NOTE]
64
+ > `numba` is optional but strongly recommended. Without it, all kernels fall back to sequential pure-Python with identical results — no need to pin an older version.
65
+
66
+
67
+ ## Quick Start
68
+
69
+ Suppose we want to compute the radiation view factor between a triangle
70
+ and a rectangle facing each other:
71
+
72
+ <img src="https://gitlab.com/arep-dev/pyViewFactor/-/raw/9dbd31d124eb898cc5d17913cfc1f010116e2245/img/mwe.png" alt="Triangle and rectangle configuration" width="260"/>
73
+
74
+ You are few lines of code away from your first view factor computation:
75
+
76
+ ```python
77
+ import pyvista as pv
78
+ import pyviewfactor as pvf
79
+
80
+ # Create a rectangle and a triangle facing each other
81
+ pointa1 = [0.0, 0.0, 0.0]
82
+ pointb1 = [1.0, 0.0, 0.0]
83
+ pointc1 = [0.0, 1.0, 0.0]
84
+ rectangle = pv.Rectangle([pointa1, pointb1, pointc1])
85
+
86
+ pointa2 = [0.0, 0.0, 1.0]
87
+ pointb2 = [0.0, 1.0, 1.0]
88
+ pointc2 = [1.0, 1.0, 1.0]
89
+ triangle = pv.Triangle([pointa2, pointb2, pointc2])
90
+
91
+ if pvf.get_visibility(rectangle, triangle)[0]:
92
+ F = pvf.compute_viewfactor(triangle, rectangle)
93
+ print("VF from rectangle to triangle :", F)
94
+ else:
95
+ print("Not facing each other")
96
+
97
+ pl = pv.Plotter()
98
+ pl.add_mesh(rectangle, color="lightblue", opacity=0.7)
99
+ pl.add_mesh(triangle, color="salmon", opacity=0.7)
100
+
101
+ # compute and glyph normals for mesh1
102
+ n1 = rectangle.compute_normals(cell_normals=True, point_normals=False)
103
+ arrows1 = n1.glyph(orient="Normals", factor=0.1)
104
+ pl.add_mesh(arrows1, color="blue")
105
+ # similarly for mesh2
106
+ n2 = triangle.compute_normals(cell_normals=True, point_normals=False)
107
+ arrows2 = n2.glyph(orient="Normals", factor=0.1)
108
+ pl.add_mesh(arrows2, color="darkred")
109
+
110
+ pl.show()
111
+ ```
112
+
113
+ You want to import your own geometry from a different format?
114
+ (`*.dat`, `*.idf`, `*.stl`, ...)
115
+
116
+ Check pyvista's documentation on [how to generate a PolyData facet from points](https://docs.pyvista.org/examples/00-load/create-poly.html).
117
+
118
+ ## Documentation
119
+
120
+ For detailed explanations and advanced usage, see:
121
+
122
+ https://arep-dev.gitlab.io/pyViewFactor/
123
+
124
+ The documentation includes:
125
+ * Theory: view factor integral, SA-30 semi-analytic kernel, BVH obstruction engine,
126
+ * Implementation: architecture, visibility & obstruction semantics, performance guide,
127
+ * Extended examples with analytical validations.
128
+
129
+
130
+ ## Citation & Acknowledgments
131
+ * Main contributors:
132
+ * Mateusz BOGDAN,
133
+ * Edouard WALTHER.
134
+ * Acknowledgment: The authors would like to acknowledge *M. Alecian* for his initial work on the quadrature
135
+ code and *M. Chapon* for her contribution to the code validation.
136
+
137
+ There is even a [conference paper](https://www.researchgate.net/publication/360835982_Calcul_des_facteurs_de_forme_entre_polygones_-Application_a_la_thermique_urbaine_et_aux_etudes_de_confort), showing analytical validations.
138
+
139
+ So if you use `pyViewFactor` in your work, please cite:
140
+ > [!IMPORTANT] Citation:
141
+ > Mateusz BOGDAN, Edouard WALTHER, Marc ALECIAN and Mina CHAPON. *Calcul des facteurs de forme entre polygones - Application à la thermique urbaine et aux études de confort*. IBPSA France 2022, Châlons-en-Champagne.
142
+
143
+ Bibtex entry:
144
+ ``` latex
145
+ @inproceedings{pyViewFactor22bogdan,
146
+ author = "Mateusz BOGDAN and Edouard WALTHER and Marc ALECIAN and Mina CHAPON",
147
+ title = "Calcul des facteurs de forme entre polygones - Application à la thermique urbaine et aux études de confort",
148
+ year = "2022",
149
+ organization = "IBPSA France",
150
+ venue = "Châlons-en-Champagne, France"
151
+ note = "IBPSA France 2022",
152
+ }
153
+ ```
154
+
155
+ ## License
156
+ MIT License - 2026
@@ -1,43 +1,42 @@
1
- """
2
- .. include:: ../docs/index.md
3
- """
4
-
5
- from ._version import __version__
6
- from .pvf_geometry_preprocess import (
7
- ProcessedGeometry,
8
- FaceMeshPreprocessor,
9
- fc_unstruc2poly,
10
- face_to_array,
11
- polygon_area,
12
- polygon_centroid,
13
- face_normal_numpy,
14
- tri_overlaps_aabb
15
- )
16
- from .pvf_visibility_obstruction import (
17
- get_visibility,
18
- get_visibility_from_cache,
19
- get_obstruction,
20
- get_obstruction_from_cache,
21
- ray_intersects_triangle,
22
- is_ray_blocked
23
- )
24
-
25
- from .pvf_integrators import (
26
- set_quadrature_order,
27
- integrand_dblquad,
28
- compute_viewfactor_dblquad,
29
- integrand_gauss_legendre,
30
- compute_viewfactor_gauss_legendre
31
- )
32
-
33
- from .pvf_viewfactor_computations import (
34
- compute_viewfactor,
35
- batch_compute_viewfactors,
36
- compute_viewfactor_matrix
37
- )
38
-
39
- from .pvf_plot import (
40
- plot_viewfactor
41
- )
42
-
43
- # End of file
1
+ """
2
+ .. include:: ../docs/index.md
3
+ """
4
+
5
+ from ._version import __version__
6
+ from .pvf_geometry_preprocess import (
7
+ ProcessedGeometry,
8
+ FaceMeshPreprocessor,
9
+ fc_unstruc2poly,
10
+ face_to_array,
11
+ polygon_area,
12
+ polygon_centroid,
13
+ face_normal_numpy,
14
+ tri_overlaps_aabb
15
+ )
16
+ from .pvf_visibility_obstruction import (
17
+ get_visibility,
18
+ get_visibility_from_cache,
19
+ get_obstruction,
20
+ get_obstruction_from_cache,
21
+ ray_intersects_triangle,
22
+ is_ray_blocked
23
+ )
24
+
25
+ from .pvf_integrators import (
26
+ set_quadrature_order,
27
+ compute_viewfactor_dblquad,
28
+ compute_viewfactor_gauss_legendre,
29
+ compute_viewfactor_sa30,
30
+ )
31
+
32
+ from .pvf_viewfactor_computations import (
33
+ compute_viewfactor,
34
+ compute_viewfactor_matrix,
35
+ compute_viewfactor_matrix_fast,
36
+ )
37
+
38
+ from .pvf_plot import (
39
+ plot_viewfactor
40
+ )
41
+
42
+ # End of file
@@ -1,6 +1,6 @@
1
- """Version info for pyViewFactor"""
2
- version_info = 1, 0, 3
3
-
4
- # Nice string for the version
5
-
6
- __version__ = ".".join(map(str, version_info))
1
+ """Version info for pyViewFactor"""
2
+ version_info = 1, 1, 1
3
+
4
+ # Nice string for the version
5
+
6
+ __version__ = ".".join(map(str, version_info))