mirror of
https://github.com/jhasse/poly2tri.git
synced 2024-11-26 15:26:12 +01:00
bug fixes
This commit is contained in:
parent
c909954b2f
commit
f4bacf8cf6
@ -138,7 +138,7 @@ class CDT(val points: List[Point], val segments: List[Segment], iTriangle: Trian
|
|||||||
//System exit 0
|
//System exit 0
|
||||||
}
|
}
|
||||||
// Process edge events
|
// Process edge events
|
||||||
//point.edges.foreach(e => edgeEvent(e, triangle))
|
point.edges.foreach(e => edgeEvent(e, triangle))
|
||||||
//if(i == 10) {cTri = triangle; mesh.debug += cTri}
|
//if(i == 10) {cTri = triangle; mesh.debug += cTri}
|
||||||
}
|
}
|
||||||
//mesh clean cTri
|
//mesh clean cTri
|
||||||
|
@ -54,7 +54,7 @@ class Triangle(val points: Array[Point], val neighbors: Array[Triangle]) {
|
|||||||
neighbors(2) = triangle
|
neighbors(2) = triangle
|
||||||
else {
|
else {
|
||||||
debug += triangle
|
debug += triangle
|
||||||
throw new Exception("Neighbor update error")
|
throw new Exception("Neighbor pointer error, please report!")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user