mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-19 13:40:49 +03:00
0025416: Wrong section curve
1. Restriction line is processed in IntTools_FaceFace with using methods of GeomInt_IntSS class. 2. Check, if Restriction- and Walking-lines (or Restriction-Restriction lines) are coincided, has been added in IntPatch_ImpPrmIntersection.cxx (at that RLine is considered to be isoline only). 3. Check, if RLine and GLine are coincided, has been added in IntPatch_ImpImpIntersection.cxx. 4. Create new class IntPatch_PointLine, which is inherited from IntPatch_Line. 5. The reason of exception (in DEBUG MODE) has been eliminated. New test cases for issue #25416 were added. tests/bugs/modalg_5/bug24650 was modified.
This commit is contained in:
@@ -95,10 +95,8 @@ inline Standard_Real gp_Lin2d::SquareDistance (const gp_Pnt2d& P) const
|
||||
inline Standard_Real gp_Lin2d::SquareDistance (const gp_Lin2d& Other) const
|
||||
{
|
||||
Standard_Real D = 0.0;
|
||||
if (pos.IsParallel (Other.pos, gp::Resolution())) {
|
||||
D = Other.Distance(pos.Location());
|
||||
D *= D;return D * D;
|
||||
}
|
||||
if (pos.IsParallel (Other.pos, gp::Resolution()))
|
||||
D = Other.SquareDistance(pos.Location());
|
||||
return D;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user