X-Git-Url: http://git.dev.opencascade.org/gitweb/?p=occt.git;a=blobdiff_plain;f=src%2FIntPatch%2FIntPatch_ImpImpIntersection_5.gxx;h=2320d6cee0be9af871761c25d04b27321e753a47;hb=8f905bca47430b0505da19ccd4cb6a066f07490a;hpb=3fa7e3e72f4e434ee00a32f3fd0e81c9136d281d diff --git a/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx b/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx index 0aac0dcb50..2320d6cee0 100755 --- a/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx +++ b/src/IntPatch/IntPatch_ImpImpIntersection_5.gxx @@ -109,9 +109,10 @@ Standard_Boolean IntCoCo(const IntSurf_Quadric& Quad1, // situC1=IntSurf_Inside; situC2=IntSurf_Outside; - if (aR1>aR1) { - situC1=IntSurf_Outside; - situC2=IntSurf_Inside; + if (aR1>aR2) { // Intersection line parametrizes from Apex1 to Apex2, + situC1=IntSurf_Outside; // So the distance betwee ptbid and aLAx1 is greater than the + situC2=IntSurf_Inside; // distance between ptbid and aLAx2 and in that case Cone2 + // is inside Cone 1 } } // 1