mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0033570: Modeling Algorithms - Incorrect result of cutting spheres
The reason of current problem lies inside projection algorithm Function_SetUVBounds() for projection of circle onto sphere produces shifted bounds. Incorrect checking of placement on summit of the sphere was fixed.
This commit is contained in:
@@ -655,7 +655,7 @@ static void Function_SetUVBounds(Standard_Real& myU1,
|
||||
// si P1.Z() vaut +/- R on est sur le sommet : pas significatif.
|
||||
gp_Pnt pp = P1.Transformed(Trsf);
|
||||
|
||||
if ( Abs( Abs(pp.Z()) - R) < Tol) {
|
||||
if ( Abs(pp.X() * pp.X() + pp.Y() * pp.Y() + pp.Z() * pp.Z() - R * R) < Tol) {
|
||||
gp_Pnt Center = Circle.Location();
|
||||
Standard_Real U,V;
|
||||
ElSLib::SphereParameters(gp_Ax3(gp::XOY()),1,Center, U, V);
|
||||
|
Reference in New Issue
Block a user