mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
This commit is contained in:
committed by
GitHub
parent
86ea679871
commit
fda4d1d608
@@ -204,13 +204,15 @@ void RivExtrudedCurveIntersectionGeometryGenerator::calculateSurfaceIntersection
|
|||||||
|
|
||||||
cvf::Vec3d intersectionPoint;
|
cvf::Vec3d intersectionPoint;
|
||||||
bool foundMatch = RigSurfaceResampler::resamplePoint( surface, pointAbove, pointBelow, intersectionPoint );
|
bool foundMatch = RigSurfaceResampler::resamplePoint( surface, pointAbove, pointBelow, intersectionPoint );
|
||||||
if ( !foundMatch )
|
if ( foundMatch )
|
||||||
intersectionPoint = cvf::Vec3d( point.x(), point.y(), std::numeric_limits<double>::infinity() );
|
{
|
||||||
|
|
||||||
const size_t lineIndex = 0;
|
const size_t lineIndex = 0;
|
||||||
transformedSurfacePolyline.push_back(
|
transformedSurfacePolyline.push_back(
|
||||||
transformPointByPolylineSegmentIndex( intersectionPoint, lineIndex, segmentIndex ) );
|
transformPointByPolylineSegmentIndex( intersectionPoint, lineIndex, segmentIndex ) );
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if ( !transformedSurfacePolyline.empty() )
|
||||||
m_transformedSurfaceIntersectionPolylines[rimSurface] = transformedSurfacePolyline;
|
m_transformedSurfaceIntersectionPolylines[rimSurface] = transformedSurfacePolyline;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user