mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-08 18:40:55 +03:00
0025954: GeomPlate_Surface::SetBounds formatting/logic mismatch
Corrected logic/formatting discrepancy.
This commit is contained in:
parent
d44e14e3f6
commit
2a8523acca
@ -376,10 +376,8 @@ Handle(Geom_Surface) GeomPlate_Surface::CallSurfinit() const
|
|||||||
void GeomPlate_Surface::SetBounds(const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax)
|
void GeomPlate_Surface::SetBounds(const Standard_Real Umin, const Standard_Real Umax, const Standard_Real Vmin, const Standard_Real Vmax)
|
||||||
{
|
{
|
||||||
if ((Umin>Umax) || (Vmin>Vmax)) Standard_Failure::Raise("Bounds haven't the good sense");
|
if ((Umin>Umax) || (Vmin>Vmax)) Standard_Failure::Raise("Bounds haven't the good sense");
|
||||||
else
|
|
||||||
myUmin=Umin;myUmax=Umax;myVmin=Vmin;myVmax=Vmax;
|
|
||||||
if ((Umin==Umax) || (Vmin==Vmax)) Standard_Failure::Raise("Bounds are equal");
|
if ((Umin==Umax) || (Vmin==Vmax)) Standard_Failure::Raise("Bounds are equal");
|
||||||
|
myUmin=Umin;myUmax=Umax;myVmin=Vmin;myVmax=Vmax;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user