From 6a5e8eae8353408f7650970336064495222f6e9c Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (o)" <j.wuttke@fz-juelich.de> Date: Mon, 28 Nov 2022 14:58:51 +0100 Subject: [PATCH] use new fcts ff::Prism::radius and volume --- Sample/HardParticle/IFormFactorPrism.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Sample/HardParticle/IFormFactorPrism.cpp b/Sample/HardParticle/IFormFactorPrism.cpp index ca40d6a03f7..2cc6ee0da90 100644 --- a/Sample/HardParticle/IFormFactorPrism.cpp +++ b/Sample/HardParticle/IFormFactorPrism.cpp @@ -51,13 +51,13 @@ double IFormFactorPrism::topZ(const IRotation* rotation) const double IFormFactorPrism::volume() const { ASSERT(m_validated); - return height() * pimpl->area(); + return pimpl->volume(); } double IFormFactorPrism::radialExtension() const { ASSERT(m_validated); - return std::sqrt(pimpl->area()); + return pimpl->radius(); } //! Returns the form factor F(q) of this polyhedron, respecting the offset height/2. -- GitLab