Skip to content

Commit

Permalink
fixed more trolling
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasrau committed Sep 9, 2019
1 parent c5ccbab commit 9d96246
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions plugins/mmstd_moldyn/src/rendering/SphereRenderer.cpp
Expand Up @@ -791,17 +791,13 @@ MultiParticleDataCall *SphereRenderer::getData(unsigned int t, float& outScaling
return nullptr;
}
void SphereRenderer::getClipData(glm::vec4& out_clipDat, glm::vec4& out_clipCol) {

view::CallClipPlane *ccp = this->getClipPlaneSlot.CallAs<view::CallClipPlane>();
if ((ccp != nullptr) && (*ccp)()) {
out_clipDat[0] = ccp->GetPlane().Normal().X();
out_clipDat[1] = ccp->GetPlane().Normal().Y();
out_clipDat[2] = ccp->GetPlane().Normal().Z();

=======
void moldyn::SphereRenderer::getClipData(float outClipDat[4], float outClipCol[4]) {
view::CallClipPlane* ccp = this->getClipPlaneSlot.CallAs<view::CallClipPlane>();
if ((ccp != NULL) && (*ccp)()) {
outClipDat[0] = ccp->GetPlane().Normal().X();
outClipDat[1] = ccp->GetPlane().Normal().Y();
outClipDat[2] = ccp->GetPlane().Normal().Z();
>>>>>>> master:core/src/moldyn/SphereRenderer.cpp
vislib::math::Vector<float, 3> grr(ccp->GetPlane().Point().PeekCoordinates());
out_clipDat[3] = grr.Dot(ccp->GetPlane().Normal());

Expand Down

0 comments on commit 9d96246

Please sign in to comment.