Skip to content
Snippets Groups Projects
Commit c25e27a9 authored by Joseph Boudreau's avatar Joseph Boudreau
Browse files

Merge branch 'fixGenericTrapVis' into 'main'

fix the visualization of the Evgueni EMEC

See merge request !272
parents 4d163c06 5b269366
No related branches found
No related tags found
1 merge request!272fix the visualization of the Evgueni EMEC
Pipeline #6817909 passed with warnings
......@@ -274,13 +274,13 @@ void SoVisualizeAction::handleGenericTrap(const GeoGenericTrap *gentrap)
SoGenericBox * gb = new SoGenericBox;
const GeoGenericTrapVertices& trapVertices = gentrap->getVertices();
double dZ = gentrap->getZHalfLength();
gb->setGenericParameters(trapVertices[0].x(),trapVertices[0].y(),-dZ,
trapVertices[1].x(),trapVertices[1].y(),-dZ,
trapVertices[2].x(),trapVertices[2].y(),-dZ,
trapVertices[3].x(),trapVertices[3].y(),-dZ,
trapVertices[4].x(),trapVertices[4].y(),dZ,
trapVertices[5].x(),trapVertices[5].y(),dZ,
trapVertices[6].x(),trapVertices[6].y(),dZ,
trapVertices[7].x(),trapVertices[7].y(),dZ);
gb->setGenericParameters(trapVertices[7].x(),trapVertices[7].y(),-dZ,
trapVertices[6].x(),trapVertices[6].y(),-dZ,
trapVertices[5].x(),trapVertices[5].y(),-dZ,
trapVertices[4].x(),trapVertices[4].y(),-dZ,
trapVertices[3].x(),trapVertices[3].y(),dZ,
trapVertices[2].x(),trapVertices[2].y(),dZ,
trapVertices[1].x(),trapVertices[1].y(),dZ,
trapVertices[0].x(),trapVertices[0].y(),dZ);
m_shape=gb;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment