Divide Domain² places the 1D version

Hi McNeel team,

I’m running into an issue in Grasshopper (Rhino Version 7 SR38
(7.38.24338.17001, 2024-12-03) when searching for Divide Domain² in the component search bar loads the wrong component (Divide Domain). It appears correctly in search but always places the 1D version.

The Divide Domain² component also doesn’t appear under Surface → Util.

I’ve confirmed this over multiple attempts and would love to know if it’s a version-related bug or something misconfigured.

Screenshots and sample file can be provided if helpful.

Thanks in advance!
Lucas.



I got some help and have a python script in the meantime, with Type hints on the Python component, with surface set to Surface' & 'u_count, v_count set as int

As follows:

import Rhino.Geometry as rg

def divide_domain_2d(surface, u_count, v_count):
u_domain = surface.Domain(0)
v_domain = surface.Domain(1)

u_div = (u_domain.T1 - u_domain.T0) / float(u_count)
v_div = (v_domain.T1 - v_domain.T0) / float(v_count)

doms = []

for i in range(u_count):
    for j in range(v_count):
        u_start = u_domain.T0 + i * u_div
        u_end   = u_domain.T0 + (i + 1) * u_div
        v_start = v_domain.T0 + j * v_div
        v_end   = v_domain.T0 + (j + 1) * v_div

        dom_u = rg.Interval(u_start, u_end)
        dom_v = rg.Interval(v_start, v_end)

        doms.append([dom_u, dom_v])  # ✅ just return as a 2-item list

return doms

a = divide_domain_2d(surface, u_count, v_count)

Your images are too small for me to read.

Using the same Rhino version and searching for “di” (“divide”) works fine for me.

in R8 it’s under Math:

1 Like