Apparatus and Method for Cutting or Slotting Rigid Material, in Particular Wood