# By Axelerator AB All rights reserved
# Author Marcus Isaksson
from varmain .primitiv import *#line:5
from varmain .custom import *#line:6
from varmain .var_basic import *#line:7
from varmain .dummy_var import *#line:8
from aqa .math import *#line:9
import math #line:10
import sys ,os #line:11
if not os .path .dirname (os .path .abspath (__file__ ))in sys .path :#line:17
			   sys .path .append (os .path .dirname (os .path .abspath (__file__ )))#line:18
from AX_BOXF import *#line:21
@activate (Group ="Tee,Lateral",TooltipShort ="Increaser Tee",TooltipLong ="Increaser Tee",LengthUnit ="mm",Ports ="3")#line:24
@group ("MainDimensions")#line:25
@param (OD1 =LENGTH ,TooltipShort ="Nominal Diameter",TooltipLong ="Nominal Diameter")#line:26
def AX_P1_INCREASER_TEE (O00000O0OOOO00OOO ,OD1 =63 ,**O00O0OOO00O0O00OO ):#line:32
	if OD1 ==63 :#line:34
		OO00OO0O0OOO00000 =76 #line:35
		O0OOOOOOO0000O000 =348 #line:36
		O00OOO00OO0O0OO0O =174 #line:37
		O0OOO0O0OOO00O000 =142 #line:38
	elif OD1 ==76 :#line:39
		OO00OO0O0OOO00000 =100 #line:40
		O0OOOOOOO0000O000 =322 #line:41
		O00OOO00OO0O0OO0O =161 #line:42
		O0OOO0O0OOO00O000 =149 #line:43
	elif OD1 ==100 :#line:44
		OO00OO0O0OOO00000 =168 #line:45
		O0OOOOOOO0000O000 =388 #line:46
		O00OOO00OO0O0OO0O =194 #line:47
		O0OOO0O0OOO00O000 =161 #line:48
	O0000O0OOOO000OOO =CYLINDER (O00000O0OOOO00OOO ,R =OD1 /2.0 ,H =O0OOOOOOO0000O000 ).rotateY (-90 ).translate ((O0OOOOOOO0000O000 /2 ,0 ,0 ))#line:54
	O0O0O00OOOOOO0O00 =CYLINDER (O00000O0OOOO00OOO ,R =(OD1 /2.0 )*1.1 ,H =OO00OO0O0OOO00000 *1.2 ).rotateY (-90 ).translate (((OO00OO0O0OOO00000 *1.2 )/2 ,0 ,0 ))#line:55
	O0OOO0O0O0OOO0OOO =ROUNDRECT (O00000O0OOOO00OOO ,L =OO00OO0O0OOO00000 *1.2 ,W =OD1 *1.1 ,H =O0OOO0O0OOO00O000 /2.0 ,R2 =OO00OO0O0OOO00000 /2.0 ).rotateX (90 )#line:56
	OOO0OOO0O0000OOO0 =CYLINDER (O00000O0OOOO00OOO ,R =(OO00OO0O0OOO00000 /2.0 ),H =O0OOO0O0OOO00O000 /2.0 ).rotateX (-90 ).translate ((0 ,-O0OOO0O0OOO00O000 ,0 ))#line:57
	O0O0O0OO0O0OOOOOO =O0OOOOOOO0000O000 /2.0 -34.90 #line:59
	O0OO00O0O00000O0O =O0OOO0O0OOO00O000 -34.90 #line:60
	O0OOOOO000OOOO0OO =TORUS (O00000O0OOOO00OOO ,R1 =OD1 /2.0 -2.0 ,R2 =4.0 ).rotateY (90 ).translate ((O0O0O0OO0O0OOOOOO ,0 ,0 ))#line:62
	O0OOO0O0OOOO00O00 =TORUS (O00000O0OOOO00OOO ,R1 =OD1 /2.0 -2.0 ,R2 =4.0 ).rotateY (90 ).translate ((-O0O0O0OO0O0OOOOOO ,0 ,0 ))#line:63
	OOO0000OO0O0O00O0 =TORUS (O00000O0OOOO00OOO ,R1 =OO00OO0O0OOO00000 /2.0 -2.0 ,R2 =4.0 ).rotateY (90 ).rotateZ (90 ).translate ((0 ,-O0OO00O0O00000O0O ,0 ))#line:64
	for OOO0O000OOOO00O0O in [O0O0O00OOOOOO0O00 ,O0OOO0O0O0OOO0OOO ,OOO0OOO0O0000OOO0 ,O0OOOOO000OOOO0OO ,O0OOO0O0OOOO00O00 ,OOO0000OO0O0O00O0 ]:#line:65
	    O0000O0OOOO000OOO .uniteWith (OOO0O000OOOO00O0O )#line:66
	    OOO0O000OOOO00O0O .erase ()#line:67
	O0O0O00OO00000OOO =CYLINDER (O00000O0OOOO00OOO ,R =(OD1 /2.0 )-2 ,H =O0OOOOOOO0000O000 ).rotateY (-90 ).translate ((O0OOOOOOO0000O000 /2 ,0 ,0 ))#line:70
	O0OO00000000OO000 =CONE (O00000O0OOOO00OOO ,R1 =(OO00OO0O0OOO00000 /4.0 ),R2 =(OO00OO0O0OOO00000 /2.0 )-2 ,H =O0OOO0O0OOO00O000 ).rotateX (90 )#line:71
	for OOO0O000OOOO00O0O in [O0O0O00OO00000OOO ,O0OO00000000OO000 ]:#line:72
	    O0000O0OOOO000OOO .subtractFrom (OOO0O000OOOO00O0O )#line:73
	    OOO0O000OOOO00O0O .erase ()#line:74
	O00000O0OOOO00OOO .setPoint ((O00OOO00OO0O0OO0O ,0 ,0 ),(1 ,0 ,0 ))#line:80
	O00000O0OOOO00OOO .setPoint ((-O00OOO00OO0O0OO0O ,0 ,0 ),(-1 ,0 ,0 ))#line:81
	O00000O0OOOO00OOO .setPoint ((0 ,-O0OOO0O0OOO00O000 ,0 ),(0 ,-1 ,0 ))#line:82
