1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

0022822: Skipping of the first and the last edges of a wire for opened wires

This commit is contained in:
VRO
2012-02-10 09:57:58 +00:00
committed by bugmaster
parent 86be42959e
commit ef57920a5d
2 changed files with 61 additions and 1 deletions

View File

@@ -395,7 +395,9 @@ void ShapeAnalysis_Wire::SetSurface (const Handle(Geom_Surface)& surface,
Standard_Boolean isFail = Standard_False, isDone = Standard_False;
for(Standard_Integer num1 = 1; num1 < nb-1; num1++) {
Standard_Integer fin = (num1 == 1 ? nb-1 : nb);
Standard_Integer fin = nb;
if (CheckClosed(Precision::Confusion()) && 1 == num1)
fin = nb-1;
for(Standard_Integer num2 = num1+2; num2 <= fin; num2++)
if(!boxes(num1).IsOut(boxes(num2))){
CheckIntersectingEdges(num1, num2);