From 42404878b0576559280dc92445dfccb7e80303bd Mon Sep 17 00:00:00 2001 From: Cyrille Pierre Henri Favreau Date: Wed, 8 May 2024 16:08:25 +0200 Subject: [PATCH] Fixed orientation representation of morphologies --- bioexplorer/backend/science/morphologies/Neurons.cpp | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/bioexplorer/backend/science/morphologies/Neurons.cpp b/bioexplorer/backend/science/morphologies/Neurons.cpp index eaec58ba3..22640e7f5 100644 --- a/bioexplorer/backend/science/morphologies/Neurons.cpp +++ b/bioexplorer/backend/science/morphologies/Neurons.cpp @@ -416,7 +416,7 @@ void Neurons::_buildOrientations(ThreadSafeContainer& container, const NeuronSom const auto baseMaterialId = _details.populationColorScheme == PopulationColorScheme::id ? i * NB_MATERIALS_PER_MORPHOLOGY : 0; _addArrow(container, soma.first, soma.second.position, soma.second.rotation, Vector4d(0, 0, 0, radius * 0.2), - Vector4d(radius, 0, 0, radius * 0.2), NeuronSectionType::soma, baseMaterialId, 0.0); + Vector4d(0, radius, 0, radius * 0.2), NeuronSectionType::soma, baseMaterialId, 0.0); ++i; } } @@ -759,13 +759,6 @@ void Neurons::_addArrow(ThreadSafeContainer& container, const uint64_t neuronId, auto src = _animatedPosition(Vector4d(somaPosition + somaRotation * Vector3d(srcNode), srcNode.w), neuronId); auto dst = _animatedPosition(Vector4d(somaPosition + somaRotation * Vector3d(dstNode), dstNode.w), neuronId); - if (sectionType != NeuronSectionType::axon) - { - auto tmp = src; - src = dst; - dst = tmp; - } - const auto userData = neuronId; auto direction = dst - src; const auto maxRadius = _details.radiusMultiplier < 0 ? -_details.radiusMultiplier : std::max(srcNode.w, dstNode.w);