For all issues regarding the Forums use, please, refer to the Forum Rules.

Our Solutions

Need professional assistance?
Consider our:

Support Offerings


Need to speed up your development?
Have a look at our:

Samples & Tools


Need some functionality extending standard OCCT capabilities?
Check out our:

Adv. Components

Geom2dGcc_Circ2d3Tan problem

Tomas Pafco's picture

Hi all,

In my application, I am trying to implement a function which finds all the circles tangent to another three geometric objects (lines or circles).I am using a Geom2dGcc_Circ2d3Tan class for this. But it works fine only with three objects of the same type (three lines or three circles). In case of line-line-circle or line-circle-circle it doen't find all the solutions, just a few of them (sometines only 3). I'm using GccEnt_unqualified qualifier for all three input objects (curves).
Does anybody know, what can be wrong? I have also found out, that the Geom2dGcc_Circ2d3Tan(circle, circle, line, ...) doesn't find the same solutions as the Geom2dGcc_Circ2d3Tan(line, circle, circle, ...), which comes strange to me..
Thanks for any help or hint.


QbProg's picture

These functions are seriously flawed and often produce wrong results. :)
I once post a bunch of cases on a bug report, but never got an answer.

Tomas Pafco's picture

Thanks. It's good to know that the problem is not on my side :). But it makes whole thing more difficult ...

Mauro Mariotti's picture

Does anyone use the Geom2dGcc package ?

I have already found a trivial bug in Geom2dGcc_Lin2d2Tan
(search for Mauro in the attached file).

Now I tried Geom2dGcc_Circ2d3Tan and I found that the whole evaluation of the function to minimize (GccIter_FunctionTanCuCuCu::Values(...) in GccIter_FunctionTanCuCuCu.gxx) is under #if 0 !