General Program Information

Input Definitions

Inputs Needed to Call the Tee Function
origin - a 3*1 matrix with x,y,z positions corresponding to the point where the tee will be drawn.
R1 - the inner radius of the main pipe.
R2 - the outer radius of the main pipe.
R3 - the outer radius of the sockets of the tee.
L - the length of the skinnier pipes of the tee.
H - the length (or depth) of the sockets of the tee.

Inputs Defined within the Tee Function

p1 =

p2 =

p3 =

p4 =

p5 =

p6 =

p7 =

p8 =

p9 =

p10 =

p11 =

*zc is a zooming constant used to add a short length to some dimensions in order to be sure an entire object is selected

p12 =

p13 =

p14 =

p15 =

p16 =

win1 =

win2 =

win3 =

win4 =

Technical Program Outline

viewtop - sets the workspace so that the user is viewing the object from the top.

zoom win - zooms the workspace to a smaller focus area

cylinder1 - creates a cylinder with length 'L' that comes out of the page.

cylinder2 - creates a cylinder with length 'L/2'.

union1 - unions the two cylinders.

cylinder3 - creates a cylinder with length 'L'.

cylinder4 - creates a cylinder with length 'L/2'.

subtract1 - subtracts the portion of cylinder2 and cylinder4 that are inside the cylinders creating a hollow pipe out of cylinder2 and cylinder4.

subtract2 - subtracts cylinder 3 from cylinder 1 creating a hollow pipe coming out of the page.


tee viewed from viewfront

cylinder5 - creates a cylinder with a depth 'H' and radius 'R3' into the page.

cylinder6 - creates a cylinder with a depth 'H' and radius 'R1' into the page.

subtract3 - subtracts cylinder 6 from cylinder 5 creating a hollow pipe with length 'H'.

viewfront - sets the workspace so that the user is viewing the object from the front.

zoom win1 - zooms the workspace to a focus area 

mirror1 - mirrors the bottom pipe 90 degrees clockwise.

mirror2 - mirrors the bottom pipe 180 degrees.

bigunion1 - joins all four pipes.