def METHOD_NAME(self, inurbs):
    cs = iga.compute_bezier_extraction(inurbs.knots, inurbs.degree)
    n_els = [len(ii) for ii in cs]
    conn, bconn = iga.create_connectivity(n_els, inurbs.knots,
                                          inurbs.degree)
    cps = inurbs.points[..., :self.dim].copy()
    cps = cps.reshape((-1, self.dim))
    return NurbsPatch(inurbs.knots, inurbs.degree, cps,
                      inurbs.weights.ravel(), cs, conn)