Skip to content
Snippets Groups Projects
Commit 1a2e6c6c authored by Van Herck, Walter's avatar Van Herck, Walter
Browse files

Mesocrystal: take rotations correctly into account (for outer shape)

parent 565157e5
No related branches found
No related tags found
No related merge requests found
...@@ -84,18 +84,11 @@ const IMaterial *MesoCrystal::getAmbientMaterial() const ...@@ -84,18 +84,11 @@ const IMaterial *MesoCrystal::getAmbientMaterial() const
IFormFactor* MesoCrystal::createFormFactor( IFormFactor* MesoCrystal::createFormFactor(
complex_t wavevector_scattering_factor) const complex_t wavevector_scattering_factor) const
{ {
IFormFactor *p_result;
boost::scoped_ptr<IFormFactor> P_simple_ff(mp_particle_structure->createTotalFormFactor( boost::scoped_ptr<IFormFactor> P_simple_ff(mp_particle_structure->createTotalFormFactor(
*mp_meso_form_factor, *getAmbientMaterial(), wavevector_scattering_factor) ); *mp_meso_form_factor, *getAmbientMaterial(), wavevector_scattering_factor) );
if (m_position != kvector_t()) { return createTransformedFormFactor(*P_simple_ff);
p_result = new FormFactorDecoratorPositionFactor(*P_simple_ff, m_position);
} else {
p_result = P_simple_ff->clone();
}
return p_result;
} }
void MesoCrystal::applyTransformationToSubParticles(const IRotation& rotation) void MesoCrystal::applyTransformationToSubParticles(const IRotation&)
{ {
mp_particle_structure->applyRotation(rotation);
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment