Module Import alias identifier ImportFrom alias identifier ImportFrom alias alias ImportFrom alias alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias Assign NameStore Call NameLoad FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Str Assign NameStore Call NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad Str Expr Call NameLoad NameLoad NameLoad Call AttributeLoad NameLoad attr NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad keyword Str NameLoad Expr Call NameLoad NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num Expr Call NameLoad NameLoad NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad keyword NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call NameLoad Call NameLoad NameLoad Call NameLoad NameLoad For TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad body If CompareIs NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad orelse Expr Call NameLoad NameLoad NameLoad keyword Num Expr Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num SubscriptLoad NameLoad Index Num keyword Num keyword Num decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign NameStore SubscriptLoad NameLoad ExtSlice Index SubscriptLoad NameLoad ExtSlice Slice Index Num Slice Assign NameStore SubscriptLoad NameLoad ExtSlice Index SubscriptLoad NameLoad ExtSlice Slice Index Num Slice Assign NameStore SubscriptLoad NameLoad ExtSlice Index SubscriptLoad NameLoad ExtSlice Slice Index Num Slice Assign NameStore Call AttributeLoad NameLoad attr BinOpSub NameLoad NameLoad BinOpSub NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad keyword Num Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr CompareEq NameLoad Num Index Num Assign SubscriptStore NameLoad Index NameLoad Num AugAssignDiv NameStore SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr TupleLoad Call NameLoad NameLoad Num For TupleStore NameStore NameStore Call NameLoad NameLoad body AugAssignAdd SubscriptStore NameLoad Index NameLoad SubscriptLoad NameLoad ExtSlice Index NameLoad Slice Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr BinOpMult NameLoad NameLoad keyword Num Assign SubscriptStore NameLoad Index CompareEq NameLoad Num Num AugAssignDiv NameStore SubscriptLoad NameLoad ExtSlice Slice Index AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Num Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad decorator_list Expr Call NameLoad
N/A N/A numpy np os path op numpy.testing assert_allclose assert_array_equal vispy.io write_mesh read_mesh load_data_file vispy.geometry _fast_cross_3d vispy.util _TempDir vispy.testing run_tests_if_main assert_equal assert_raises N/A temp_dir N/A _TempDir test_wavefront N/A N/A N/A N/A N/A Test wavefront reader N/A fname_mesh N/A load_data_file orig/triceratops.obj.gz N/A fname_out N/A N/A op join temp_dir temp.obj N/A mesh1 N/A read_mesh fname_mesh N/A N/A assert_raises IOError read_mesh foo.obj N/A N/A assert_raises ValueError read_mesh N/A N/A op abspath __file__ N/A N/A assert_raises ValueError write_mesh fname_out format foo mesh1 N/A N/A write_mesh fname_out N/A mesh1 N/A 0 N/A mesh1 N/A 1 N/A mesh1 N/A 2 N/A mesh1 N/A 3 N/A N/A assert_raises IOError write_mesh fname_out mesh1 N/A N/A write_mesh fname_out overwrite True mesh1 N/A mesh2 N/A read_mesh fname_out N/A N/A assert_equal N/A len mesh1 N/A len mesh2 N/A N/A m1 m2 N/A zip mesh1 mesh2 N/A N/A N/A m1 None N/A N/A N/A assert_equal m2 None N/A N/A N/A assert_allclose m1 m2 rtol 1e-05 N/A N/A assert_allclose N/A mesh1 N/A 2 N/A _slow_calculate_normals N/A mesh1 N/A 0 N/A mesh1 N/A 1 rtol 1e-07 atol 1e-07 N/A _slow_calculate_normals N/A N/A rr tris N/A N/A N/A Efficiently compute vertex normals for triangulated surface N/A rr N/A N/A rr astype N/A np float64 N/A r1 N/A rr N/A N/A N/A tris N/A N/A N/A 0 N/A N/A r2 N/A rr N/A N/A N/A tris N/A N/A N/A 1 N/A N/A r3 N/A rr N/A N/A N/A tris N/A N/A N/A 2 N/A N/A tri_nn N/A N/A np cross N/A r2 r1 N/A r3 r1 N/A size N/A N/A np sqrt N/A N/A np sum N/A tri_nn tri_nn axis 1 N/A zidx N/A N/A N/A np where N/A size 0 N/A 0 N/A N/A size N/A zidx 1.0 N/A tri_nn N/A size N/A N/A N/A N/A np newaxis N/A nn N/A N/A np zeros N/A N/A len rr 3 N/A N/A p verts N/A enumerate tris N/A N/A N/A nn N/A verts N/A tri_nn N/A N/A p N/A N/A size N/A N/A np sqrt N/A N/A np sum N/A nn nn axis 1 N/A N/A size N/A N/A size 0 1.0 N/A nn N/A size N/A N/A N/A N/A np newaxis N/A nn N/A test_huge_cross N/A N/A N/A N/A N/A Test cross product with lots of elements
     N/A x N/A N/A N/A np random rand 100000 3 N/A y N/A N/A N/A np random rand 1 3 N/A z N/A N/A np cross x y N/A zz N/A _fast_cross_3d x y N/A N/A assert_array_equal z zz N/A N/A N/A run_tests_if_main