+++ title = "TruncatedCube" +++ ### TruncatedCube A cube whose eight vertices have been removed. The truncated part of each vertex is a trirectangular tetrahedron. #### Constructor ```python TruncatedCube(L, t) ``` Parameters: - L, length of the full cube - t, side length of the trirectangular tetrahedron removed from the cube’s vertices Constraint: $ t \le L/2 $ #### Usage As for any other [Form factor](/ref/sample/particle/ff). #### Implementation Class [TruncatedCube]({{% url-src %}}/Sample/HardParticle/Polyhedra.h) inherits from the interface class {{% ref-class "Sample/Particle" "Formfactor" %}}. Form factor computation is based on the generic form factor of a polyhedron provided by {{% link-libformfactor %}}. Volume [has been validated]({{% url-src %}}/Tests/Unit/Sample/FormfactorBasicTest.cpp) against $$ V= L^3 - \dfrac{4}{3} t^3. $$ #### Related shapes - [Box](/ref/sample/particle/ff/hard/box), a rectangular cuboid. - [CantellatedCube](/ref/sample/particle/ff/hard/cantellatedcube), if truncated edges and vertices. #### Example Scattering by uncorrelated, oriented truncated cubes for horizontal incidence. Rotation around $z$ axis: Generated by {{% ref-ex "sas/sas-ff.py" %}} (`particle_geometry=TruncatedCube`). #### History Reimplemented in BornAgain 1.6 using the generic polyhedron form factor [Wuttke, J Appl Cryst 54, 580 (2021)](https://doi.org/10.1107/S1600576721001710). Motivated by [Croset, J Appl Cryst 50, 1245 (2017)](https://doi.org/10.1107/S1600576717010147).