You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Intersection triangle {3, 3),{4, 3),{3, 4) with circle {0, 0),5
nxp[i] = 1 nxp[i] = 2 nxp[i] = 1
inside = 7
nv = 7
added triangle area, now area = 0
added triangle area, now area = 0
added triangle area, now area = 0.5
s = 1.41421
added triangle area, now area = 0.547426
added triangle area, now area = 0.547426
*** stack smashing detected *** terminated
--- reason ----
The highest index for vtype and vp arrays is 5, but trying to access vtype[6] and vp[6] in the following loop (around line 258 of TIntersection2.hpp):
int vtype[6]; // 1 = triangle vertex, 0 = intersection point
pt_t vp[6];
int nv = 0; // number of actual vertices
for(int i = 0; i < 3; ++i){
if(inside & (1 << i)){
vp[nv] = seg[i][0];
vtype[nv++] = 1;
}
for(int j = 0; j < nxp[i]; ++j){
vp[nv] = xp[2*i+j];
vtype[nv++] = 0;
}
}
The text was updated successfully, but these errors were encountered:
-- test code ---
--Result(with TINTERSECTION2_DEBUG)---
--- reason ----
The highest index for vtype and vp arrays is 5, but trying to access vtype[6] and vp[6] in the following loop (around line 258 of TIntersection2.hpp):
The text was updated successfully, but these errors were encountered: