(self, bsp_surface)
Private method that adds `self.u_knots_to_add` and `self.v_knots_to_add`
        knots to the input surface `bsp_surface`, in u and v direction respectively.

        :param Geom_BSplineCurve bsp_surface: the NURBS surface to enrich
Private method that adds `self.u_knots_to_add` and `self.v_knots_to_add`
        knots to the input surface `bsp_surface`, in u and v direction respectively.
Private method that adds self . u_knots_to_add and self . v_knots_to_add knots to the input surface bsp_surface in u and v direction respectively .
def _enrich_surface_knots(self, bsp_surface):
        """
        Private method that adds `self.u_knots_to_add` and `self.v_knots_to_add`
        knots to the input surface `bsp_surface`, in u and v direction respectively.

        :param Geom_BSplineCurve bsp_surface: the NURBS surface to enrich
        """
        if not isinstance(bsp_surface, Geom_BSplineSurface):
            raise TypeError("bsp_surface must be a Geom_BSplineSurface")
        # we will add the prescribed amount of nodes
        # both along u and v parametric directions

        # bounds (in surface parametric space) of the surface
        bounds = bsp_surface.Bounds()

        for i in range(self.u_knots_to_add):
            bsp_surface.InsertUKnot(bounds[0]+ \
                i*(bounds[1]-bounds[0])/self.u_knots_to_add, 1, self.tolerance)
        for i in range(self.v_knots_to_add):
            bsp_surface.InsertVKnot(bounds[2]+ \
                i*(bounds[3]-bounds[2])/self.v_knots_to_add, 1, self.tolerance)
def _enrich_surface_knots ( self , bsp_surface ) : if not isinstance ( bsp_surface , Geom_BSplineSurface ) : raise TypeError ( "bsp_surface must be a Geom_BSplineSurface" ) # we will add the prescribed amount of nodes # both along u and v parametric directions # bounds (in surface parametric space) of the surface bounds = bsp_surface . Bounds ( ) for i in range ( self . u_knots_to_add ) : bsp_surface . InsertUKnot ( bounds [ 0 ] + i * ( bounds [ 1 ] - bounds [ 0 ] ) / self . u_knots_to_add , 1 , self . tolerance ) for i in range ( self . v_knots_to_add ) : bsp_surface . InsertVKnot ( bounds [ 2 ] + i * ( bounds [ 3 ] - bounds [ 2 ] ) / self . v_knots_to_add , 1 , self . tolerance )