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:
@@ -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.;
|
||||
|
Reference in New Issue
Block a user