| Class | InfoCube6f |
| In: |
infocube.rb
|
| Parent: | Object |
| changed | [RW] | |
| csys | [RW] | |
| defaultprefix | [RW] | |
| if | [RW] | internal faces |
| info | [RW] | |
| info | [RW] | |
| parent | [RW] | |
| reforder | [RW] | |
| row | [RW] | |
| selected | [RW] | |
| viewerobj | [RW] | |
| visible | [RW] |
# File infocube.rb, line 33 def initialize(reftype, csys, *args) #@if = Array.new $cubecount001 += 1 @reftype = reftype @csys = csys @parent = self @viewerobj = self @info = [self, self, "c#{$cubecount001}"] @selected = false @visible = false @row = nil case @reftype when "6f" @defaultprefix = "cube" @reforder = [] @ref = args[0] # print "6f cube " @if = findStructure6f(@ref) # # #openfoamexport(@if,"filename") # # # from if[1] closetype we can draw the conclusion on which edge if[5] is attached # 0 -> 2, 1 -> 3, 2 -> 0, 3 -> 1 # first face p0 p1 -- second face pX pX # how do I define the cube structure according to specification, I want to use the already # created faces and vertices # want to have a function like # il0, il1, il2, .. il11 = cubedefinition(@ref) # where ilX = [ fX, lX, reverse, fY, lY, reverse ] # reverse is true or false depending on if they are pointini in different directions ?? end end
# File infocube.rb, line 171 def cellcount return (@if[0].imax+0)*(@if[0].jmax+0)*(@if[1].jmax+0) end
# File infocube.rb, line 152 def deselect @if.each do |tmp| tmp.parent.deselect end @selected = false end
# File infocube.rb, line 146 def select @if.each do |tmp| tmp.parent.select end @selected = true end