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

0024068: Wrong result done by projection algorithm

Corrected number of nodes needed to create tree in case of BSplineSurface on current master.
Test case for issue CR24068
This commit is contained in:
aml
2013-10-03 14:36:41 +04:00
committed by bugmaster
parent 89d8607f13
commit 59fcbcaeaa
2 changed files with 87 additions and 0 deletions

View File

@@ -707,6 +707,16 @@ void Extrema_GenExtPS::BuildTree()
if ( ! mySphereUBTree.IsNull() )
return;
if (myS->GetType() == GeomAbs_BSplineSurface) {
Handle(Geom_BSplineSurface) aBspl = myS->BSpline();
Standard_Integer aUValue = aBspl->UDegree() * aBspl->NbUKnots();
Standard_Integer aVValue = aBspl->VDegree() * aBspl->NbVKnots();
if (aUValue > myusample)
myusample = aUValue;
if (aVValue > myvsample)
myvsample = aVValue;
}
Standard_Real PasU = myusup - myumin;
Standard_Real PasV = myvsup - myvmin;
Standard_Real U0 = PasU / myusample / 100.;