mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1149 - pre-proto - rotating fracture geometry 90 deg (0 azimuth means fracture oriented North-South)
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user