Skip to content
Snippets Groups Projects
Commit 8e86e6ce authored by Andrea Dell'Acqua's avatar Andrea Dell'Acqua
Browse files

fix bug in the GDML trdHandler, where dimensions must be divided by 2

parent 25cc08d4
No related branches found
No related tags found
1 merge request!183fix bug in the GDML trdHandler, where dimensions must be divided by 2
......@@ -24,6 +24,6 @@ void trdHandler::ElementHandle()
double y2=getAttributeAsDouble("y2");
double z=getAttributeAsDouble("z");
GeoShape* trd=new GeoTrd(lunit*x1,lunit*x2,lunit*y1,lunit*y2,lunit*z);
GeoShape* trd=new GeoTrd(lunit*x1/2.,lunit*x2/2.,lunit*y1/2.,lunit*y2/2.,lunit*z/2.);
theController->saveSolid(name,trd);
}
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