#1149 - pre-proto - rotating fracture geometry 90 deg (0 azimuth means fracture oriented North-South)

This commit is contained in:
astridkbjorke
2017-02-02 10:02:27 +01:00
parent d7e980887a
commit 1243ae6cd1

View File

@@ -247,8 +247,7 @@ cvf::Mat4f RimFracture::transformMatrix()
// Azimuth rotation
cvf::Mat4f azimuthRotation = cvf::Mat4f::fromRotation(cvf::Vec3f::Z_AXIS, cvf::Math::toRadians(-azimuth()));
//TODO: Adjust angle with 90 deg
cvf::Mat4f azimuthRotation = cvf::Mat4f::fromRotation(cvf::Vec3f::Z_AXIS, cvf::Math::toRadians(-azimuth()-90));
cvf::Mat4f m = azimuthRotation * rotationFromTesselator;
m.setTranslation(cvf::Vec3f(center));