Skip to content

Commit

Permalink
Twisted tube: twisted angle unit conversion now works properly
Browse files Browse the repository at this point in the history
  • Loading branch information
atolosadelgado authored and MarkusFrankATcernch committed Feb 12, 2024
1 parent ade128c commit 9e03e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DDCore/src/Shapes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ void EllipticalTube::make(const std::string& nam, double a, double b, double dz)
/// Internal helper method to support TwistedTube object construction
void TwistedTube::make(const std::string& nam, double twist_angle, double rmin, double rmax,
double zneg, double zpos, int nsegments, double totphi) {
_assign(new TwistedTubeObject(nam.c_str(), twist_angle, rmin, rmax, zneg, zpos, nsegments, totphi/units::deg),
_assign(new TwistedTubeObject(nam.c_str(), twist_angle/units::deg, rmin, rmax, zneg, zpos, nsegments, totphi/units::deg),
"", TWISTEDTUBE_TAG, true);
}

Expand Down

0 comments on commit 9e03e71

Please sign in to comment.