#NEWLINE# def construct_1020_easycap( variant = 0 ) : #NEWLINE# #INDENT# p = Struct ( ) #NEWLINE# p . Cz = Point ( 0 , 0 , 1 ) #NEWLINE# p . Fpz = Point ( 0 , 1 , 0 ) #NEWLINE# p . Oz = Point ( 0 , ( - 1 ) , 0 ) #NEWLINE# p . T7 = Point ( ( - 1 ) , 0 , 0 ) #NEWLINE# p . T8 = Point ( 1 , 0 , 0 ) #NEWLINE# horizontal = Line ( p . Fpz , p . T7 ) #NEWLINE# sagittal = Line ( p . Fpz , p . Cz ) #NEWLINE# coronal = Line ( p . T7 , p . Cz ) #NEWLINE# p . Fz = sagittal . get_point ( 0.5 ) #NEWLINE# p . Pz = sagittal . get_point ( 1.5 ) #NEWLINE# p . C3 = coronal . get_point ( 0.5 ) #NEWLINE# p . C4 = coronal . get_point ( 1.5 ) #NEWLINE# p . Fp1 = horizontal . get_point ( 0.2 ) #NEWLINE# p . Fp2 = horizontal . get_point ( ( - 0.2 ) ) #NEWLINE# p . F7 = horizontal . get_point ( 0.6 ) #NEWLINE# p . F8 = horizontal . get_point ( ( - 0.6 ) ) #NEWLINE# p . P7 = horizontal . get_point ( 1.4 ) #NEWLINE# p . P8 = horizontal . get_point ( ( - 1.4 ) ) #NEWLINE# p . O1 = horizontal . get_point ( 1.8 ) #NEWLINE# p . O2 = horizontal . get_point ( ( - 1.8 ) ) #NEWLINE# circle_F = Circle ( p . F7 , p . Fz , p . F8 ) #NEWLINE# circle_P = Circle ( p . P7 , p . Pz , p . P8 ) #NEWLINE# if ( variant == 0 ) : #NEWLINE# #INDENT# circle_3 = Circle ( p . Fp1 , p . C3 , p . O1 ) #NEWLINE# circle_4 = Circle ( p . Fp2 , p . C4 , p . O2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# circle_3 = Circle ( p . Fpz , p . C3 , p . Oz ) #NEWLINE# circle_4 = Circle ( p . Fpz , p . C4 , p . Oz ) #NEWLINE# #UNINDENT# p . F3 = intersection ( circle_3 , circle_F ) [ 0 ] #NEWLINE# p . F4 = intersection ( circle_4 , circle_F ) [ 0 ] #NEWLINE# p . P3 = intersection ( circle_3 , circle_P ) [ 0 ] #NEWLINE# p . P4 = intersection ( circle_4 , circle_P ) [ 0 ] #NEWLINE# p . AFz = midpoint ( p . Fpz , p . Fz ) #NEWLINE# p . AF7 = midpoint ( p . Fp1 , p . F7 ) #NEWLINE# p . AF8 = midpoint ( p . Fp2 , p . F8 ) #NEWLINE# circle_AF = Circle ( angle_PO . AF7 , p . AFz , p . AF8 ) #NEWLINE# angle_AF = ( circle_AF . angle ( p . AF7 ) / 2 ) #NEWLINE# p . AF3 = circle_AF . get_point ( angle_AF ) #NEWLINE# p . AF4 = circle_AF . get_point ( ( - angle_AF ) ) #NEWLINE# angle_F2 = ( circle_F . angle ( p . F4 ) / 2 ) #NEWLINE# angle_F6 = ( circle_F . angle ( p . F4 ) + ( ( circle_F . angle ( p . F8 ) - circle_F . angle ( p . F4 ) ) / 2 ) ) #NEWLINE# p . F2 = circle_F . get_point ( angle_F2 ) #NEWLINE# p . F1 = circle_F . get_point ( ( - angle_F2 ) ) #NEWLINE# p . F6 = circle_F . get_point ( angle_F6 ) #NEWLINE# p . F5 = circle_F . get_point ( ( - angle_F6 ) ) #NEWLINE# p . C1 = midpoint ( p . C3 , p . Cz ) #NEWLINE# p . C2 = midpoint ( p . C4 , p . Cz ) #NEWLINE# p . C5 = midpoint ( p . C3 , p . T7 ) #NEWLINE# p . C6 = midpoint ( p . C4 , p . T8 ) #NEWLINE# angle_P2 = ( circle_P . angle ( p . P4 ) / 2 ) #NEWLINE# angle_P6 = ( circle_P . angle ( p . P4 ) + ( ( circle_P . angle ( p . P8 ) - circle_P . angle ( p . P4 ) ) / 2 ) ) #NEWLINE# p . P2 = circle_P . get_point ( angle_P2 ) #NEWLINE# p . P1 = circle_P . get_point ( ( - angle_P2 ) ) #NEWLINE# p . P6 = circle_P . get_point ( angle_P6 ) #NEWLINE# p . P5 = circle_P . get_point ( ( - angle_P6 ) ) #NEWLINE# circle_5 = Circle ( p . F5 , p . C5 , p . P5 ) #NEWLINE# circle_1 = Circle ( p . F1 , p . C1 , p . P1 ) #NEWLINE# circle_2 = Circle ( p . F2 , p . C2 , p . P2 ) #NEWLINE# circle_6 = Circle ( p . F6 , p . C6 , p . P6 ) #NEWLINE# p . FCz = midpoint ( p . Fz , p . Cz ) #NEWLINE# p . FT7 = midpoint ( p . F7 , p . T7 ) #NEWLINE# p . FT8 = midpoint ( p . F8 , p . T8 ) #NEWLINE# p . CPz = midpoint ( p . Cz , p . Pz ) #NEWLINE# p . TP7 = midpoint ( p . T7 , p . P7 ) #NEWLINE# p . TP8 = midpoint ( p . T8 , p . P8 ) #NEWLINE# circle_FC = Circle ( p . FT7 , p . FCz , p . FT8 ) #NEWLINE# circle_CP = Circle ( p . TP7 , p . CPz , p . TP8 ) #NEWLINE# p . FC5 = intersection ( circle_5 , circle_FC ) [ 0 ] #NEWLINE# p . FC3 = intersection ( circle_3 , circle_FC ) [ 0 ] #NEWLINE# p . FC1 = intersection ( circle_1 , circle_FC ) [ 0 ] #NEWLINE# p . FC2 = intersection ( circle_2 , circle_FC ) [ 0 ] #NEWLINE# p . FC4 = intersection ( circle_4 , circle_FC ) [ 0 ] #NEWLINE# p . FC6 = intersection ( circle_6 , circle_FC ) [ 0 ] #NEWLINE# p . CP5 = intersection ( circle_5 , circle_CP ) [ 0 ] #NEWLINE# p . CP3 = intersection ( circle_3 , circle_CP ) [ 0 ] #NEWLINE# p . CP1 = intersection ( circle_1 , circle_CP ) [ 0 ] #NEWLINE# p . CP2 = intersection ( circle_2 , circle_CP ) [ 0 ] #NEWLINE# p . CP4 = intersection ( circle_4 , circle_CP ) [ 0 ] #NEWLINE# p . CP6 = intersection ( circle_6 , circle_CP ) [ 0 ] #NEWLINE# p . POz = midpoint ( p . Pz , p . Oz ) #NEWLINE# p . PO7 = midpoint ( p . P7 , p . O1 ) #NEWLINE# p . PO8 = midpoint ( p . P8 , p . O2 ) #NEWLINE# circle_PO = Circle ( p . PO7 , p . POz , p . PO8 ) #NEWLINE# angle_PO = ( circle_PO . angle ( p . PO7 ) / 2 ) #NEWLINE# p . PO3 = circle_PO . get_point ( ( - angle_PO ) ) #NEWLINE# p . PO4 = circle_PO . get_point ( angle_PO ) #NEWLINE# p . Iz = sagittal . get_point ( 2.25 ) #NEWLINE# p . T9 = coronal . get_point ( ( - 0.25 ) ) #NEWLINE# p . T10 = coronal . get_point ( 2.25 ) #NEWLINE# circle_9 = Circle ( p . T9 , p . Iz , p . T10 ) #NEWLINE# p . O9 = circle_9 . get_point ( ( ( ( - pi ) / 2 ) * 0.2 ) ) #NEWLINE# p . O10 = circle_9 . get_point ( ( ( pi / 2 ) * 0.2 ) ) #NEWLINE# p . PO9 = circle_9 . get_point ( ( ( ( - pi ) / 2 ) * 0.4 ) ) #NEWLINE# p . PO10 = circle_9 . get_point ( ( ( pi / 2 ) * 0.4 ) ) #NEWLINE# p . P9 = circle_9 . get_point ( ( ( ( - pi ) / 2 ) * 0.6 ) ) #NEWLINE# p . P10 = circle_9 . get_point ( ( ( pi / 2 ) * 0.6 ) ) #NEWLINE# p . TP9 = circle_9 . get_point ( ( ( ( - pi ) / 2 ) * 0.8 ) ) #NEWLINE# p . TP10 = circle_9 . get_point ( ( ( pi / 2 ) * 0.8 ) ) #NEWLINE# p . FT9 = circle_9 . get_point ( ( ( ( - pi ) / 2 ) * 1.2 ) ) #NEWLINE# p . FT10 = circle_9 . get_point ( ( ( pi / 2 ) * 1.2 ) ) #NEWLINE# p . F9 = circle_9 . get_point ( ( ( ( - pi ) / 2 ) * 1.4 ) ) #NEWLINE# p . F10 = circle_9 . get_point ( ( ( pi / 2 ) * 1.4 ) ) #NEWLINE# return p