require "params"

--outputname = 'cube'
--outputpreview = true 
folder = 'mesh/'
minlevel = level

-- in bounding cube we want origin and length

bounding_cube = {
    origin = {originX, originY, originZ},
    length = length
  }
-- spatial object is composed  by the attribute and geometry

spatial_object = {
  {
   attribute = {
      kind = 'seed',        --- kind is seed/boundary/refinement/periodic
    },               
    geometry = {
      kind = 'canoND',     --- canoND is nothing but the line/plane/point/box
      object = {
        origin = {0.0,0.0,0.0}
        } ---object
      } --- geometry
   }, --- attribute
  {
   attribute = {
      kind = 'periodic',
    },               
     geometry = {
       kind = 'periodic',
       object = {
         plane1 = {          --- plane is composed by the a origin and two vectors
           origin = {-length*0.5,-length*0.5,dx+dxmax/2 },
           vec = {{length,0.0,0.0},
                  {0.0,length,0.0}}  
           },        
        plane2 = {
          origin = {-length*0.5,-length*0.5,-dxmax/2},
          vec = {{0.0,length,0.0},
                 {length,0.0,0.0}}  
          }        
        } --- object
      } -- geometry
    } --- attribute
  }  --- spatial object
  

