+++
title = "Prism3"
+++
### Prism3
A prism based on equlateral triangle.
#### Constructor
```python
Prism3(L, H)
```
Parameters:
- L, edge length of the trigonal base
- H, height
#### Usage
As for any other [Form factor](/ref/sample/particle/ff).
#### Implementation
Class [Prism3]({{% url-src %}}/Sample/HardParticle/Polyhedra.h) inherits from the interface class
{{% ref-class "Sample/Particle" "Formfactor" %}}.
Form factor is computed as
$$ F(\mathbf{q})=H \space \exp\Big(iq_z\dfrac{H}{2}\Big) \space \text{sinc}\Big(q_z\dfrac{H}{2}\Big) \space F_{||}(\mathbf{q}_{||}) $$
where the form factor $F_{||}(\mathbf{q}_{||}) $ computation is based on the generic form factor of a planar polygon provided by {{% link-libformfactor %}}.
Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp)
against
$$ V=\dfrac{\sqrt3}{4}HL^2. $$
#### Related shapes
More general:
- [Pyramid3](/ref/sample/particle/ff/hard/pyramid3), if sides are not vertical.
#### Example
Scattering by uncorrelated, oriented prisms for horizontal incidence. Rotation around $z$ axis:
Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=Prism3`).
#### History
Has been validated against the "Prism3" form factor of IsGISAXS [Lazzari, IsGISAXS manual v2.6 (2006)](http://www.insp.upmc.fr/oxydes/IsGISAXS/figures/doc/manual.html), Eq. 2.28 and "Prism with three fold symmetry" [Renaud et al, Surf Sci Rep 64, 255 (2009)](https://doi.org/10.1016/j.surfrep.2009.07.002), Eq. 219. Note the different parametrization $L = 2R_{IsGISXAXS}$. In FitGISAXS [Babonneau, FitGISAXS v130531 (2013)](https://pprime.fr/wp-content/uploads/2020/01/FitGISAXS_130531.zip) just called "Prism". In BornAgain 1.6, redefined to let the $x$ axis point along a symmetry axis (rotated by $30^{\circ}$ with respect to the previous version).
Reimplemented in BornAgain 1.6 using the generic form factor of a polygonal prism [Wuttke, J Appl Cryst 54, 580 (2021)](https://doi.org/10.1107/S1600576721001710) to achieve numerical stability near the removable singularity at $q \to 0$.