mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#1144 - pre-proto - Updating azimuth angles for fractures for connected fractures with this angle when angle is update in template.
This commit is contained in:
@@ -245,8 +245,10 @@ cvf::Mat4f RimFracture::transformMatrix()
|
||||
// Ellipsis geometry is produced in XY-plane, rotate 90 deg around X to get zero azimuth along Y
|
||||
cvf::Mat4f rotationFromTesselator = cvf::Mat4f::fromRotation(cvf::Vec3f::X_AXIS, cvf::Math::toRadians(90.0f));
|
||||
|
||||
|
||||
// Azimuth rotation
|
||||
cvf::Mat4f azimuthRotation = cvf::Mat4f::fromRotation(cvf::Vec3f::Z_AXIS, cvf::Math::toRadians(-azimuth()));
|
||||
//TODO: Adjust angle with 90 deg
|
||||
|
||||
cvf::Mat4f m = azimuthRotation * rotationFromTesselator;
|
||||
m.setTranslation(cvf::Vec3f(center));
|
||||
|
||||
Reference in New Issue
Block a user