Class InfoCube6f
In: infocube.rb
Parent: Object

Methods

cellcount   create   deselect   hide   new   reset   select   show   uncount   update  

Included Modules

Mesh CommonTasks MeshExport

Attributes

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] 

Public Class methods

[Source]

# 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

Public Instance methods

[Source]

# File infocube.rb, line 171
      def cellcount
         return (@if[0].imax+0)*(@if[0].jmax+0)*(@if[1].jmax+0)
      end

[Source]

# File infocube.rb, line 174
      def create
      end

[Source]

# File infocube.rb, line 152
      def deselect
         @if.each do |tmp|
            tmp.parent.deselect
         end
         @selected = false
      end

[Source]

# File infocube.rb, line 160
      def hide
      end

[Source]

# File infocube.rb, line 164
      def reset
         $cubecount001 = -1
      end

[Source]

# File infocube.rb, line 146
      def select
         @if.each do |tmp|
            tmp.parent.select
         end
         @selected = true
      end

[Source]

# File infocube.rb, line 158
      def show
      end

[Source]

# File infocube.rb, line 167
      def uncount
         $cubecount001 -= 1
         @info = [self, self, "c#{$cubecount001}"]
      end

[Source]

# File infocube.rb, line 162
      def update
      end

[Validate]