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

0031201: Modeling Algorithms - Result of a section operation is incomplete

Fixing misprint - use the boundaries of the cylinder for Plane/Cylinder intersection.
Test cases for the issue.
This commit is contained in:
emv
2019-11-28 10:56:55 +03:00
committed by bugmaster
parent 2b5a58a33c
commit 34e7ac6817
4 changed files with 82 additions and 1 deletions

View File

@@ -109,7 +109,7 @@ void IntPatch_ImpImpIntersection::Perform(const Handle(Adaptor3d_HSurface)& S1,
case 21: { // Plane/Cylinder
Standard_Real VMin, VMax, H;
//
const Handle(Adaptor3d_HSurface)& aSCyl = bReverse ? S2 : S1;
const Handle(Adaptor3d_HSurface)& aSCyl = bReverse ? S1 : S2;
VMin = aSCyl->FirstVParameter();
VMax = aSCyl->LastVParameter();
H = (Precision::IsNegativeInfinite(VMin) ||