https://www.dropbox.com/s/nkrslrsfiwdydhh/1.png
https://www.dropbox.com/s/21y6xn00xexgmhw/2.png
Instead of looping over "l", I loop over nseg, but I don't think it makes a difference as I've checked and the "l" values are the same as the "ii" values over nseg.
Code: Select all
for ii = 0, nseg-1 {
xr = range.x[ii]+range.x[1]
x_xtra(xr) = xint.x[ii]
y_xtra(xr) = yint.x[ii]
z_xtra(xr) = zint.x[ii]
x_xtra(xr) = xint.x[ii+1]
y_xtra(xr) = yint.x[ii+1]
z_xtra(xr) = zint.x[ii+1]
}
Code: Select all
// don't bother computing coords of the 0 and 1 ends
// also avoid writing coords of the 1 end into the last internal node's coords
Thanks for any advice, catubc