Debian Codegraph @

hugo/content/ref/sample/particle/ff/hard/cantellatedcube.md

raw
1 +++
2 title = "CantellatedCube"
3 +++
4
5 ### CantellatedCube
6
7 A cube with truncated edges and vertices as in Fig 7 of [Croset, J Appl Cryst 50, 1245 (2017)](https://doi.org/10.1107/S1600576717010147). Can also be obtained by cantellating an octahedron. Also known as [Rhombicuboctahedron](https://en.wikipedia.org/wiki/Rhombicuboctahedron).
8
9 <img src="/img/draw/ff/3d/CantellatedCube.png" width="30%" >
10 <img src="/img/draw/ff/2d/CantellatedCube_xy.svg" width="30%">
11 <img src="/img/draw/ff/2d/CantellatedCube_xz.svg" width="30%">
12
13 #### Constructor
14
15 ```python
16 CantellatedCube(L, t)
17 ```
18
19 Parameters:
20 - L, length of the full cube
21 - t, side length of the birectangular prisms removed from the cube’s edges
22
23 Constraint:
24
25 $ t \le L/2 $
26
27 #### Usage
28
29 As for any other [Form factor](/ref/sample/particle/ff).
30
31 #### Implementation
32
33 Class [CantellatedCube]({{% url-src %}}/Sample/HardParticle/Polyhedra.h) inherits from the interface class
34 {{% ref-class "Sample/Particle" "Formfactor" %}}.
35
36 Form factor computation is based on the generic form factor of a polyhedron with inversion symmetry provided by {{% link-libformfactor %}}.
37
38 Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp)
39 against
40 $$ V= L^3 - 6Lt^2 + \dfrac{16}{3} t^3. $$
41
42 #### Related shapes
43
44 - [Box](/ref/sample/particle/ff/hard/box), a rectangular cuboid.
45 - [TruncatedCube](/ref/sample/particle/ff/hard/truncatedcube), if truncated vertices only.
46
47 Scattering by uncorrelated, oriented cantellated cubes for horizontal incidence. Rotation around $z$ axis:
48
49 <img src="/img/auto/ff/CantellatedCube.png">
50
51 Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=CantellatedCube`).
52
53 #### History
54
55 Introduced in BornAgain 1.17 (Python only). Motivated by [Croset, J Appl Cryst 50, 1245 (2017)](https://doi.org/10.1107/S1600576717010147).