diff --git a/bioexplorer/backend/science/atlas/AtlasLoader.cpp b/bioexplorer/backend/science/atlas/AtlasLoader.cpp index 36aca492d..61e1267d9 100644 --- a/bioexplorer/backend/science/atlas/AtlasLoader.cpp +++ b/bioexplorer/backend/science/atlas/AtlasLoader.cpp @@ -86,7 +86,7 @@ ModelDescriptorPtr AtlasLoader::importFromStorage(const std::string& storage, co const auto position = props.getProperty>(LOADER_PROPERTY_POSITION.name); const Vector3d pos = core::Vector3d(position[0], position[1], position[2]); const auto rotation = props.getProperty>(LOADER_PROPERTY_ROTATION.name); - const Quaterniond rot = core::Quaterniond(rotation[0], rotation[1], rotation[2], rotation[3]); + const Quaterniond rot = core::Quaterniond(rotation[3], rotation[0], rotation[1], rotation[2]); const auto scale = props.getProperty>(LOADER_PROPERTY_SCALE.name); Atlas atlas(_scene, details, pos, rot, callback); return std::move(atlas.getModelDescriptor()); diff --git a/bioexplorer/backend/science/connectomics/whitematter/WhiteMatterLoader.cpp b/bioexplorer/backend/science/connectomics/whitematter/WhiteMatterLoader.cpp index 3b00df325..62b5546f3 100644 --- a/bioexplorer/backend/science/connectomics/whitematter/WhiteMatterLoader.cpp +++ b/bioexplorer/backend/science/connectomics/whitematter/WhiteMatterLoader.cpp @@ -84,7 +84,7 @@ ModelDescriptorPtr WhiteMatterLoader::importFromStorage(const std::string& stora const auto position = props.getProperty>(LOADER_PROPERTY_POSITION.name); const Vector3d pos = core::Vector3d(position[0], position[1], position[2]); const auto rotation = props.getProperty>(LOADER_PROPERTY_ROTATION.name); - const Quaterniond rot = core::Quaterniond(rotation[0], rotation[1], rotation[2], rotation[3]); + const Quaterniond rot = core::Quaterniond(rotation[3], rotation[0], rotation[1], rotation[2]); const auto scale = props.getProperty>(LOADER_PROPERTY_SCALE.name); WhiteMatter whiteMatter(_scene, details, pos, rot, callback); return std::move(whiteMatter.getModelDescriptor()); diff --git a/bioexplorer/backend/science/morphologies/AstrocytesLoader.cpp b/bioexplorer/backend/science/morphologies/AstrocytesLoader.cpp index 055c7cb7a..78365a29c 100644 --- a/bioexplorer/backend/science/morphologies/AstrocytesLoader.cpp +++ b/bioexplorer/backend/science/morphologies/AstrocytesLoader.cpp @@ -104,7 +104,7 @@ ModelDescriptorPtr AstrocytesLoader::importFromStorage(const std::string& storag const auto position = props.getProperty>(LOADER_PROPERTY_POSITION.name); const Vector3d pos = core::Vector3d(position[0], position[1], position[2]); const auto rotation = props.getProperty>(LOADER_PROPERTY_ROTATION.name); - const Quaterniond rot = core::Quaterniond(rotation[0], rotation[1], rotation[2], rotation[3]); + const Quaterniond rot = core::Quaterniond(rotation[3], rotation[0], rotation[1], rotation[2]); const auto scale = props.getProperty>(LOADER_PROPERTY_SCALE.name); details.scale = {scale[0], scale[1], scale[2]}; Astrocytes astrocytes(_scene, details, pos, rot, callback); diff --git a/bioexplorer/backend/science/morphologies/NeuronsLoader.cpp b/bioexplorer/backend/science/morphologies/NeuronsLoader.cpp index 784b0f8c1..50c16f8c4 100644 --- a/bioexplorer/backend/science/morphologies/NeuronsLoader.cpp +++ b/bioexplorer/backend/science/morphologies/NeuronsLoader.cpp @@ -106,7 +106,7 @@ ModelDescriptorPtr NeuronsLoader::importFromStorage(const std::string& storage, const auto position = props.getProperty>(LOADER_PROPERTY_POSITION.name); const Vector3d pos = core::Vector3d(position[0], position[1], position[2]); const auto rotation = props.getProperty>(LOADER_PROPERTY_ROTATION.name); - const Quaterniond rot = core::Quaterniond(rotation[0], rotation[1], rotation[2], rotation[3]); + const Quaterniond rot = core::Quaterniond(rotation[3], rotation[0], rotation[1], rotation[2]); const auto scale = props.getProperty>(LOADER_PROPERTY_SCALE.name); details.scale = {scale[0], scale[1], scale[2]}; Neurons Neurons(_scene, details, pos, rot, callback); diff --git a/bioexplorer/backend/science/vasculature/VasculatureLoader.cpp b/bioexplorer/backend/science/vasculature/VasculatureLoader.cpp index 3dc2a1ece..74f0b9ef6 100644 --- a/bioexplorer/backend/science/vasculature/VasculatureLoader.cpp +++ b/bioexplorer/backend/science/vasculature/VasculatureLoader.cpp @@ -96,7 +96,7 @@ ModelDescriptorPtr VasculatureLoader::importFromStorage(const std::string& stora const auto position = props.getProperty>(LOADER_PROPERTY_POSITION.name); const Vector3d pos = core::Vector3d(position[0], position[1], position[2]); const auto rotation = props.getProperty>(LOADER_PROPERTY_ROTATION.name); - const Quaterniond rot = core::Quaterniond(rotation[0], rotation[1], rotation[2], rotation[3]); + const Quaterniond rot = core::Quaterniond(rotation[3], rotation[0], rotation[1], rotation[2]); const auto scale = props.getProperty>(LOADER_PROPERTY_SCALE.name); details.scale = {scale[0], scale[1], scale[2]}; Vasculature vasculature(_scene, details, pos, rot, callback);