{
Standard_Real aFirstp, aLastp;
Standard_Integer aNbVtx = theWL->NbVertex();
- Standard_Boolean isNeedSkip = Standard_True;
for (Standard_Integer i = 1; i < aNbVtx; i++) {
aFirstp = theWL->Vertex (i).ParameterOnLine();
const IntSurf_PntOn2S& aPmid = theWL->Point (pmid);
aPmid.Parameters (aU1, aV1, aU2, aV2);
- if (!IsOutOfDomain (theBoxS1, theBoxS2, aPmid, theArrPeriods))
+ if (IsOutOfDomain (theBoxS1, theBoxS2, aPmid, theArrPeriods))
{
- isNeedSkip = Standard_False;
- break;
+ return Standard_True;
}
}
- return isNeedSkip;
+ return Standard_False;
}
//=======================================================================
--- /dev/null
+puts "================================"
+puts "0033541: Modeling Algorithms - Simple sphere cut from cylinder fails"
+puts "================================"
+puts ""
+
+pcylinder c 1 1
+psphere s 1
+ttranslate s 1 1 1
+bcut result c s
+
+checknbshapes result -vertex 3 -edge 5 -wire 4 -face 4
+checkview -display result -2d -path ${imagedir}/${test_image}.png