tudelft3d / pprepair

Validation and Automatic Repair of Planar Partitions
GNU General Public License v3.0
57 stars 22 forks source link

In case of ties in the "r -LB" , RN choice should only be between the LB neighbors, not all neighbors #37

Open lucasmation opened 8 years ago

lucasmation commented 8 years ago

As discussion in issue #36 indicates, the -r LB (longest border) criteria will handle ties by assining the problematic area to a RN (random neighbor). However this random choice occurs among all neighbors, including the ones that have the smaller borders.

In case of ties in "r -LB" criteria, -RN should choose only among the neighbors that have the longest border.

(and please make sure this change trickes down to pprepair-new, or any version that runs on linux)