mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-01 04:10:34 +05:00
0020970: CEA 423 Bug on normal on a sphere
This commit is contained in:
parent
7f82ab7d2a
commit
e0f54fb506
@ -216,6 +216,17 @@ Standard_Integer GEOMImpl_MeasureDriver::Execute(TFunction_Logbook& log) const
|
|||||||
gp_Vec Vec1,Vec2;
|
gp_Vec Vec1,Vec2;
|
||||||
BRepAdaptor_Surface SF (aFace);
|
BRepAdaptor_Surface SF (aFace);
|
||||||
SF.D1(pUV.X(), pUV.Y(), p1, Vec1, Vec2);
|
SF.D1(pUV.X(), pUV.Y(), p1, Vec1, Vec2);
|
||||||
|
if (Vec1.Magnitude() < Precision::Confusion()) {
|
||||||
|
gp_Vec tmpV;
|
||||||
|
gp_Pnt tmpP;
|
||||||
|
SF.D1(pUV.X(), pUV.Y()-0.1, tmpP, Vec1, tmpV);
|
||||||
|
}
|
||||||
|
else if (Vec2.Magnitude() < Precision::Confusion()) {
|
||||||
|
gp_Vec tmpV;
|
||||||
|
gp_Pnt tmpP;
|
||||||
|
SF.D1(pUV.X()-0.1, pUV.Y(), tmpP, tmpV, Vec2);
|
||||||
|
}
|
||||||
|
|
||||||
gp_Vec V = Vec1.Crossed(Vec2);
|
gp_Vec V = Vec1.Crossed(Vec2);
|
||||||
Standard_Real mod = V.Magnitude();
|
Standard_Real mod = V.Magnitude();
|
||||||
if (mod < Precision::Confusion())
|
if (mod < Precision::Confusion())
|
||||||
|
Loading…
Reference in New Issue
Block a user