<s> from vis import version <EOL> import sys as _sys <EOL> try : <EOL> from Polygon import Polygon <EOL> except : <EOL> pass <EOL> visual = _sys . modules [ '<STR_LIT>' ] <EOL> def _fix_symbols ( modg ) : <EOL> for sym in ( '<STR_LIT>' , '<STR_LIT>' ) : <EOL> if sym in modg : <EOL> del modg [ sym ] <EOL> all = set ( modg . keys ( ) ) & set ( globals ( ) . keys ( ) ) <EOL> return list ( all ) <EOL> import math as _math <EOL> import numpy as _numpy <EOL> from math import * <EOL> from numpy import * <EOL> for ufunc in ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' ) : <EOL> def _uf ( x , <EOL> numpy = getattr ( _numpy , ufunc ) , <EOL> math = getattr ( _math , ufunc ) , <EOL> mathtypes = ( float , int , int ) ) : <EOL> if type ( x ) in mathtypes : return math ( x ) <EOL> return numpy ( x ) <EOL> globals ( ) [ ufunc ] = _uf <EOL> for ufunc in ( '<STR_LIT>' , ) : <EOL> def _uf ( x , y , <EOL> numpy = getattr ( _numpy , ufunc ) , <EOL> math = getattr ( _math , ufunc ) , <EOL> mathtypes = ( float , int , int ) ) : <EOL> if type ( x ) in mathtypes and type ( y ) in mathtypes : return math ( x , y ) <EOL> return numpy ( x , y ) <EOL> globals ( ) [ ufunc ] = _uf <EOL> import vis . crayola as color <EOL> from vis . cvisual import ( vector , mag , mag2 , norm , cross , rotate , <EOL> comp , proj , diff_angle , rate ) <EOL> import vis . cvisual as _cvisual <EOL> def _dot ( x , y , mathtypes = ( float , int , int ) ) : <EOL> numpy = getattr ( _numpy , '<STR_LIT>' ) <EOL> cvisual = getattr ( _cvisual , '<STR_LIT>' ) <EOL> if type ( x ) is vector and type ( y ) is vector : return cvisual ( x , y ) <EOL> return numpy ( x , y ) <EOL> globals ( ) [ '<STR_LIT>' ] = _dot <EOL> from vis . primitives import ( arrow , cylinder , cone , sphere , box , ring , label , <EOL> frame , pyramid , ellipsoid , curve , faces , convex , helix , <EOL> points , text , distant_light , local_light , extrusion ) <EOL> from vis . ui import display <EOL> import vis . materials as materials <EOL> import vis . shapes as shapes <EOL> import vis . paths as paths <EOL> true = True <EOL> false = False <EOL> crayola = color <EOL> import atexit as _atexit <EOL> _atexit . register ( _cvisual . waitclose ) <EOL> import vis . site_settings <EOL> scene = display ( ) </s>
