require 'common'

-- boundingbox: two entries: origin and length in this
-- order, if no keys are used
x0 = origin
bounding_cube = {origin = x0, length = length}

spatial_object = {
  { -- refine box on center
    attribute = {
      kind  = 'refinement',
      label = 'refinebox',
      level = maxLevel,
    },
    geometry = {
      kind = 'canoND',
      object = {
        origin = refine_origin,
        vec = {
          refine_vec1,
          refine_vec2,
          refine_vec3,
        }
      } -- object
    } -- geometry
  },

  { attribute = { kind = 'seed', },
    geometry = { 
      kind = 'canoND',
      object = { origin = { x0[1]+length*0.5, x0[2]+dx*1.5, x0[3]+dx*1.5 } }
    } -- geometry
  }, -- seed
} -- spatial objects
