
Mon, 09/22/2025 - 11:29
hello,
there is a crash in finding extremas of two co-central arc edges:
edge1:
start point: 0,8,0
end point: -8,0,0
centre: 0,0,0
axis dir: 0,0,1
edge2:
start point: 0,4,0
end point: -4,0,0
centre: 0,0,0
axis dir: 0,0,1
//---------------------------------------
double d_tmin1, d_tmax1;
double d_tmin2, d_tmax2;
Handle(Geom_Curve) po_curve1 = BRep_Tool::Curve (o_Edge1, d_tmin1, d_tmax1);
Handle(Geom_Curve) po_curve2 = BRep_Tool::Curve (o_Edge2, d_tmin2, d_tmax2);
GeomAPI_ExtremaCurveCurve o_extr_cc;
o_extr_cc.Init (po_curve1, po_curve2);
int n_extrema = o_extr_cc.NbExtrema(); //= 1!!
for (int i = 1; i <= n_extrema; i++)
{
o_extr_cc.Parameters (i, d_t1, d_t2); //CRASH
...
}
//---------------------------------------
best regards,
adrian