Got stuck in Subdividing a surface

Hi all @AndersDeleuran @diff-arch

got stuck in dividing the surface through scripting. The code is dividing the three surfaces but not others. No idea why. Requesting help.
surfacedivideerror.gh (14.1 KB)


Thank you
vijesh

you code assumes that the surface domain starts at 0 when it may not
on your last line, you need to add the increment to the actual start

vbreps.append(
    fbreps[k].Trim(
        rg.Interval(ggx[l]+fbreps[k].Domain(0).T0, ggx[l+1]+fbreps[k].Domain(0).T0),
        rg.Interval(ggy[m]+fbreps[k].Domain(1).T0, ggy[m+1]+fbreps[k].Domain(1).T0)
        )
    )
1 Like

Thank you @Will_Wang it worked.