| 1 |
+++ |
| 2 |
title = "Icosahedron" |
| 3 |
+++ |
| 4 |
|
| 5 |
### Icosahedron |
| 6 |
|
| 7 |
A regular icosahedron. |
| 8 |
|
| 9 |
|
| 10 |
<img src="/img/draw/ff/3d/Icosahedron.png" width="30%"> |
| 11 |
<img src="/img/draw/ff/2d/Icosahedron_xy.svg" width="30%"> |
| 12 |
<img src="/img/draw/ff/2d/Icosahedron_xz.svg" width="30%"> |
| 13 |
|
| 14 |
#### Constructor |
| 15 |
|
| 16 |
```python |
| 17 |
Icosahedron(a) |
| 18 |
``` |
| 19 |
|
| 20 |
Parameters: |
| 21 |
- a, length of the edge |
| 22 |
|
| 23 |
#### Usage |
| 24 |
|
| 25 |
As for any other [Form factor](/ref/sample/particle/ff). |
| 26 |
|
| 27 |
#### Implementation |
| 28 |
|
| 29 |
Class [Icosahedron]({{% url-src %}}/Sample/HardParticle/Polyhedra.h) inherits from the interface class |
| 30 |
{{% ref-class "Sample/Particle" "Formfactor" %}}. |
| 31 |
|
| 32 |
Form factor computation is based on the generic form factor of a polyhedron with inversion symmetry provided by {{% link-libformfactor %}}. |
| 33 |
|
| 34 |
Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) |
| 35 |
against |
| 36 |
$$ V= \dfrac{5}{12}(3+\sqrt{5})a^3 \approx 2.182 \space a^3. $$ |
| 37 |
|
| 38 |
#### Related shapes |
| 39 |
|
| 40 |
- [Dodecahedron](/ref/sample/particle/ff/hard/dodecahedron), a regular dodecahedron. |
| 41 |
|
| 42 |
#### Example |
| 43 |
|
| 44 |
Scattering by uncorrelated, oriented truncated icosahedra for horizontal incidence: |
| 45 |
|
| 46 |
<img src="/img/auto/ff/Icosahedron.png"> |
| 47 |
|
| 48 |
Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Icosahedron`). |
| 49 |
|
| 50 |
#### History |
| 51 |
|
| 52 |
Introduced in BornAgain 1.6. |