Skip to content

Commit

Permalink
Merge pull request #301 from favreau/master
Browse files Browse the repository at this point in the history
Fixed grid plane orientation
  • Loading branch information
favreau authored Sep 11, 2023
2 parents d0d870c + b52a846 commit 26bf8ed
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions bioexplorer/backend/science/BioExplorerPlugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1124,8 +1124,8 @@ Response BioExplorerPlugin::_addGrid(const AddGridDetails &payload)
tmx.vertices.push_back(position + Vector3d(M, 0, m));
tmx.vertices.push_back(position + Vector3d(M, 0, M));
tmx.vertices.push_back(position + Vector3d(m, 0, M));
tmx.indices.push_back(Vector3ui(0, 1, 2));
tmx.indices.push_back(Vector3ui(2, 3, 0));
tmx.indices.push_back(Vector3ui(0, 2, 1));
tmx.indices.push_back(Vector3ui(3, 2, 0));

material = model->createMaterial(2, "plane_y");
material->setDiffuseColor(payload.useColors ? green : grey);
Expand All @@ -1148,8 +1148,8 @@ Response BioExplorerPlugin::_addGrid(const AddGridDetails &payload)
tmz.vertices.push_back(position + Vector3d(0, m, M));
tmz.vertices.push_back(position + Vector3d(0, M, M));
tmz.vertices.push_back(position + Vector3d(0, M, m));
tmz.indices.push_back(Vector3ui(0, 1, 2));
tmz.indices.push_back(Vector3ui(2, 3, 0));
tmz.indices.push_back(Vector3ui(0, 2, 1));
tmz.indices.push_back(Vector3ui(3, 2, 0));
}

// Axis
Expand Down

0 comments on commit 26bf8ed

Please sign in to comment.