(self, hexa=cube_points([0.0, 1.0], [0.0, 1.0], [0.0, 1.0]), backend="vtk")
Shows the quadrature points on a given hexahedron. The size of the balls
        around the points coincides with their weights.
Shows the quadrature points on a given hexahedron. The size of the balls
        around the points coincides with their weights.
Shows the quadrature points on a given hexahedron . The size of the balls around the points coincides with their weights .
def show(self, hexa=cube_points([0.0, 1.0], [0.0, 1.0], [0.0, 1.0]), backend="vtk"):
        """Shows the quadrature points on a given hexahedron. The size of the balls
        around the points coincides with their weights."""
        edges = np.array(
            [
                [hexa[0, 0, 0], hexa[1, 0, 0]],
                [hexa[1, 0, 0], hexa[1, 1, 0]],
                [hexa[1, 1, 0], hexa[0, 1, 0]],
                [hexa[0, 1, 0], hexa[0, 0, 0]],
                #
                [hexa[0, 0, 1], hexa[1, 0, 1]],
                [hexa[1, 0, 1], hexa[1, 1, 1]],
                [hexa[1, 1, 1], hexa[0, 1, 1]],
                [hexa[0, 1, 1], hexa[0, 0, 1]],
                #
                [hexa[0, 0, 0], hexa[0, 0, 1]],
                [hexa[1, 0, 0], hexa[1, 0, 1]],
                [hexa[1, 1, 0], hexa[1, 1, 1]],
                [hexa[0, 1, 0], hexa[0, 1, 1]],
            ]
        )
        edges = np.moveaxis(edges, 1, 2)

        helpers.backend_to_function[backend](
            transform(self.points, hexa),
            self.weights,
            self.integrate(lambda x: np.ones(x.shape[1:]), hexa),
            edges,
        )
def show ( self , hexa = cube_points ( [ 0.0 , 1.0 ] , [ 0.0 , 1.0 ] , [ 0.0 , 1.0 ] ) , backend = "vtk" ) : edges = np . array ( [ [ hexa [ 0 , 0 , 0 ] , hexa [ 1 , 0 , 0 ] ] , [ hexa [ 1 , 0 , 0 ] , hexa [ 1 , 1 , 0 ] ] , [ hexa [ 1 , 1 , 0 ] , hexa [ 0 , 1 , 0 ] ] , [ hexa [ 0 , 1 , 0 ] , hexa [ 0 , 0 , 0 ] ] , # [ hexa [ 0 , 0 , 1 ] , hexa [ 1 , 0 , 1 ] ] , [ hexa [ 1 , 0 , 1 ] , hexa [ 1 , 1 , 1 ] ] , [ hexa [ 1 , 1 , 1 ] , hexa [ 0 , 1 , 1 ] ] , [ hexa [ 0 , 1 , 1 ] , hexa [ 0 , 0 , 1 ] ] , # [ hexa [ 0 , 0 , 0 ] , hexa [ 0 , 0 , 1 ] ] , [ hexa [ 1 , 0 , 0 ] , hexa [ 1 , 0 , 1 ] ] , [ hexa [ 1 , 1 , 0 ] , hexa [ 1 , 1 , 1 ] ] , [ hexa [ 0 , 1 , 0 ] , hexa [ 0 , 1 , 1 ] ] , ] ) edges = np . moveaxis ( edges , 1 , 2 ) helpers . backend_to_function [ backend ] ( transform ( self . points , hexa ) , self . weights , self . integrate ( lambda x : np . ones ( x . shape [ 1 : ] ) , hexa ) , edges , )