|
|
|
@ -1614,6 +1614,8 @@ void NLPACS::CZoneTessellation::generateBorders(float smooth)
|
|
|
|
|
sint lsurf = cborder.Left;
|
|
|
|
|
sint rsurf = cborder.Right;
|
|
|
|
|
|
|
|
|
|
if (CheckConsistency)
|
|
|
|
|
{
|
|
|
|
|
if (lsurf >= 0)
|
|
|
|
|
{
|
|
|
|
|
CComputableSurface& surf = Surfaces[lsurf];
|
|
|
|
@ -1622,7 +1624,6 @@ void NLPACS::CZoneTessellation::generateBorders(float smooth)
|
|
|
|
|
nlwarning("Before smooth of border '%d', surface '%d' not consistent", border, lsurf);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rsurf >= 0)
|
|
|
|
|
{
|
|
|
|
|
CComputableSurface& surf = Surfaces[rsurf];
|
|
|
|
@ -1631,6 +1632,7 @@ void NLPACS::CZoneTessellation::generateBorders(float smooth)
|
|
|
|
|
nlwarning("Before smooth of border '%d', surface '%d' not consistent", border, rsurf);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
float smScale = (Borders[border].Right < 0) ? 0.2f : 1.0f;
|
|
|
|
|
uint before = (uint)Borders[border].Vertices.size();
|
|
|
|
@ -1643,6 +1645,8 @@ void NLPACS::CZoneTessellation::generateBorders(float smooth)
|
|
|
|
|
totalBefore += before;
|
|
|
|
|
totalAfter += after;
|
|
|
|
|
|
|
|
|
|
if (CheckConsistency)
|
|
|
|
|
{
|
|
|
|
|
if (lsurf >= 0)
|
|
|
|
|
{
|
|
|
|
|
CComputableSurface& surf = Surfaces[lsurf];
|
|
|
|
@ -1651,7 +1655,6 @@ void NLPACS::CZoneTessellation::generateBorders(float smooth)
|
|
|
|
|
nlwarning("After smooth of border '%d', surface '%d' not consistent", border, lsurf);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (rsurf >= 0)
|
|
|
|
|
{
|
|
|
|
|
CComputableSurface& surf = Surfaces[rsurf];
|
|
|
|
@ -1661,6 +1664,7 @@ void NLPACS::CZoneTessellation::generateBorders(float smooth)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (Verbose)
|
|
|
|
|
nlinfo("smooth process: %d -> %d (%.1f percent reduction)", totalBefore, totalAfter, 100.0*(1.0-(double)totalAfter/(double)totalBefore));
|
|
|
|
|
}
|
|
|
|
|