Module Expr Str Import alias identifier ImportFrom alias alias alias ImportFrom alias ImportFrom alias alias alias ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword Str keyword TupleLoad Num Num Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr Call NameLoad Global identifier Assign NameStore Call NameLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr keyword Str Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num SubscriptLoad Call AttributeLoad NameLoad attr Num Num NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Ellipsis Index Num SubscriptLoad Call AttributeLoad NameLoad attr Num Num NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr keyword NameLoad keyword NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore BinOpFloorDiv AttributeLoad NameLoad attr Num Assign NameStore Call AttributeLoad NameLoad attr TupleLoad NameLoad Num keyword AttributeLoad NameLoad attr Assign SubscriptStore NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr Num Num NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign SubscriptStore NameLoad ExtSlice Slice Index Num Call AttributeLoad NameLoad attr Num Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad keyword Str Assign NameStore TupleLoad Num Num Assign NameStore BinOpDiv Num Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad AttributeLoad NameLoad attr body Assign NameStore BinOpSub BinOpAdd BinOpDiv BinOpMult Num BinOpMod NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpDiv Num SubscriptLoad NameLoad Index Num Num Assign NameStore BinOpAdd BinOpAdd BinOpDiv BinOpMult Num BinOpFloorDiv NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num BinOpDiv Num SubscriptLoad NameLoad Index Num Num Assign NameStore Call NameLoad ListLoad Call NameLoad keyword TupleLoad NameLoad NameLoad keyword TupleLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr Call NameLoad keyword TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr keyword AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpPow Num Num TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpPow Num Num TupleLoad Num Num Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr BinOpPow Num Num TupleLoad Num Num Num Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore TupleLoad Num Num SubscriptLoad AttributeLoad NameLoad attr Index Num SubscriptLoad AttributeLoad NameLoad attr Index Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr Num Num AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr keyword Str keyword NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list decorator_list If CompareEq NameLoad Str body Assign NameStore Call NameLoad Import alias If CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr Num body Expr Call AttributeLoad NameLoad attr
N/A N/A 
Simple demonstration of Mesh visual.
 N/A numpy np vispy app gloo visuals vispy.geometry create_sphere vispy.visuals.transforms STTransform MatrixTransform ChainTransform Canvas N/A N/A app Canvas N/A __init__ N/A N/A self N/A N/A N/A N/A N/A N/A app Canvas __init__ self keys interactive size N/A 800 550 N/A N/A self meshes N/A N/A N/A self rotation N/A MatrixTransform N/A mdata N/A mdata N/A create_sphere 20 40 1.0 N/A N/A N/A N/A self meshes append N/A N/A visuals MeshVisual meshdata mdata color b N/A verts N/A N/A mdata get_vertices indexed faces N/A nf N/A N/A verts size 9 N/A fcolor N/A N/A np ones N/A nf 3 4 dtype N/A np float32 N/A N/A fcolor N/A N/A N/A 0 N/A N/A N/A np linspace 1 0 nf N/A N/A N/A N/A np newaxis N/A N/A fcolor N/A N/A N/A 1 N/A N/A N/A N/A np random normal size nf N/A N/A N/A N/A np newaxis N/A N/A fcolor N/A N/A N/A 2 N/A N/A N/A np linspace 0 1 nf N/A N/A N/A N/A np newaxis N/A mesh N/A N/A visuals MeshVisual vertices verts face_colors fcolor N/A N/A N/A N/A self meshes append mesh N/A verts N/A N/A mdata get_vertices N/A faces N/A N/A mdata get_faces N/A nv N/A N/A verts size 3 N/A vcolor N/A N/A np ones N/A nv 4 dtype N/A np float32 N/A N/A vcolor N/A N/A N/A 0 N/A N/A np linspace 1 0 nv N/A N/A vcolor N/A N/A N/A 1 N/A N/A N/A np random normal size nv N/A N/A vcolor N/A N/A N/A 2 N/A N/A np linspace 0 1 nv N/A N/A N/A N/A self meshes append N/A N/A visuals MeshVisual verts faces vcolor N/A N/A N/A N/A self meshes append N/A N/A visuals MeshVisual verts faces vcolor shading flat N/A N/A N/A N/A self meshes append N/A N/A visuals MeshVisual verts faces vcolor shading smooth N/A grid N/A 3 3 N/A s N/A 300.0 N/A max grid N/A N/A i mesh N/A enumerate N/A self meshes N/A N/A x N/A N/A N/A N/A 800.0 N/A i N/A grid N/A 0 N/A grid N/A 0 N/A 400.0 N/A grid N/A 0 2 N/A y N/A N/A N/A N/A 800.0 N/A i N/A grid N/A 1 N/A grid N/A 1 N/A 400.0 N/A grid N/A 1 2 N/A transform N/A ChainTransform N/A N/A STTransform translate N/A x y scale N/A s s s N/A self rotation N/A N/A mesh transform transform N/A N/A N/A mesh transforms scene_transform N/A STTransform scale N/A 1 1 0.01 N/A N/A N/A self show N/A N/A self timer N/A N/A app Timer connect N/A self rotate N/A N/A N/A N/A self timer start 0.016 N/A rotate N/A N/A self event N/A N/A N/A N/A N/A N/A self rotation rotate N/A 0.2 0.5 N/A 1 0 0 N/A N/A N/A N/A self rotation rotate N/A 0.3 0.5 N/A 0 1 0 N/A N/A N/A N/A self rotation rotate N/A 0.5 0.5 N/A 0 0 1 N/A N/A N/A self update N/A on_resize N/A N/A self event N/A N/A N/A vp N/A 0 0 N/A N/A self physical_size N/A 0 N/A N/A self physical_size N/A 1 N/A N/A N/A N/A self context set_viewport vp N/A mesh N/A self meshes N/A N/A N/A N/A N/A mesh transforms configure canvas self viewport vp N/A on_draw N/A N/A self ev N/A N/A N/A N/A N/A gloo set_viewport 0 0 N/A self physical_size N/A N/A N/A gloo clear color black depth True N/A mesh N/A self meshes N/A N/A N/A N/A mesh draw N/A N/A N/A N/A __name__ __main__ N/A N/A win N/A Canvas N/A sys N/A N/A N/A N/A sys flags interactive 1 N/A N/A N/A N/A app run