mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0026251: Section curve cannot be found
Current algorithm ignores found triangles intersection (IntPolyh_PMaillageAffinage) and, consequently, cannot find start point for intersection line. Branch fixes this problem. Test case for issue CR26251 Modified test case Small correction of test case for issue CR26251
This commit is contained in:
@@ -89,7 +89,7 @@ void IntPolyh_Intersection::Perform() {
|
||||
isAdvDone = PerformAdv(aPMaillageFF,aPMaillageFR,aPMaillageRF,aPMaillageRR,nbCouplesAdv);
|
||||
|
||||
// advanced interference found
|
||||
if(isAdvDone && nbCouplesAdv > 10) {
|
||||
if(isAdvDone && nbCouplesAdv > 0) {
|
||||
aPMaillageFF->StartPointsChain(TSectionLines,TTangentZones);
|
||||
aPMaillageFR->StartPointsChain(TSectionLines,TTangentZones);
|
||||
aPMaillageRF->StartPointsChain(TSectionLines,TTangentZones);
|
||||
|
@@ -87,7 +87,7 @@ void IntPolyh_Intersection::Perform(const TColStd_Array1OfReal& Upars1,
|
||||
aPMaillageRR,nbCouplesAdv);
|
||||
|
||||
// advanced interference found
|
||||
if(isAdvDone && nbCouplesAdv > 10) {
|
||||
if(isAdvDone && nbCouplesAdv > 0) {
|
||||
aPMaillageFF->StartPointsChain(TSectionLines,TTangentZones);
|
||||
aPMaillageFR->StartPointsChain(TSectionLines,TTangentZones);
|
||||
aPMaillageRF->StartPointsChain(TSectionLines,TTangentZones);
|
||||
@@ -171,7 +171,7 @@ Standard_Boolean IntPolyh_Intersection::PerformMaillage(const Standard_Boolean i
|
||||
(FinTTC >= theMaillageS->GetArrayOfTriangles(1).NbTriangles() ||
|
||||
FinTTC >= theMaillageS->GetArrayOfTriangles(2).NbTriangles()) ) {
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
*/
|
||||
//IFV test for parallel surf
|
||||
if(FinTTC > 200) {
|
||||
@@ -250,7 +250,7 @@ Standard_Boolean IntPolyh_Intersection::PerformMaillage(const TColStd_Array1OfRe
|
||||
(FinTTC >= theMaillageS->GetArrayOfTriangles(1).NbTriangles() ||
|
||||
FinTTC >= theMaillageS->GetArrayOfTriangles(2).NbTriangles()) ) {
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
*/
|
||||
//IFV test for parallel surf
|
||||
if(FinTTC > 200) {
|
||||
|
Reference in New Issue
Block a user