[BUG + PATCH] BRepClass3d_Intersector3d

In BRepClass3d_Intersector3d::Perform it is possible to return true even if no point is found, resulting in wrong (uninitialized) U-V values.
The return true istruction is done in the wrong place.

QbProg's picture

.. the patch

Francois Lauzon's picture

Hello,
I don't think there is a bug there... When you do a Perform, if a calculation took place, IsDone() will return true, even if there is no intersection. To check if there is an intersection, you have to check HasAPoint() method. It's all documented in the BRepClass3d_Intersector3d.cdl file.

Francois.

QbProg's picture

I missed it, sorry

thank you