mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Thermal Fracture: rotate and place fracture according to template data.
This commit is contained in:
@@ -543,6 +543,22 @@ double RimFracture::tilt() const
|
||||
return m_tilt();
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFracture::setTilt( double tilt )
|
||||
{
|
||||
m_tilt = tilt;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
void RimFracture::setAzimuth( double azimuth )
|
||||
{
|
||||
m_azimuth = azimuth;
|
||||
}
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
|
||||
@@ -97,7 +97,11 @@ public:
|
||||
cvf::Mat4d transformMatrix() const;
|
||||
void setDip( double dip );
|
||||
double dip() const;
|
||||
double tilt() const;
|
||||
|
||||
void setTilt( double tilt );
|
||||
double tilt() const;
|
||||
|
||||
void setAzimuth( double azimuth );
|
||||
|
||||
void setFractureTemplateNoUpdate( RimFractureTemplate* fractureTemplate );
|
||||
void setFractureTemplate( RimFractureTemplate* fractureTemplate );
|
||||
|
||||
@@ -695,13 +695,12 @@ QString RimThermalFractureTemplate::wellPathDepthAtFractureUiName() const
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
std::pair<cvf::Vec3d, cvf::Vec3d> RimThermalFractureTemplate::computePositionAndRotation() const
|
||||
{
|
||||
cvf::Vec3d centerPosition = cvf::Vec3d::UNDEFINED;
|
||||
cvf::Vec3d rotation = cvf::Vec3d::UNDEFINED;
|
||||
|
||||
if ( m_fractureDefinitionData )
|
||||
{
|
||||
centerPosition = m_fractureDefinitionData->centerPosition();
|
||||
return RigThermalFractureResultUtil::computePositionAndRotation( m_fractureDefinitionData, m_activeTimeStepIndex );
|
||||
}
|
||||
|
||||
cvf::Vec3d centerPosition = cvf::Vec3d::UNDEFINED;
|
||||
cvf::Vec3d rotation = cvf::Vec3d::UNDEFINED;
|
||||
return std::make_pair( centerPosition, rotation );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user