Skip to content

Commit 3e88817

Browse files
gassmoellerArushi
authored andcommitted
Introduce rounded corners to fault
1 parent 5455cc4 commit 3e88817

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

source/utilities.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ namespace WorldBuilder
551551
// If fraction_CPL_P1P2_strict_temp is between 0 and 1 it means that the point can be projected perpendicual to the line segment. For the non-contiuous case we only conder points which are
552552
// perpendicular to a line segment.
553553
// There can be mutliple lines segment to which a point is perpundicual. Choose the point which is closed in 2D (x-y).
554-
if (fraction_CPL_P1P2_strict_temp >= 0. && fraction_CPL_P1P2_strict_temp <= 1. && fabs(min_distance_check_point_surface_2d_line_temp) < fabs(min_distance_check_point_surface_2d_line))
554+
if (fraction_CPL_P1P2_strict_temp >= -1. && fraction_CPL_P1P2_strict_temp <= 2. && fabs(min_distance_check_point_surface_2d_line_temp) < fabs(min_distance_check_point_surface_2d_line))
555555
{
556556
min_distance_check_point_surface_2d_line = min_distance_check_point_surface_2d_line_temp;
557557
i_section_min_distance = i_section;

0 commit comments

Comments
 (0)