Skip to content

Commit

Permalink
Merge pull request #368 from favreau/master
Browse files Browse the repository at this point in the history
Fixed orientation representation of morphologies
  • Loading branch information
favreau authored May 10, 2024
2 parents e63c457 + 4240487 commit a94f09e
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions bioexplorer/backend/science/morphologies/Neurons.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit a94f09e

Please sign in to comment.