Manifold Drawing Script
layer5 - Layernew creates a new blue layer "manifold."
layer5 <- layernew("manifold',blue2)
manifold1 - Calls the Manifold Program to create a manifold.
manifold1 <-Manifold(manifoldorigin,NDSedLaunder,DSedLaunderOrifice/2,manifoldlength,BSedLaunderOrifices,ENPipeSpec)
manifoldorigin =
- if layout 1:
- x: tankorigin0 - LSed + WChannel + TChannelWall + 2*ElbowRadius(NDSedLaunder)
- y: tankorigin1 + WSed/2
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 2:
- x: tankorigin0 - LSed + WChannel + TChannelWall
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 3:
- x: tankorigin0 - LSed + WChannel + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 4:
- x: tankorigin0 - LSed + WChannelInlet + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
NDSedLaunder - Nominal diameter of launder.
DSedLaunderOrifice - Diameter of launder orifices.
manifoldlength - Specifies manifold length.
BSedLaunderOrifices - Spacing between orifices throughout the launder.
ENPipeSpec - Enumerated type.
rotate18 - Rotate3d turns the object based on a given axis and degree angle.
rotate18 <- rotate3d(p1,manifoldorigin,"y",90)
p1 =
- x: manifoldorigin0 + innerD(NDsedLaunder,ENPipeSpec)/2
- y: manifoldorigin1
- z: manifoldorigin2
manifoldorigin = - if layout 1:
- x: tankorigin0 - LSed + WChannel + TChannelWall + 2*ElbowRadius(NDSedLaunder)
- y: tankorigin1 + WSed/2
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 2:
- x: tankorigin0 - LSed + WChannel + TChannelWall
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 3:
- x: tankorigin0 - LSed + WChannel + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 4:
- x: tankorigin0 - LSed + WChannelInlet + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
"y" - specifies axis that object will be rotated about.
90 - rotation angle
rotate19 - Rotate3d turns the object based on a given axis and degree angle.
rotate19 <- rotate3d(p1,manifoldorigin,"x",-60)
p1 =
- x: manifoldorigin0
- y: manifoldorigin1 + innerD(NDsedLaunder,ENPipeSpec)/2
- z: manifoldorigin2
manifoldorigin =
- if layout 1:
- x: tankorigin0 - LSed + WChannel + TChannelWall + 2*ElbowRadius(NDSedLaunder)
- y: tankorigin1 + WSed/2
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 2:
- x: tankorigin0 - LSed + WChannel + TChannelWall
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 3:
- x: tankorigin0 - LSed + WChannel + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 4:
- x: tankorigin0 - LSed + WChannelInlet + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
"x" - specifies axis that object will be rotated about.
-60 - rotation angle
copym - CopyB duplicates the selected object.
copym <- copyB(manifoldorigin,manifoldorigin,manifold2origin)
manifoldorigin =
- if layout 1:
- x: tankorigin0 - LSed + WChannel + TChannelWall + 2*ElbowRadius(NDSedLaunder)
- y: tankorigin1 + WSed/2
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 2:
- x: tankorigin0 - LSed + WChannel + TChannelWall
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 3:
- x: tankorigin0 - LSed + WChannel + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 4:
- x: tankorigin0 - LSed + WChannelInlet + TChannelWall + WEChannel
- y: tankorigin1 + WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
manifold2origin =
- if layout 1:
- x: 0
- y: 0
- z: 0
- if layout 2:
- x: tankorigin0 - LSed + WChannel + TChannelWall
- y: tankorigin1 + 2*WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 3:
- x: tankorigin0 - LSed + WChannel + TChannelWall + WEChannel
- y: tankorigin1 + 2*WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
- if layout 4:
- x: tankorigin0 - LSed + WChannelInlet + TChannelWall + WEChannel
- y: tankorigin1 + 2*WSed/3
- z: tankorigin2 + HWSed - HSedAbove/2
layerset - Layerset selects the layer "0".
layerset <- layerset("0")
layerfreeze5 - Layerfreeze locks the layer "manifold" so that it cannot be edited.
layerfreeze5 <- layerfreeze("manifold")