mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-16 10:08:36 +03:00
0031887: IntTools_Context::IsPointInFace always return TRUE
If aDist >= aTol, bIn is never updated to false, and the function always returns TRUE.
This commit is contained in:
parent
a8b9d7eb27
commit
2b7fd8c81c
@ -723,14 +723,14 @@ Standard_Boolean IntTools_Context::IsPointInFace
|
|||||||
const TopoDS_Face& aF,
|
const TopoDS_Face& aF,
|
||||||
const Standard_Real aTol)
|
const Standard_Real aTol)
|
||||||
{
|
{
|
||||||
Standard_Boolean bIn;
|
Standard_Boolean bIn = Standard_False;
|
||||||
Standard_Real aDist;
|
Standard_Real aDist;
|
||||||
//
|
//
|
||||||
GeomAPI_ProjectPointOnSurf& aProjector=ProjPS(aF);
|
GeomAPI_ProjectPointOnSurf& aProjector=ProjPS(aF);
|
||||||
aProjector.Perform(aP);
|
aProjector.Perform(aP);
|
||||||
//
|
//
|
||||||
bIn = aProjector.IsDone();
|
Standard_Boolean bDone = aProjector.IsDone();
|
||||||
if (bIn) {
|
if (bDone) {
|
||||||
aDist = aProjector.LowerDistance();
|
aDist = aProjector.LowerDistance();
|
||||||
if (aDist < aTol) {
|
if (aDist < aTol) {
|
||||||
Standard_Real U, V;
|
Standard_Real U, V;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user