(self, deformed=True)
return box_points.T
Method that returns the FFD control points. If the `deformed` flag is
        set to True the method returns the deformed lattice, otherwise it
        returns the original undeformed lattice.

        :param bool deformed: flag to select the original or modified FFD
            control lattice. The default is True.
        :return: the FFD control points (by row).
        :rtype: numpy.ndarray
Method that returns the FFD control points. If the `deformed` flag is
        set to True the method returns the deformed lattice, otherwise it
        returns the original undeformed lattice.
Method that returns the FFD control points . If the deformed flag is set to True the method returns the deformed lattice otherwise it returns the original undeformed lattice .
def control_points(self, deformed=True):
        """
        Method that returns the FFD control points. If the `deformed` flag is
        set to True the method returns the deformed lattice, otherwise it
        returns the original undeformed lattice.

        :param bool deformed: flag to select the original or modified FFD
            control lattice. The default is True.
        :return: the FFD control points (by row).
        :rtype: numpy.ndarray
        """
        x = np.linspace(0, self.box_length[0], self.n_control_points[0])
        y = np.linspace(0, self.box_length[1], self.n_control_points[1])
        z = np.linspace(0, self.box_length[2], self.n_control_points[2])

        y_coords, x_coords, z_coords = np.meshgrid(y, x, z)

        box_points = np.array(
            [x_coords.ravel(),
             y_coords.ravel(),
             z_coords.ravel()])

        if deformed:
            box_points += np.array([
                self.array_mu_x.ravel() * self.box_length[0],
                self.array_mu_y.ravel() * self.box_length[1],
                self.array_mu_z.ravel() * self.box_length[2]
            ])

        n_rows = box_points.shape[1]

        box_points = np.dot(self.rotation_matrix, box_points) + np.transpose(
            np.tile(self.box_origin, (n_rows, 1)))

        return box_points.T
def control_points ( self , deformed = True ) : x = np . linspace ( 0 , self . box_length [ 0 ] , self . n_control_points [ 0 ] ) y = np . linspace ( 0 , self . box_length [ 1 ] , self . n_control_points [ 1 ] ) z = np . linspace ( 0 , self . box_length [ 2 ] , self . n_control_points [ 2 ] ) y_coords , x_coords , z_coords = np . meshgrid ( y , x , z ) box_points = np . array ( [ x_coords . ravel ( ) , y_coords . ravel ( ) , z_coords . ravel ( ) ] ) if deformed : box_points += np . array ( [ self . array_mu_x . ravel ( ) * self . box_length [ 0 ] , self . array_mu_y . ravel ( ) * self . box_length [ 1 ] , self . array_mu_z . ravel ( ) * self . box_length [ 2 ] ] ) n_rows = box_points . shape [ 1 ] box_points = np . dot ( self . rotation_matrix , box_points ) + np . transpose ( np . tile ( self . box_origin , ( n_rows , 1 ) ) ) return box_points . T