1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +03:00

0026609: Wrong result obtained by solid classifier algorithm.

Test case for issue CR26609

Correction of test cases for issue CR26609
This commit is contained in:
ifv
2015-10-08 13:26:15 +03:00
committed by bugmaster
parent b4b2ecca89
commit a0258acdd2
8 changed files with 72 additions and 10 deletions

View File

@@ -55,7 +55,8 @@ GeomAbs_SurfaceType IntCurvesFace_Intersector::SurfaceType() const
//purpose :
//=======================================================================
IntCurvesFace_Intersector::IntCurvesFace_Intersector(const TopoDS_Face& Face,
const Standard_Real aTol)
const Standard_Real aTol,
const Standard_Boolean aRestr)
:
Tol(aTol),
done(Standard_False),
@@ -65,7 +66,7 @@ IntCurvesFace_Intersector::IntCurvesFace_Intersector(const TopoDS_Face& Face,
{
BRepAdaptor_Surface surface;
face = Face;
surface.Initialize(Face,Standard_True);
surface.Initialize(Face, aRestr);
Hsurface = new BRepAdaptor_HSurface(surface);
myTopolTool = new BRepTopAdaptor_TopolTool(Hsurface);

View File

@@ -56,7 +56,11 @@ public:
//! first point of the segment is near the face. In
//! that case, the parameter of the intersection point
//! on the line can be a negative value (greater than -Tol).
Standard_EXPORT IntCurvesFace_Intersector(const TopoDS_Face& F, const Standard_Real aTol);
//! If aRestr = true UV bounding box of face is used to restrict
//! it's underlined surface,
//! otherwise surface is not restricted
Standard_EXPORT IntCurvesFace_Intersector(const TopoDS_Face& F, const Standard_Real aTol,
const Standard_Boolean aRestr = Standard_True);
//! Perform the intersection between the
//! segment L and the loaded face.