mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Make new vertex creation more robust
* Require that the length of the new segment is shorter than the *current* distance to the end of the original segment, rather than the length of the complete original segment.
This commit is contained in:
@@ -422,7 +422,7 @@ void Riv3dWellLogCurveGeometryGenerator::createNewVerticesAlongSegment(const cvf
|
||||
|
||||
cvf::Vec3f newVertex = connectingLine.end();
|
||||
cvf::Vec3f newSegmentVector = newVertex - extraVertices->back();
|
||||
if (withinSegments && newSegmentVector.lengthSquared() < fullSegmentVector.lengthSquared())
|
||||
if (withinSegments && newSegmentVector.lengthSquared() < currentSubSegment.lengthSquared())
|
||||
{
|
||||
extraVertices->push_back(newVertex);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user