mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0025504: Exception raised during projection curve on surface
Avoid moving of projected point to a boundary of surface Test case for CR25504
This commit is contained in:
parent
a86ce5a64a
commit
c84d6e55ea
@ -92,10 +92,10 @@ ProjLib_PrjResolve::ProjLib_PrjResolve(const Adaptor3d_Curve& C,const Adaptor3d_
|
|||||||
ExtraU = Tol2d.X();
|
ExtraU = Tol2d.X();
|
||||||
ExtraV = Tol2d.Y();
|
ExtraV = Tol2d.Y();
|
||||||
// }
|
// }
|
||||||
if (Abs(mySolution.X()-Inf.X()) < Tol2d.X()) mySolution.SetX(Inf.X());
|
if (mySolution.X() > Inf.X() - Tol2d.X() && mySolution.X() < Inf.X()) mySolution.SetX(Inf.X());
|
||||||
if (Abs(mySolution.X()-Sup.X()) < Tol2d.X()) mySolution.SetX(Sup.X());
|
if (mySolution.X() > Sup.X() && mySolution.X() < Sup.X() + Tol2d.X()) mySolution.SetX(Sup.X());
|
||||||
if (Abs(mySolution.Y()-Inf.Y()) < Tol2d.Y()) mySolution.SetY(Inf.Y());
|
if (mySolution.Y() > Inf.Y() - Tol2d.Y() && mySolution.Y() < Inf.Y()) mySolution.SetY(Inf.Y());
|
||||||
if (Abs(mySolution.Y()-Sup.Y()) < Tol2d.Y()) mySolution.SetY(Sup.Y());
|
if (mySolution.Y() > Sup.Y() && mySolution.Y() < Sup.Y() + Tol2d.Y()) mySolution.SetY(Sup.Y());
|
||||||
if (mySolution.X() < Inf.X() - ExtraU ||
|
if (mySolution.X() < Inf.X() - ExtraU ||
|
||||||
mySolution.X() > Sup.X() + ExtraU ||
|
mySolution.X() > Sup.X() + ExtraU ||
|
||||||
mySolution.Y() < Inf.Y() - ExtraV ||
|
mySolution.Y() < Inf.Y() - ExtraV ||
|
||||||
|
12
tests/bugs/moddata_3/bug25504
Normal file
12
tests/bugs/moddata_3/bug25504
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
puts "================"
|
||||||
|
puts "OCC25504"
|
||||||
|
puts "================"
|
||||||
|
puts ""
|
||||||
|
#######################################################################
|
||||||
|
# Exception raised during projection curve on surface
|
||||||
|
#######################################################################
|
||||||
|
|
||||||
|
restore [locate_data_file bug25504_surf.draw] s
|
||||||
|
restore [locate_data_file bug25504_curve.draw] c
|
||||||
|
|
||||||
|
project c2d c s
|
Loading…
x
Reference in New Issue
Block a user