jzy3d-api
jzy3d-api copied to clipboard
possible bug in DelaunayTriangulation::calcVoronoiCell
SonarQube found this while I was converting this to Kotlin:
if (!halfplane.abTriangle!!.isHalfplane) {
neighbor = halfplane.abTriangle
} else if (!halfplane.bcTriangle!!.isHalfplane) {
neighbor = halfplane.bcTriangle
} else if (!halfplane.bcTriangle!!.isHalfplane) {
neighbor = halfplane.caTriangle
}
That second else probably should compare the caTriangle in the if statement...