Closed GoogleCodeExporter closed 8 years ago
Thats what I get for quick fixing.
Sorry for the inconvenience.
Do this change to method:
private static void FinalizationConvexHull( DTSweepContext tcx )
Change line:
TurnAdvancingFrontConvex( tcx, n2, n3 );
To:
TurnAdvancingFrontConvex( tcx, n1, n2 );
Change previous patch to:
n1 = tcx.Front.Tail.Prev;
if( n1.Triangle.Contains( n1.Next.Point ) && n1.Triangle.Contains( n1.Prev.Point ) )
{
t1 = n1.Triangle.neighborAcross( n1.Point );
RotateTrianglePair( n1.Triangle, n1.Point, t1, t1.OppositePoint( n1.Triangle, n1.Point ) );
tcx.MapTriangleToNodes( n1.Triangle );
tcx.MapTriangleToNodes( t1 );
}
n1 = tcx.Front.Head.Next;
if( n1.Triangle.Contains( n1.Prev.Point ) && n1.Triangle.Contains( n1.Next.Point ) )
{
t1 = n1.Triangle.NeighborAcross( n1.Point );
RotateTrianglePair( n1.Triangle, n1.Point, t1, t1.OppositePoint( n1.Triangle, n1.Point ) );
tcx.MapTriangleToNodes( n1.Triangle );
tcx.MapTriangleToNodes( t1 );
}
Original comment by thahlen@gmail.com
on 21 Aug 2010 at 2:25
Original issue reported on code.google.com by
de...@primethought.biz
on 21 Aug 2010 at 12:54