1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-19 13:40:49 +03:00

0030591: Exception is raised by command "bopcheck" on the attached shape

Protection to avoid exception if number of vertices is equal to 1 was added.
This commit is contained in:
gka
2019-03-18 16:06:19 +03:00
parent d0bab579ec
commit 7cb0c7dfe6

View File

@@ -2492,6 +2492,9 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
Standard_Boolean removeNext = Standard_False;
Standard_Boolean removePrev = Standard_False;
//gka
if(cnbV > 1)
{
if( ciV == 1)
{
Standard_Integer dPar = Abs( VPold.Value(ciV) - VPold.Value(ciV+1));
@@ -2539,6 +2542,7 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
VPold.SetValue(iPo, VPold.Value(iPo) - 1 );
}
}
}
Standard_Integer pI = ciVpar;