Module Import alias ImportFrom alias alias alias alias alias alias alias alias alias ImportFrom alias FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad NameLoad NameLoad body Expr Str If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Num Num Num If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Num BinOpMult Num NameLoad Num If CompareIs NameLoad NameLoad body Assign NameStore Call NameLoad Num Num Num Assign NameStore Call AttributeLoad BinOpMult Call NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad attr Assign NameStore Call AttributeLoad BinOpMult Call NameLoad NameLoad SubscriptLoad NameLoad ExtSlice Slice Index NameLoad attr Assign NameStore Call NameLoad ListLoad BinOpMult Call NameLoad NameLoad Call NameLoad NameLoad Num Assign NameStore Num For NameStore NameLoad body Assign NameStore BinOpAdd NameLoad Call NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Slice NameLoad NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num NameLoad Assign NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Str Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num Num ListLoad Num Num Num Num ListLoad Num Num Num Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad ListLoad ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num ListLoad Num Num Num Str AugAssignAdd SubscriptStore NameLoad ExtSlice Slice Index Num Num Assign NameStore Call NameLoad ListLoad Num Num Num Num Num Num Num Num Num Num Num Num Num Num Assign NameStore Call NameLoad ListLoad Num Num Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore AttributeLoad Call AttributeLoad NameLoad attr attr Assign NameStore Call NameLoad ListLoad NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Num NameLoad Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore TupleLoad Num Num Num Assign NameStore Call AttributeLoad NameLoad attr keyword TupleLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Num Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Num BinOpMult Num AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad Num Num SubscriptLoad NameLoad Index Num Assign NameStore Call NameLoad NameLoad NameLoad NameLoad Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call NameLoad BinOpAdd BinOpAdd BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index Num Num BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index Num Num BinOpPow SubscriptLoad NameLoad ExtSlice Slice Index Num Num Assign AttributeStore AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Num Num Num Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Assign NameStore Call NameLoad Num Num Num Str Assign NameStore Call AttributeLoad NameLoad attr Num Num Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore AttributeLoad AttributeLoad NameLoad attr attr attr Str Return NameLoad decorator_list
N/A N/A numpy numpy linspace cos sin pi empty sqrt array arange random tvtk.api tvtk generate_annulus N/A N/A r theta z N/A None None None N/A N/A  Generate points for structured grid for a cylindrical annular
        volume.  This method is useful for generating a unstructured
        cylindrical mesh for VTK (and perhaps other tools).

        Parameters
        ----------
        r : array : The radial values of the grid points.
                    It defaults to linspace(1.0, 2.0, 11).

        theta : array : The angular values of the x axis for the grid
                        points. It defaults to linspace(0,2*pi,11).

        z: array : The values along the z axis of the grid points.
                   It defaults to linspace(0,0,1.0, 11).

        Return
        ------
        points : array
            Nx3 array of points that make up the volume of the annulus.
            They are organized in planes starting with the first value
            of z and with the inside "ring" of the plane as the first
            set of points.  The default point array will be 1331x3.
     N/A N/A r None N/A N/A r N/A linspace 1.0 2.0 11 N/A N/A theta None N/A N/A theta N/A linspace 0 N/A 2 pi 11 N/A N/A z None N/A N/A z N/A linspace 0.0 1.0 11 N/A x_plane N/A N/A N/A N/A cos theta N/A r N/A N/A N/A None ravel N/A y_plane N/A N/A N/A N/A sin theta N/A r N/A N/A N/A None ravel N/A points N/A empty N/A N/A N/A len x_plane N/A len z 3 N/A start 0 N/A z_plane z N/A N/A end N/A start N/A len x_plane N/A plane_points N/A points N/A start end N/A N/A plane_points N/A N/A N/A 0 x_plane N/A N/A plane_points N/A N/A N/A 1 y_plane N/A N/A plane_points N/A N/A N/A 2 z_plane N/A start end N/A points N/A single_type_ug N/A N/A N/A N/A N/A Simple example showing how to create an unstructured grid
    consisting of cells of a single type.
     N/A points N/A array N/A N/A 0 0 0 N/A 1 0 0 N/A 0 1 0 N/A 0 0 1 N/A 1 0 0 N/A 2 0 0 N/A 1 1 0 N/A 1 0 1 N/A 2 0 0 N/A 3 0 0 N/A 2 1 0 N/A 2 0 1 f N/A tets N/A array N/A N/A 0 1 2 3 N/A 4 5 6 7 N/A 8 9 10 11 N/A tet_type N/A N/A N/A tvtk Tetra cell_type N/A ug N/A N/A tvtk UnstructuredGrid points points N/A N/A N/A ug set_cells tet_type tets N/A ug N/A mixed_type_ug N/A N/A N/A N/A N/A A slightly more complex example of how to generate an
    unstructured grid with different cell types.  Returns a created
    unstructured grid.
     N/A points N/A array N/A N/A 0 0 0 N/A 1 0 0 N/A 0 1 0 N/A 0 0 1 N/A 2 0 0 N/A 3 0 0 N/A 3 1 0 N/A 2 1 0 N/A 2 0 1 N/A 3 0 1 N/A 3 1 1 N/A 2 1 1 f N/A N/A points N/A N/A N/A 1 2.0 N/A cells N/A array N/A 4 0 1 2 3 8 4 5 6 7 8 9 10 11 N/A offset N/A array N/A 0 5 N/A tetra_type N/A N/A N/A tvtk Tetra cell_type N/A hex_type N/A N/A N/A tvtk Hexahedron cell_type N/A cell_types N/A array N/A tetra_type hex_type N/A cell_array N/A N/A tvtk CellArray N/A N/A N/A cell_array set_cells 2 cells N/A ug N/A N/A tvtk UnstructuredGrid points points N/A N/A N/A ug set_cells cell_types offset cell_array N/A ug N/A generateStructuredGrid N/A N/A N/A N/A N/A Generates Structured Grid N/A dims N/A 32 32 12 N/A sgrid N/A N/A tvtk StructuredGrid dimensions N/A N/A dims N/A 1 N/A dims N/A 0 N/A dims N/A 2 N/A r N/A linspace 1 10 N/A dims N/A 0 N/A theta N/A linspace 0 N/A 2 N/A numpy pi N/A dims N/A 1 N/A z N/A linspace 0 5 N/A dims N/A 2 N/A pts N/A generate_annulus r theta z N/A N/A sgrid points pts N/A s N/A sqrt N/A N/A N/A N/A pts N/A N/A N/A 0 2 N/A N/A pts N/A N/A N/A 1 2 N/A N/A pts N/A N/A N/A 2 2 N/A N/A N/A sgrid point_data scalars N/A N/A numpy ravel N/A N/A s copy N/A N/A N/A N/A sgrid point_data scalars name scalars N/A sgrid N/A generateUnstructuredGrid_single N/A N/A N/A N/A N/A Generates Untructured Grid N/A ug N/A single_type_ug N/A temperature N/A arange 0 120 10 d N/A velocity N/A N/A random randn 12 3 N/A N/A N/A ug point_data scalars temperature N/A N/A N/A N/A ug point_data scalars name temperature N/A N/A N/A ug point_data vectors velocity N/A N/A N/A N/A ug point_data vectors name velocity N/A ug N/A generateUnstructuredGrid_mixed N/A N/A N/A N/A N/A Generates Untructured Grid N/A ug N/A mixed_type_ug N/A temperature N/A arange 0 120 10 d N/A velocity N/A N/A random randn 12 3 N/A N/A N/A ug point_data scalars temperature N/A N/A N/A N/A ug point_data scalars name temperature N/A N/A N/A ug point_data vectors velocity N/A N/A N/A N/A ug point_data vectors name velocity N/A ug N/A